AI销管
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

details.vue 39 KiB

2 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512
  1. <template>
  2. <view class="details">
  3. <!-- 头部违禁信息 -->
  4. <view class="header">
  5. <view class="h-box">
  6. <view class="h-b-top">
  7. <text class="name">{{ userlistobj.agentName || '' }}</text>
  8. <view class="status">
  9. <text class="pointer"></text>
  10. <text class="item">{{ userlistobj.violatedStatus | ViolatedStatus }}</text>
  11. </view>
  12. </view>
  13. <!-- 详细信息 -->
  14. <view class="h-b-btm" style="margin: 19rpx 0 30rpx;">
  15. <view class="item">
  16. <image class="item-imgs" src="@/static/images/img/time.png" mode=""></image>
  17. {{ userlistobj.createTime || '' }}
  18. </view>
  19. </view>
  20. <view class="h-b-btm">
  21. <view class="item">
  22. <image class="item-imgs" src="@/static/images/img/voice.png" mode=""></image>
  23. {{ userlistobj.mm || '' }}m
  24. </view>
  25. <view class="item hit">
  26. <image class="item-imgs" src="@/static/images/img/hit.png" mode=""></image>
  27. {{ userlistobj.violatedFrequency || '0' }}
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- tab选择框 -->
  33. <template v-if="isShowMerge">
  34. <u-tabs :activeItemStyle="{background: '#2979ff', color: '#fff'}" :list="list" :is-scroll="false"
  35. bg-color="transparent" :show-bar="false" :current="current" @change="change"></u-tabs>
  36. </template>
  37. <template v-if="current == 0">
  38. <scroll-view :scroll-top="scrollTop" lower-threshold='100px' @scrolltolower="ltolower()"
  39. upper-threshold='40px' @scrolltoupper="rolltoupper()" :scroll-into-view="scrollId" scroll-y="true"
  40. class="zhuti text scroll-Y">
  41. <!-- 聊天记录-->
  42. <view class="dialog-block" style="border-bottom: none;">
  43. <block v-for="(item,index) in findTabooWordsList" :key="index">
  44. <view class="text">
  45. <view class="avatar">
  46. <view :style="[SPEAKERSTYLE(item.speaker)]">
  47. <!-- <image v-if="item.isShow && item.isShow == 0" :src="Aimg" mode="widthFix"></image> -->
  48. <text v-if="item.isShow == 0">顾</text>
  49. <text v-else>{{ item.speaker | toCapital }}</text>
  50. </view>
  51. </view>
  52. <view class="contentInfo">
  53. <view class="info">
  54. <!-- <text class="AudioUserName">{{ item.speaker | toCapital }}</text> -->
  55. <text class="AudioUserName" v-if="item.isShow == 0">{{item.username}}</text>
  56. <text class="AudioUserName" v-else>{{ item.speaker | toCapital }}</text>
  57. <text>{{conversionTiame(item.bg/1000)}}</text>
  58. </view>
  59. <view class="contentMain">
  60. <view class="content">
  61. <view v-html="item.onebest"></view>
  62. </view>
  63. <template v-if="isShowMerge">
  64. <image @click="clickbofang(0,item, 'show')" class="play"
  65. src="@/static/images/recordingManagement/play.png"></image>
  66. </template>
  67. </view>
  68. </view>
  69. </view>
  70. </block>
  71. </view>
  72. </scroll-view>
  73. </template>
  74. <template v-if="current == 1">
  75. <!-- 音频 -->
  76. <view class="audio">
  77. <!-- 标记顾问 -->
  78. <view class="headboxbott">
  79. <view class="headovfu">
  80. <u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="roleindex"
  81. @change="tapspagek()" inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist"
  82. :is-scroll="true">
  83. </u-tabs-swiper>
  84. </view>
  85. <view v-if="permissions.bjgw" class="headpade">
  86. <view class="biaoji" @tap="tagtap()">标记</view>
  87. </view>
  88. </view>
  89. </view>
  90. <scroll-view :scroll-top="scrollTop" lower-threshold='100px' @scrolltolower="ltolower()"
  91. upper-threshold='40px' @scrolltoupper="rolltoupper()" :scroll-into-view="scrollId" scroll-y="true"
  92. class="zhuti text scroll-Y">
  93. <!-- 聊天记录-->
  94. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  95. <view :id="'dialog'+i" class="fileName">录音文件</view>
  96. <block v-for="(item,index) in dialog.message" :key="index">
  97. <view class="text" :id="'dialog'+csdFileindex+'text'+item.bg"
  98. :class="{active: item.bg < playNow && item.ed > playNow, reverse: Number(item.speaker) % 2 == 0}"
  99. :data-speaker="item.speaker">
  100. <view class="avatar">
  101. <view :style="[SPEAKERSTYLE(item.speaker)]">
  102. <!-- <image v-if="item.isShow == 0" :src="Aimg" mode="widthFix"></image> -->
  103. <text v-if="item.isShow == 0">顾</text>
  104. <text v-else>{{ item.speaker | toCapital }}</text>
  105. </view>
  106. </view>
  107. <view class="contentInfo">
  108. <view class="info">
  109. <!-- <text class="AudioUserName">{{ item.speaker | toCapital }}</text> -->
  110. <text class="AudioUserName" v-if="item.isShow == 0">{{ item.username }}</text>
  111. <text class="AudioUserName" v-else>{{ item.speaker | toCapital }}</text>
  112. <text>{{conversionTiame(item.bg/1000)}}</text>
  113. </view>
  114. <view class="contentMain">
  115. <view class="content">
  116. <view v-html="item.onebest"></view>
  117. </view>
  118. <image @click="clickbofang(dialog.backindex,item)" class="play"
  119. src="@/static/images/recordingManagement/play.png"></image>
  120. </view>
  121. </view>
  122. </view>
  123. </block>
  124. </view>
  125. </scroll-view>
  126. </template>
  127. <view class="bottombox">
  128. <!-- 播放块 -->
  129. <template v-if="current == 1">
  130. <zaudio :duration="duration" theme="theme4"></zaudio>
  131. </template>
  132. <template v-if="userlistobj.invalidViolatedCause">
  133. <view class="bottomtips">
  134. 无效原因:{{ userlistobj.invalidViolatedCause }}
  135. </view>
  136. </template>
  137. <view class="botbotmm">
  138. <view class="item" @click="preValid">上一条</view>
  139. <template v-if="isShowMerge">
  140. <template v-if="userlistobj.disposeStatus == 0">
  141. <view class="item" @click="setViolated(1)">确认有效</view>
  142. <view class="item" @tap="showTagValid">确认无效</view>
  143. </template>
  144. <template v-if="userlistobj.disposeStatus == 1 && userlistobj.violatedStatus == 1">
  145. <view class="item" @tap="showTagValid">无效</view>
  146. </template>
  147. <template v-if="userlistobj.disposeStatus == 1 && userlistobj.violatedStatus == 2">
  148. <view class="item" @click="setViolated(1)">确认有效</view>
  149. </template>
  150. </template>
  151. <view class="item" @click="nextValid">下一条</view>
  152. </view>
  153. </view>
  154. <!-- 标记顾问 -->
  155. <u-popup v-model="biojiisshow" mode="center">
  156. <view class="bounced">
  157. <view class="jiajinghuatit">标记为顾问</view>
  158. <view
  159. style="width: 95%;display: flex;flex-wrap: wrap;margin: 0 auto;padding-top: 30rpx;padding-bottom: 30rpx;">
  160. <view class="viewclace" :class="roleindexbiaoji == index ? 'bosdttom' : ''"
  161. @click="biaojixuanze(index)" v-for="(item,index) in tablist.slice(1,tablist.length)"
  162. :key="index">
  163. <view>{{item.name}}</view>
  164. </view>
  165. </view>
  166. <view class="bounced3" style="margin-top: 20rpx;">
  167. <view class="bounced3-1" @tap="unmarktap">取消</view>
  168. <view class="bounced3-2" @tap="Confirmthetag">确认</view>
  169. </view>
  170. </view>
  171. </u-popup>
  172. <!-- 标记无效原因 border-radius="16" -->
  173. <u-popup v-model="tagValidShow" mode="center">
  174. <view class="reason">
  175. <text class="resaon-title">无效原因</text>
  176. <view class="resaon-textbox">
  177. <textarea v-model="reasonSrc" placeholder="请输入无效原因" maxlength="60" />
  178. <text class="lastlength">{{ reasonSrc.length }}/60</text>
  179. </view>
  180. <view class="button">
  181. <text @click="inputDone">完成</text>
  182. </view>
  183. </view>
  184. </u-popup>
  185. </view>
  186. </template>
  187. <script>
  188. var util = require("@/utils/util.js");
  189. var config = require("@/config");
  190. import zaudio from '@/components/uniapp-zaudio/zaudio';
  191. export default {
  192. components: {
  193. zaudio
  194. },
  195. data() {
  196. return {
  197. Aimg: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAMAAAC5zwKfAAACqVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3////9/f39/f3////////9/f3////////////9/f3////9/f39/f3////9/f3////////9/f3////9/f3////////////////9/f39/f3////////9/f39/f3////9/f39/f3////////9/f39/f3////////9/f39/f39/f3////////////////+/v7+/v7////+/v7////+/v7////+/v7+/v7////////+/v7+/v7////+/v7////+/v7////////////////////////////+/v7////+/v7////+/v7+/v7////////////+/v7////+/v7////+/v7+/v7////////+/v7////+/v7////////+/v7////////+/v7////+/v7+/v7+/v7////////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7////+/v7+/v7////+/v7+/v7////+/v7////+/v7////+/v7+/v7////+/v5jdC9iAAAA4nRSTlMAAQIDBAUGBwgLDA0ODxARExQVFhgbHB4fICEiIyQmJygpKy4wMTIzNDY3ODk6Oz0+P0BBQkRGR0lKTE5PUFFTVFVXWFlcXV9gYWJjZWZnaGlqa2xtbm9wcXJzdHV2d3h6e319foGBgoODh4mKiouMjI2QkZKSk5OUlpeYmZmam5ycnZ+foKGio6SmqKmpq6yur7CwsbGytba5uru8wMDBwcLCw8XGx8jJysrLzM7P0dLT1dXW1tfY2drc3N7f4OHh5Obm5+jp6uvs7vDx8vLz8/T09fX29/f4+fn6+vz8/f7+RVDt+wAAA55JREFUGBntwf9/1HMAB/DX7XYbuXWV1cyMoixfugrRGNXytW33pbVdJ83XkiMLSb4LJd/zZUi0SKT5FmGS77HUVaixnHP2+kt8vt3Zbp/3+7P3XR5+8XziP1E4uiYcrh1bjMNi6NzXumnoeX3eSOSrpHUv+zi0ogJ5qd3JLN1XuJGzwqW0sW4oclT0Im19XIqcuNdQ4D0vcnEDhdYgB2f+SbFZUHbEdkrsLYeqFko9CEVH7qJUohxqLqODO6BmLR18XwAVRQfpZDxUnExHjVBRR0eroGIZHX0AFe10tA8qdtNZIRR00VEPVLxLRzuh4jk62gIVy+joSaiI0tECqPDT0blQ4f6RDpI+KHmYDjZBzWQ6aIaibZSK+6BoOqViUOXqoER8BJSdlqJYFDm4h0LveJAD7+cUiFciJ1U/01aiGjk65zfaSF6EnE3azQEO1iAPFZuZZes45MUT3cM+emLFyNfwK3fQ8k1sFA6L0cElTzx9d1OVC/8bNG/gzY+GQaKk461gCQZr8iMHSNZD4nySv6wYj0EYFv2UhqcgcTsN70ePhtzER3+lJe6BxXP9jTctvrl1yS1jkLaNlkTbBR6IlF3dyT78sHh+oqkSlrJe/uOH1jGw4apem2I/1yLtGRo6kRZiP73t57mQxb+Z2dqRdikNtyLtBWb78Cz05bomyQH+KIGljIYaWNxxDtC72ouMgsdpZzosHhqqYDmFdraOQNpttHUfLKU0TITlKtra6IZpCu3tgMVPQx0sG2ivDqaVFDgOppk0LIbJm6C9DTB1UCAMU4SGZ2GqocAumL6jQBtMMRq2wLScAik3dMV/UWB/EQwrafgSpk6KlEJ3LIXOgGE9DQdgqKDQSdBNoNAiGL6i6SjowhSaAt1UCm2CzpOk6QTonqfQJdBdSKGkD5pKWqZCU7iHQtdB10KxWmjOpqUJmtMp9gB091LsIWiCtCyFZiHFXoZuHcW+hiZGy0vQvE2xT6DbTolKAI/R8hmA4SmKdUG3jxIhAG/QkigAZlAi6QJQTJk2AF1MGwXcRRkfgJGU2V8EHzP8wBeUqQQwllKTcCozpuFESk0AMJNSC3AxM8KYT6lpAFootRGLmLEQ6ynVCCBAqcSQ1cy4f8ghSs0HcMzvlKp+lRmvVFMqNQ6aaIoyd3Yy49vllOmuh+H4WZFIpFnTpJmjadTM1oQ1oVAgFNQENA0N9f01BIKh8OzGOU3NkbmXzwuV41/wNztgHKhu7WKTAAAAAElFTkSuQmCC",
  198. list: [{
  199. name: '违禁话术'
  200. }, {
  201. name: '音频识别'
  202. }],
  203. current: 0, // tab下表
  204. tablist: [], // 顾问标记列表
  205. roleindex: 0, // 选中顾问下标
  206. luyinList: [], // 录音文件
  207. newluyinList: [],
  208. dialogList: [], // 录音识别列表渲染数据
  209. permissions: {}, // 权限菜单
  210. biojiisshow: false, // 标记顾问弹窗
  211. textindex: 0, //下拉 转写文件下标
  212. toptextindex: 0, //上拉 转写文件下标
  213. dshfkjsdkksodofydwfkhwdfkjh: 0, // 顾问的id之类的
  214. status: 0, // 状态(不明白是什么状态)
  215. speaker: '', // 角色身份
  216. customerId: '', // 楼盘id吧(猜)
  217. infos: {}, // 音频内容
  218. stateisshow: '', //
  219. itemobj: {}, // 本地缓存的音频信息
  220. userlistobj: {}, // 获取到的顾问信息
  221. csdFileindex: 0, // 当前使用录音转写的下标
  222. // 录音信息
  223. recordPath: "", // 录音地址
  224. playNow: 0, // 当前播放时间
  225. audioType: false, // 音频是否自动播放状态
  226. scrollId: "", // 当前播放滚动到的位置
  227. tagValidShow: false, // 标记弹窗
  228. reasonSrc: '', // 标记无效的原因
  229. findTabooWordsList: [], // 违禁词列表
  230. nextPageObj: JSON.parse(uni.getStorageSync('nextPageObj')), // 当前页面筛选内容
  231. isMerge: 0, // 默认合并
  232. isSw: false,
  233. ACTION: Symbol('zaudio'), // 唯一值区分每个页面的方法
  234. isPageHide: false, // 是否息屏
  235. duration: '', // 总时长
  236. allTextList: [], // 所有话术列表
  237. isFirstWords: 0, // 第一个违禁词出现的时间
  238. }
  239. },
  240. computed: {
  241. conversionTiame() {
  242. return (e) => {
  243. return this.getTime(e);
  244. }
  245. },
  246. // 是否为合并录音
  247. isShowMerge() {
  248. return this.isMerge == 0 ? true : false
  249. }
  250. },
  251. onLoad(option) {
  252. this.status = option.status;
  253. this.customerId = option.customerId;
  254. this.stateisshow = option.stateisshow;
  255. this.itemobj = uni.getStorageSync('searchobj');
  256. if (option.isMerge) this.isMerge = option.isMerge
  257. this.$zaudio.autoPlay = true
  258. //注意: 不同的回调方法, 相同的业务函数方法名, 不会相互影响;
  259. this.$zaudio.on('stop', this.ACTION, () => {
  260. console.log('我是强制暂停或关闭小程序音频浮窗触发的')
  261. })
  262. this.$zaudio.on('seek', this.ACTION, (time) => {
  263. this.sliderChangeComplate(this.TIMEEVENT(time))
  264. })
  265. this.$zaudio.on('playing', this.ACTION, (obj) => {
  266. this.duration = obj.duration
  267. this.TimeUpdate(this.TIMEEVENT(obj.current))
  268. })
  269. this.$zaudio.on('error', this.ACTION, e => {
  270. console.log(e, '加载失败')
  271. })
  272. this.$zaudio.on('ended', this.ACTION, e => {
  273. this.$zaudio.stop()
  274. this.init({
  275. bg: 0,
  276. customerId: this.customerId
  277. })
  278. })
  279. },
  280. onShow() {
  281. this.scrollId = ''
  282. //实时渲染当前的播放状态
  283. if (this.current == 1) {
  284. this.$zaudio.syncRender()
  285. }
  286. this.permissions = uni.getStorageSync('weapp_session_Menu_data') // 权限
  287. this.roleindex = 0;
  288. if (this.stateisshow == 2) {
  289. this.infos = this.itemobj;
  290. } else {
  291. var pages = getCurrentPages();
  292. var currPage = pages[pages.length - 1]; //当前页面
  293. this.infos = currPage.data.info;
  294. }
  295. !this.isPageHide && this.init(this.infos);
  296. this.gituserlist()
  297. this.findTabooWords()
  298. },
  299. onHide() {
  300. this.isPageHide = true
  301. },
  302. onUnload() {
  303. //卸载不需要的业务和获取播放状态的业务,提高页面性能
  304. this.$zaudio.off('seek', this.ACTION);
  305. this.$zaudio.off('stop', this.ACTION);
  306. this.$zaudio.off('playing', this.ACTION);
  307. // this.$zaudio.setAudio([])
  308. },
  309. methods: {
  310. // 获取违禁词
  311. findTabooWords() {
  312. this.$u.get('/customer/findTabooWords', {
  313. customerId: this.customerId
  314. }).then(res => {
  315. let arr = []
  316. res.map(item => {
  317. if (item.transferContent) {
  318. item.transferContents = JSON.parse(item.transferContent)
  319. arr.push(item.transferContents)
  320. }
  321. })
  322. this.findTabooWordsList = arr
  323. this.isFirstWords = arr[0].bg
  324. console.log(this.findTabooWordsList, 'findTabooWordsList')
  325. })
  326. },
  327. // 确认无效标记 setViolatedStatus = 2
  328. inputDone() {
  329. if (!this.reasonSrc) {
  330. uni.showToast({
  331. title: '请输入标记无效的原因',
  332. icon: 'none',
  333. duration: 2000
  334. })
  335. return
  336. }
  337. this.setViolated(2)
  338. },
  339. // 下一条
  340. nextValid() {
  341. console.log(this.$zaudio)
  342. if (this.nextPageObj.pageSize < this.nextPageObj.num) {
  343. this.$zaudio.stop()
  344. this.nextPageObj.pageSize++
  345. this.keyWordsMatching(this.nextPageObj)
  346. } else {
  347. uni.showToast({
  348. title: '已经是最后一条了~',
  349. icon: 'none'
  350. })
  351. }
  352. },
  353. // 上一条
  354. preValid() {
  355. if (this.nextPageObj.pageSize == 1) {
  356. uni.showToast({
  357. title: '没有更早的了~'
  358. })
  359. } else {
  360. this.$zaudio.stop()
  361. this.nextPageObj.pageSize--
  362. this.keyWordsMatching(this.nextPageObj)
  363. }
  364. },
  365. // 获取违禁话术详情
  366. keyWordsMatching(params) {
  367. this.$u.post('/customer/findbynum', params).then(res => {
  368. this.customerId = res.results[0].id;
  369. this.current = 0
  370. uni.setStorageSync('nextPageObj', JSON.stringify(this.nextPageObj))
  371. this.resetAudioParams()
  372. this.prohibitedMatch()
  373. }).catch(e => {
  374. this.nextPageObj = JSON.parse(uni.getStorageSync('nextPageObj')), // 当前页面筛选内容
  375. uni.showToast({
  376. title: e.message,
  377. icon: 'none',
  378. duration: 2000
  379. })
  380. })
  381. },
  382. // 违禁词播放位置
  383. prohibitedMatch() {
  384. this.$u.post('/customer/prohibitedMatch', {
  385. customerId: this.customerId
  386. }).then(res => {
  387. let newweijin = res[0];
  388. newweijin.transferContent = JSON.parse(newweijin.transferContent)
  389. var item = {
  390. bg: newweijin.transferContent.bg,
  391. customerId: newweijin.corpusId,
  392. }
  393. // 获取是否有转写的音频
  394. this.$u.post("/corpus/findByPage", {
  395. pageNum: 1,
  396. pageSize: 100,
  397. query: {
  398. customerId: this.customerId,
  399. }
  400. }).then(res => {
  401. if (res == null) {
  402. uni.showToast({
  403. icon: "none",
  404. title: "暂无音频"
  405. })
  406. return
  407. } else {
  408. let newobj = res[0];
  409. this.isMerge = res[0].merge
  410. if (res[0].merge == 0) {
  411. this.infos = item
  412. this.itemobj = item
  413. this.recordPath = res[0].recordPath
  414. uni.setStorageSync("searchobj", item); //写入缓存
  415. console.log('在这里调用的', item)
  416. this.roleindex = 0;
  417. this.gituserlist()
  418. this.findTabooWords()
  419. // this.zyAudio()
  420. } else {
  421. uni.showToast({
  422. icon: "none",
  423. title: "暂无音频"
  424. })
  425. }
  426. }
  427. })
  428. })
  429. },
  430. // 设置违禁状态
  431. setViolated(status) {
  432. let params = {
  433. customerId: this.customerId,
  434. violatedStatus: status,
  435. invalidViolatedCause: this.reasonSrc,
  436. }
  437. this.$u.post('/customer/setViolatedStatus', params).then(res => {
  438. this.tagValidShow = false
  439. uni.showToast({
  440. title: '标记成功',
  441. duration: 2000
  442. });
  443. this.gituserlist()
  444. setTimeout(() => {
  445. this.reasonSrc = ''
  446. }, 2000)
  447. }).catch(e => {
  448. this.tagValidShow = false
  449. uni.showToast({
  450. title: e.message,
  451. duration: 2000
  452. });
  453. })
  454. },
  455. // 展示确认无效原因输入框
  456. showTagValid() {
  457. this.tagValidShow = true
  458. },
  459. //获取用户信息
  460. gituserlist() {
  461. this.$u.get("/matchKeywords/personalReceptionRecord", {
  462. customerId: this.customerId
  463. }).then(res => {
  464. res.endTime1 = res.endTime.substring(0, 19);
  465. this.userlistobj = res;
  466. })
  467. },
  468. //标记顾问
  469. tagtap() {
  470. this.biojiisshow = !this.biojiisshow;
  471. },
  472. //取消标记
  473. unmarktap() {
  474. this.roleindexbiaoji = this.dshfkjsdkksodofydwfkhwdfkjh;
  475. },
  476. //确认标记
  477. Confirmthetag() {
  478. var num = this.roleindexbiaoji + 1;
  479. let params = {
  480. id: this.luyinList[this.csdFileindex].id,
  481. speaker: num,
  482. customerId: this.customerId
  483. }
  484. this.$u.get(config.service.markConsultant, params).then((data) => {
  485. this.biojiisshow = false;
  486. this.biaojiyuyi()
  487. this.fenjiaoseunfo()
  488. uni.showToast({
  489. title: '标记成功',
  490. duration: 2000
  491. });
  492. })
  493. },
  494. // 切换角色展示
  495. tapspagek(index) {
  496. this.roleindex = index;
  497. this.newluyinList = [];
  498. this.fenjiaoseunfo()
  499. this.$forceUpdate()
  500. },
  501. // 初始化音频以及页面数据
  502. init(info, type) {
  503. this.sliderMax = 0; //进度条最大值
  504. this.timeStr = "00:00"; //总的时间
  505. const parames = {
  506. pageNum: 1,
  507. pageSize: 100,
  508. query: {
  509. customerId: this.customerId
  510. }
  511. }
  512. this.$u.post("/corpus/findByPage", parames).then(res => {
  513. if (res && res.length) {
  514. let alltime = 1 + res[0].recordDuration;
  515. this.calibration = res[0].calibration;
  516. if (this.calibration == 0) {
  517. this.kehuyixiangcenterindex = 0;
  518. } else {
  519. this.kehuyixiangcenterindex = 1;
  520. }
  521. if (info.bg != 0) {
  522. this.luyinList = res;
  523. this.recordPath = res[0].recordPath
  524. this.sliderMax = this.getTime(res[0].recordDuration)
  525. this.timeStr = this.getTime(res[0].recordDuration)
  526. this.date = res[0].receptionTime;
  527. this.getCorpusAnalysis(info, type);
  528. } else {
  529. this.luyinList = res;
  530. this.recordPath = res[0].recordPath
  531. this.sliderMax = this.getTime(res[0].recordDuration)
  532. this.timeStr = this.getTime(res[0].recordDuration)
  533. this.date = res[0].receptionTime;
  534. this.getCorpusAnalysis(info, type);
  535. }
  536. }
  537. })
  538. },
  539. // 重置进度条
  540. resetAudioParams() {
  541. this.scrollId = "" // 当前播放滚动到的位置
  542. },
  543. // 获取转义后的对话结果
  544. getCorpusAnalysis(info, type) {
  545. this.dialogList = [];
  546. this.newluyinList = []
  547. uni.request({
  548. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  549. "&bg=" + info.bg + "&speaker=" + this.roleindex + '&num=50', //仅为示例,并非真实接口地址。
  550. method: "GET",
  551. header: {
  552. 'content-type': 'application/json',
  553. 'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
  554. },
  555. success: (data) => {
  556. this.tablist = [];
  557. this.roleindexbiaoji = 0;
  558. let jsonInfo = JSON.parse(data.data.data.audioContent);
  559. for (var i = 0; i <= data.data.data.speakerNum; i++) {
  560. if (i === 0) {
  561. this.tablist.push({
  562. name: '全部'
  563. })
  564. } else {
  565. this.tablist.push({
  566. name: String.fromCharCode(i + 64)
  567. })
  568. }
  569. }
  570. if (data.data.data.speaker == null) {
  571. this.dshfkjsdkksodofydwfkhwdfkjh = 0;
  572. } else {
  573. if (data.data.data.viewNameFlag == 1) {
  574. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  575. .speaker]
  576. .name;
  577. } else {
  578. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  579. .speaker]
  580. .name + "顾问";
  581. }
  582. this.roleindexbiaoji = data.data.data.speaker - 1;
  583. this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
  584. }
  585. if (data.data.data.viewNameFlag == 1) {
  586. let p = [{
  587. name: '顾问'
  588. }]
  589. this.tablist = [...this.tablist, ...p]
  590. this.isSw = true
  591. } else {
  592. this.isSw = false
  593. }
  594. this.speaker = data.data.data.speaker;
  595. //上拉标记点
  596. this.textindex = data.data.data.index;
  597. //下拉标记点
  598. this.toptextindex = data.data.data.index;
  599. jsonInfo.forEach(item => {
  600. item.message = JSON.parse(item.onebest)
  601. item.backindex = this.csdFileindex;
  602. if (info.onebest) {
  603. item.message.forEach(che => {
  604. if (che.onebest == info.onebest) {
  605. che.onebest =
  606. `<font style='color: red'>${che.onebest}</font>`;
  607. }
  608. })
  609. }
  610. })
  611. this.newluyinList = jsonInfo;
  612. this.dialogList.push(jsonInfo[0]);
  613. console.log(this.dialogList, '12312321')
  614. if (type == 'show') {
  615. var itc = parseInt(info.bg / 1000)
  616. this.adasdasdasd(itc)
  617. }
  618. this.$forceUpdate()
  619. }
  620. })
  621. },
  622. //下一页
  623. ltolower() {
  624. var lengthcz = this.newluyinList.length - 1;
  625. if (this.textindex >= lengthcz) {
  626. uni.showToast({
  627. title: '到底了',
  628. icon: 'none',
  629. duration: 2000
  630. });
  631. return
  632. } else {
  633. this.textindex = this.textindex + 1;
  634. this.newluyinList[this.textindex].message.forEach(item => {
  635. this.dialogList[0].message.push(item)
  636. })
  637. }
  638. },
  639. //上一页
  640. rolltoupper() {
  641. if (this.toptextindex == 0) {
  642. return
  643. } else {
  644. if (this.dialogList[0] == undefined) {
  645. return
  646. } else {
  647. this.toptextindex = this.toptextindex - 1;
  648. let reverselist = this.newluyinList[this.toptextindex].message;
  649. let runlist = reverselist.reverse();
  650. runlist.forEach(item => {
  651. this.dialogList[0].message.unshift(item)
  652. })
  653. }
  654. }
  655. },
  656. //搜索跳转
  657. adasdasdasd(e) {
  658. this.stepPlay(e)
  659. },
  660. //分角色标记刷新
  661. fenjiaoseunfo() {
  662. var bgcd = this.playNow * 1000;
  663. this.newluyinList = [];
  664. this.dialogList = [];
  665. let voFlagValue;
  666. if (this.roleindex == 0) {
  667. voFlagValue = 0
  668. } else {
  669. voFlagValue = 1
  670. }
  671. let tempRoleIndex;
  672. if (this.isSw) {
  673. if (this.roleindex == this.tablist.length - 1) {
  674. tempRoleIndex = 0
  675. } else {
  676. tempRoleIndex = this.roleindex
  677. }
  678. } else {
  679. tempRoleIndex = this.roleindex
  680. }
  681. uni.request({
  682. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  683. "&bg=" + bgcd + "&speaker=" + tempRoleIndex + "&voFlag=" + voFlagValue +
  684. '&num=50', //仅为示例,并非真实接口地址。
  685. method: "GET",
  686. header: {
  687. 'content-type': 'application/json',
  688. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  689. },
  690. success: (data) => {
  691. this.tablist = [];
  692. let jsonInfo = JSON.parse(data.data.data.audioContent);
  693. for (var i = 0; i <= data.data.data.speakerNum; i++) {
  694. if (i === 0) {
  695. this.tablist.push({
  696. name: '全部'
  697. })
  698. } else {
  699. this.tablist.push({
  700. name: String.fromCharCode(i + 64)
  701. })
  702. }
  703. }
  704. if (data.data.data.speaker == null) {
  705. this.roleindexbiaoji = 0;
  706. this.dshfkjsdkksodofydwfkhwdfkjh = 0;
  707. } else {
  708. if (data.data.data.viewNameFlag == 1) {
  709. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  710. .speaker]
  711. .name;
  712. } else {
  713. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  714. .speaker]
  715. .name + "顾问";
  716. }
  717. this.roleindexbiaoji = data.data.data.speaker - 1;
  718. this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
  719. }
  720. if (data.data.data.viewNameFlag == 1) {
  721. let p = [{
  722. name: '顾问'
  723. }]
  724. this.tablist = [...this.tablist, ...p]
  725. }
  726. if (this.roleindex > this.tablist.length - 1) {
  727. this.roleindex = this.tablist.length - 1
  728. this.fenjiaoseunfo()
  729. }
  730. this.speaker = data.data.data.speaker;
  731. //上拉标记点
  732. this.textindex = data.data.data.index;
  733. //下拉标记点
  734. this.toptextindex = data.data.data.index;
  735. jsonInfo.forEach(item => {
  736. item.message = JSON.parse(item.onebest)
  737. item.backindex = this.csdFileindex
  738. })
  739. console.log(jsonInfo)
  740. this.newluyinList = jsonInfo;
  741. if (this.textindex == null) {
  742. return
  743. } else {
  744. this.dialogList.push(jsonInfo[this.textindex]);
  745. }
  746. }
  747. })
  748. },
  749. // 选中下标
  750. change(index) {
  751. this.current = index;
  752. this.scrollId = ''
  753. if (index == 1) {
  754. this.zyAudio()
  755. }
  756. },
  757. //长按点击播放
  758. clickbofang(dialog, item, type) {
  759. if (type == 'show') {
  760. this.isFirstWords = 0 // 重置为零
  761. this.current = 1
  762. this.infos = item
  763. this.audioType = true
  764. this.init(this.infos, type)
  765. let data = [{
  766. src: this.recordPath,
  767. title: '录音音频',
  768. singer: '',
  769. coverImgUrl: ''
  770. }]
  771. this.$zaudio.setAudio(data)
  772. //渲染第一首音频
  773. this.$zaudio.setRender(0)
  774. setTimeout(() => {
  775. this.adasdasdasd(parseInt(item.bg / 1000))
  776. }, 1500)
  777. return
  778. } else {
  779. this.audioType = false
  780. }
  781. this.dialogList.forEach(res => {
  782. res.message.forEach(asd => {
  783. asd.isshow = false;
  784. })
  785. })
  786. this.$forceUpdate()
  787. let platetime = item.bg;
  788. let newtime = item.bg / 1000;
  789. console.log(newtime, 'newTime')
  790. this.dialogList = []
  791. uni.request({
  792. url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  793. "&bg=" + platetime, //仅为示例,并非真实接口地址。
  794. method: "GET",
  795. header: {
  796. 'content-type': 'application/json',
  797. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  798. },
  799. success: (data) => {
  800. this.textindex = data.data.data.index;
  801. this.toptextindex = data.data.data.index;
  802. this.dialogList.push(this.newluyinList[data.data.data.index])
  803. const currTimeStr = this.formatTime(newtime)
  804. console.log(currTimeStr, 'currTimeStr')
  805. this.stepPlay(newtime);
  806. }
  807. })
  808. },
  809. TimeUpdate(currentTime) {
  810. this.playNow = Number(currentTime)
  811. if (this.dialogList.length == 0) {
  812. return
  813. } else {
  814. const message = this.dialogList[0].message;
  815. if (!message) return
  816. for (let i = 0; i < message.length; i++) {
  817. if (Math.floor(message[i].bg / 1000) <= this.playNow && this.playNow < Math.floor(message[i].ed /
  818. 1000)) {
  819. console.log(message[i].bg, '我是active', message[i].ed, '我是currentTime', this.playNow)
  820. console.log(message[i].onebest)
  821. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  822. break;
  823. }
  824. if (i < message.length - 1 && Math.floor(message[i].ed / 1000) <= this.playNow && this.playNow <=
  825. Math.floor(message[i + 1].bg / 1000)) {
  826. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  827. break;
  828. }
  829. }
  830. }
  831. this.$forceUpdate()
  832. },
  833. //音频前进回退
  834. sliderChangeComplate(currentTime) {
  835. this.dialogList = []
  836. for (let i = 0; i < this.newluyinList.length; i++) {
  837. let message = this.newluyinList[i].message
  838. if (!message) return
  839. if (Math.floor(this.newluyinList[i].bg / 1000) <= currentTime && currentTime <= Math.floor(this
  840. .newluyinList[i].ed / 1000)) {
  841. for (let j = 0; j < message.length; j++) {
  842. let item = message[j]
  843. if (Math.floor(item.bg / 1000) <= currentTime && currentTime <= Math.floor(item.ed / 1000)) {
  844. this.scrollId = "dialog" + this.csdFileindex + "text" + item.bg;
  845. break;
  846. }
  847. if (j < message.length - 1 && Math.floor(item.ed / 1000) <= currentTime && currentTime <= Math
  848. .floor(item.bg / 1000)) {
  849. this.scrollId = "dialog" + this.csdFileindex + "text" + item.bg;
  850. break;
  851. }
  852. }
  853. this.textindex = i;
  854. this.toptextindex = i;
  855. this.dialogList.push(this.newluyinList[i])
  856. }
  857. }
  858. },
  859. // 格式化时间
  860. getTime(time) {
  861. return util.formatSecond(time)
  862. },
  863. // 格式化时间
  864. formatTime(num) {
  865. //格式化时间格式
  866. num = num.toFixed(0);
  867. let second = num % 60;
  868. if (second < 10) second = '0' + second;
  869. let min = Math.floor(num / 60);
  870. if (min < 10) min = '0' + min;
  871. return min + ":" + second;
  872. },
  873. //录音实例
  874. zyAudio(times) {
  875. let data = [{
  876. src: this.recordPath,
  877. title: '录音音频',
  878. singer: '',
  879. coverImgUrl: ''
  880. }]
  881. if (this.current == 1) {
  882. this.$zaudio.setAudio(data)
  883. //渲染第一首音频
  884. this.$zaudio.setRender(0)
  885. console.log(this.$zaudio)
  886. if (this.isFirstWords != 0) {
  887. setTimeout(() => {
  888. this.stepPlay(Math.floor(this.isFirstWords/1000))
  889. this.isFirstWords = 0
  890. }, 2000)
  891. }
  892. setTimeout(() => {
  893. this.$zaudio.operate()
  894. }, 150)
  895. }
  896. },
  897. // 跳转指定位置播放
  898. stepPlay(t) {
  899. this.$zaudio.seek(t)
  900. if (this.$zaudio.paused) {
  901. this.$zaudio.operate()
  902. }
  903. }
  904. },
  905. filters: {
  906. // violatedStatus
  907. ViolatedStatus(status) {
  908. let str = '';
  909. switch (status) {
  910. case 0:
  911. str = '待处理'
  912. break;
  913. case 1:
  914. str = '有效违禁'
  915. break;
  916. case 2:
  917. str = '无效违禁'
  918. break;
  919. }
  920. return str
  921. },
  922. // 处理状态
  923. DisposeStatus(status) {
  924. let str = '';
  925. switch (status) {
  926. case 0:
  927. str = '待处理'
  928. break;
  929. case 1:
  930. str = '有效违禁'
  931. break;
  932. case 2:
  933. str = '无效违禁'
  934. break;
  935. }
  936. return str
  937. },
  938. }
  939. }
  940. </script>
  941. <style lang="scss" scoped>
  942. .details {
  943. width: 100vw;
  944. height: calc(100vh - var(--window-top));
  945. display: flex;
  946. flex-direction: column;
  947. .header {
  948. padding: 19rpx 30rpx 0;
  949. width: 100%;
  950. height: 210rpx;
  951. .h-box {
  952. width: 100%;
  953. height: 100%;
  954. background: #fff;
  955. border-radius: 16rpx;
  956. .h-b-top {
  957. display: flex;
  958. align-items: center;
  959. justify-content: space-between;
  960. .name {
  961. font-size: 30rpx;
  962. font-weight: bold;
  963. }
  964. .status {
  965. display: flex;
  966. align-items: center;
  967. .pointer {
  968. margin: 0 .5em;
  969. width: 12rpx;
  970. height: 12rpx;
  971. border-radius: 50%;
  972. background: #2671E2;
  973. }
  974. }
  975. }
  976. .h-b-btm {
  977. display: flex;
  978. justify-content: space-between;
  979. .item {
  980. flex-shrink: 0;
  981. display: flex;
  982. align-items: center;
  983. &.hit {
  984. color: #E7483C;
  985. font-size: bold;
  986. }
  987. .item-imgs {
  988. margin-right: .5em;
  989. width: 32rpx;
  990. height: 32rpx;
  991. }
  992. }
  993. }
  994. }
  995. }
  996. .audio {
  997. .headboxbott {
  998. width: 100%;
  999. height: 88rpx;
  1000. display: flex;
  1001. align-items: center;
  1002. .headovfu {
  1003. flex: 1;
  1004. height: 88rpx;
  1005. overflow: hidden;
  1006. }
  1007. .headpade {
  1008. width: 160rpx;
  1009. height: 60rpx;
  1010. display: flex;
  1011. justify-content: center;
  1012. align-items: center;
  1013. border-left: 1px solid #D6D6D6;
  1014. .biaoji {
  1015. min-width: 120rpx;
  1016. height: 48rpx;
  1017. background: #E6625B;
  1018. border-radius: 24rpx;
  1019. text-align: center;
  1020. line-height: 48rpx;
  1021. color: #FFFFFF;
  1022. font-size: 26rpx;
  1023. }
  1024. }
  1025. }
  1026. }
  1027. .scroll-Y {
  1028. flex: 1;
  1029. overflow: auto;
  1030. font-size: 36upx;
  1031. color: #999999;
  1032. background: #FFFFFF;
  1033. overflow-y: scroll;
  1034. width: 100%;
  1035. .dialog-block {
  1036. margin: 20rpx 0;
  1037. border-bottom: 1px solid #ccc;
  1038. .fileName {
  1039. text-align: center;
  1040. margin: 10rpx auto;
  1041. width: 115rpx;
  1042. height: 42rpx;
  1043. line-height: 42rpx;
  1044. background: #EFEFEF;
  1045. border-radius: 4rpx;
  1046. font-size: 20rpx;
  1047. font-weight: 400;
  1048. color: #333333;
  1049. }
  1050. }
  1051. .text {
  1052. margin: 50upx 30upx;
  1053. display: flex;
  1054. align-items: center;
  1055. .avatar {
  1056. margin-right: 24rpx;
  1057. width: 64upx;
  1058. height: 64upx;
  1059. line-height: 64upx;
  1060. text-align: center;
  1061. font-size: 36rpx;
  1062. border-radius: 50%;
  1063. background: #F2F2F2;
  1064. color: #008EF2;
  1065. image {
  1066. width: 40upx;
  1067. }
  1068. }
  1069. .content {
  1070. margin-left: 30upx;
  1071. line-height: 60rpx;
  1072. text-align: left;
  1073. padding: 0 5px;
  1074. background: #2BC805;
  1075. border-radius: 8upx;
  1076. max-width: 442rpx;
  1077. color: #FFFFFF;
  1078. position: relative;
  1079. .tankuangcss {
  1080. position: absolute;
  1081. top: -140rpx;
  1082. left: -120rpx;
  1083. width: 308rpx;
  1084. height: 130rpx;
  1085. background-color: #333333;
  1086. font-size: 24rpx;
  1087. color: #FFFFFF;
  1088. padding-top: 4rpx;
  1089. padding-bottom: 4rpx;
  1090. display: flex;
  1091. flex-wrap: wrap;
  1092. border-radius: 15rpx;
  1093. z-index: 1000;
  1094. }
  1095. .bottoms {
  1096. top: unset;
  1097. bottom: -140rpx;
  1098. }
  1099. }
  1100. .contentInfo {
  1101. .info {
  1102. color: #ccc;
  1103. font-size: 18rpx;
  1104. font-size: 30rpx;
  1105. .AudioUserName {
  1106. margin-right: 20rpx;
  1107. }
  1108. }
  1109. }
  1110. .contentMain {
  1111. display: flex;
  1112. .content {
  1113. margin-left: 0;
  1114. margin-right: 30upx;
  1115. // margin: 0 30upx;
  1116. }
  1117. .play {
  1118. width: 50rpx;
  1119. height: 50rpx;
  1120. margin-right: 20rpx;
  1121. }
  1122. }
  1123. &.active {
  1124. .content {
  1125. color: #FF7538 !important;
  1126. position: relative;
  1127. }
  1128. }
  1129. &.reverse {
  1130. flex-direction: row-reverse;
  1131. text-align: right;
  1132. .avatar {
  1133. margin-left: 24rpx;
  1134. }
  1135. .content {
  1136. margin-left: 0;
  1137. margin-right: 30upx;
  1138. background: #F6F6F6;
  1139. color: #999999;
  1140. }
  1141. .contentInfo {
  1142. .info {
  1143. color: #ccc;
  1144. font-size: 18rpx;
  1145. font-size: 30rpx;
  1146. padding: 0 28rpx;
  1147. display: flex;
  1148. flex-direction: row-reverse;
  1149. .AudioUserName {
  1150. margin-left: 10rpx;
  1151. }
  1152. }
  1153. .contentMain {
  1154. display: flex;
  1155. flex-direction: row-reverse;
  1156. align-items: center;
  1157. .content {
  1158. margin-left: 0;
  1159. margin-right: 30upx;
  1160. }
  1161. .play {
  1162. width: 50rpx;
  1163. height: 50rpx;
  1164. margin-right: 20rpx;
  1165. }
  1166. }
  1167. }
  1168. }
  1169. }
  1170. }
  1171. .bottombox {
  1172. width: 100%;
  1173. min-height: 88rpx;
  1174. .bottomhead {
  1175. width: 100%;
  1176. height: 81rpx;
  1177. border-top: 1px solid #E0E0E0;
  1178. border-bottom: 1px solid #E0E0E0;
  1179. display: flex;
  1180. justify-content: space-between;
  1181. align-items: center;
  1182. .audio-slider {
  1183. width: 87%;
  1184. display: flex;
  1185. justify-content: space-between;
  1186. align-items: center;
  1187. padding-right: 30rpx;
  1188. }
  1189. .audio-slider .slider {
  1190. width: 100%;
  1191. padding: 0px 15rpx;
  1192. box-sizing: border-box;
  1193. }
  1194. .audio-time {
  1195. width: 110rpx;
  1196. text-align: right;
  1197. font-size: 26rpx;
  1198. line-height: 28rpx;
  1199. color: #70798D;
  1200. display: flex;
  1201. justify-content: space-between;
  1202. }
  1203. .audio-play {
  1204. width: 48rpx;
  1205. height: 48rpx;
  1206. flex-shrink: 0;
  1207. }
  1208. .audio-play .image {
  1209. width: 100%;
  1210. height: 100%;
  1211. margin-left: 30rpx;
  1212. }
  1213. }
  1214. .bottomtips {
  1215. padding: 0 32rpx;
  1216. min-height: 70rpx;
  1217. display: flex;
  1218. align-items: center;
  1219. background: #FDEBC6;
  1220. }
  1221. .botbotmm {
  1222. width: 100%;
  1223. height: 88rpx;
  1224. display: flex;
  1225. align-items: center;
  1226. .item {
  1227. flex: 1;
  1228. height: 100%;
  1229. display: flex;
  1230. align-items: center;
  1231. justify-content: center;
  1232. border: 1rpx solid #E0E0E0;
  1233. border-top: none;
  1234. }
  1235. }
  1236. }
  1237. .bounced {
  1238. width: 570rpx;
  1239. background: #FFFFFF;
  1240. z-index: 1000;
  1241. border-radius: 10rpx;
  1242. position: fixed;
  1243. left: 50%;
  1244. top: 50%;
  1245. transform: translate(-50%, -50%);
  1246. .headpade {
  1247. margin-top: 10rpx;
  1248. padding: 8rpx 8rpx 8rpx 8rpx;
  1249. background: #108ee9;
  1250. color: #fff;
  1251. border-radius: 16rpx;
  1252. }
  1253. /* 50%为自身尺寸的一半 */
  1254. .jiajinghuatit {
  1255. width: 100%;
  1256. height: 68rpx;
  1257. font-size: 30rpx;
  1258. text-align: center;
  1259. line-height: 68rpx;
  1260. }
  1261. .jiajinghuaview {
  1262. padding: 18rpx 18rpx 18rpx 18rpx;
  1263. display: flex;
  1264. flex-wrap: wrap;
  1265. .jiajinghuaview1 {
  1266. padding: 8rpx 8rpx 8rpx 8rpx;
  1267. font-size: 26rpx;
  1268. border-radius: 12rpx;
  1269. border: 1px solid #979797;
  1270. margin-left: 8rpx;
  1271. }
  1272. .jighuaview2 {
  1273. padding: 8rpx 18rpx 8rpx 18rpx;
  1274. font-size: 26rpx;
  1275. border-radius: 12rpx;
  1276. border: 1px solid #979797;
  1277. margin-left: 20rpx;
  1278. margin-top: 10rpx;
  1279. display: flex;
  1280. .view1-text {
  1281. text-align: center;
  1282. }
  1283. .view1-img {
  1284. width: 50rpx;
  1285. }
  1286. }
  1287. }
  1288. .bounced3 {
  1289. height: 100rpx;
  1290. width: 100%;
  1291. margin-top: 40rpx;
  1292. border-top: 1px solid #dddddd;
  1293. display: flex;
  1294. }
  1295. .bounced3-1 {
  1296. width: 50%;
  1297. height: 100%;
  1298. text-align: center;
  1299. line-height: 100rpx;
  1300. border-right: 1px solid #dddddd;
  1301. font-size: 36rpx;
  1302. color: #999999;
  1303. }
  1304. .bounced3-2 {
  1305. width: 50%;
  1306. height: 100%;
  1307. text-align: center;
  1308. line-height: 100rpx;
  1309. font-size: 36rpx;
  1310. color: #108ee9;
  1311. }
  1312. }
  1313. .reason {
  1314. padding: 0 32rpx 32rpx;
  1315. width: 686rpx;
  1316. min-height: 350rpx;
  1317. display: flex;
  1318. flex-direction: column;
  1319. box-sizing: border-box;
  1320. .resaon-title {
  1321. padding: 24rpx 0;
  1322. flex-shrink: 0;
  1323. line-height: 32rpx;
  1324. font-size: 32rpx;
  1325. box-sizing: border-box;
  1326. }
  1327. .resaon-textbox {
  1328. padding: 12rpx 16rpx 36rpx;
  1329. position: relative;
  1330. flex-grow: 1;
  1331. box-sizing: border-box;
  1332. border: 1rpx solid #979797;
  1333. // border-radius: 16rpx;
  1334. display: flex;
  1335. textarea {
  1336. flex-grow: 1;
  1337. box-sizing: border-box;
  1338. }
  1339. .lastlength {
  1340. position: absolute;
  1341. right: 32rpx;
  1342. bottom: 12rpx;
  1343. font-size: 24rpx;
  1344. box-sizing: border-box;
  1345. }
  1346. }
  1347. .button {
  1348. margin-top: 24rpx;
  1349. width: 100%;
  1350. display: flex;
  1351. justify-content: flex-end;
  1352. text {
  1353. padding: 10rpx 35rpx;
  1354. color: #fff;
  1355. background: #008EF2;
  1356. border-radius: 16rpx;
  1357. }
  1358. }
  1359. }
  1360. }
  1361. /deep/.u-tab-item {
  1362. border: 1rpx solid #dedede;
  1363. }
  1364. </style>