25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

details.vue 40 KiB

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