25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

2528 satır
69 KiB

  1. <template>
  2. <view class="box">
  3. <view class="headbox">
  4. <!-- 顶部时间 -->
  5. <view class="headboxhead">
  6. <view class="boxhead1">{{date}}</view>
  7. <view class="boxhead2" v-if="permissions.commonly3">
  8. <image v-if="status==1" @click="tappick()" src="../../static/images/pike.png" mode=""></image>
  9. <image v-if="status==0" @click="notappick()" src="../../static/images/nopike.png" mode=""></image>
  10. </view>
  11. </view>
  12. <!-- <view class="inputbox" v-if="guanjianciishow">
  13. <view class="thisinput" @click="toKeywordsearch()">
  14. 请输入或选择
  15. </view>
  16. </view> -->
  17. <!-- 标记顾问 -->
  18. <view class="headboxbott">
  19. <view class="headovfu">
  20. <u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="roleindex" @change="tapspagek()"
  21. inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist" :is-scroll="true">
  22. </u-tabs-swiper>
  23. </view>
  24. <view v-if="permissions.commonly1" class="headpade">
  25. <view class="biaoji" @tap="tagtap()">标记</view>
  26. </view>
  27. </view>
  28. </view>
  29. <scroll-view :scroll-top="scrollTop" lower-threshold='100px' @scrolltolower="ltolower()"
  30. upper-threshold='40px' @scrolltoupper="rolltoupper()"
  31. :scroll-into-view="scrollId" scroll-y="true" class="zhuti text scroll-Y">
  32. <!-- 聊天记录-->
  33. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  34. <view :id="'dialog'+i" class="fileName">录音文件</view>
  35. <view class="text" :id="'dialog'+csdFileindex+'text'+item.bg"
  36. :class="{active: item.bg < playNow && item.ed > playNow && i==0}"
  37. v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker">
  38. <view class="avatar">
  39. <view v-if="item.speaker == 1" style="color: #60CBEC;">
  40. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  41. <text v-else>A</text>
  42. </view>
  43. <view v-if="item.speaker == 2" style="color: #EC8B47;">
  44. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  45. <text v-else>B</text>
  46. </view>
  47. <view v-if="item.speaker == 3" style="color: #4F861E;">
  48. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  49. <text v-else>C</text>
  50. </view>
  51. <view v-if="item.speaker == 4" style="color: #9F61C8;">
  52. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  53. <text v-else>D</text>
  54. </view>
  55. <view v-if="item.speaker == 5" style="color: #4980C8;">
  56. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  57. <text v-else>E</text>
  58. </view>
  59. <view v-if="item.speaker == 6" style="color: #60CBEC;">
  60. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  61. <text v-else>F</text>
  62. </view>
  63. <view v-if="item.speaker == 7" style="color: #EC8B47;">
  64. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  65. <text v-else>G</text>
  66. </view>
  67. <view v-if="item.speaker == 8" style="color: #4F861E;">
  68. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  69. <text v-else>H</text>
  70. </view>
  71. <view v-if="item.speaker == 9" style="color: #9F61C8;">
  72. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  73. <text v-else>I</text>
  74. </view>
  75. <view v-if="item.speaker == 10" style="color: #9F61C8;">
  76. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  77. <text v-else>J</text>
  78. </view>
  79. <view v-if="item.speaker == 11" style="color: #9F61C8;">
  80. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  81. <text v-else>K</text>
  82. </view>
  83. <view v-if="item.speaker == 12" style="color: #9F61C8;">
  84. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  85. <text v-else>L</text>
  86. </view>
  87. <view v-if="item.speaker == 13" style="color: #9F61C8;">
  88. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  89. <text v-else>M</text>
  90. </view>
  91. <view v-if="item.speaker == 14" style="color: #9F61C8;">
  92. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  93. <text v-else>N</text>
  94. </view>
  95. <view v-if="item.speaker == 15" style="color: #9F61C8;">
  96. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  97. <text v-else>O</text>
  98. </view>
  99. <view v-if="item.speaker == 16" style="color: #9F61C8;">
  100. <image v-if="item.isShow == 0" :src="Aimg.replace(/[\r\n]/g,'')" mode="widthFix"></image>
  101. <text v-else>P</text>
  102. </view>
  103. </view>
  104. <view class="content">
  105. <view @longpress="changanxiaoguo(item,index,i)" v-html="item.onebest"></view>
  106. <view class="tankuangcss" v-if="item.isshow">
  107. <view @click="clickcopy()"
  108. style="width: 60rpx;font-size: 24rpx;text-align: center;margin-left: 24rpx;">复制
  109. </view>
  110. <view @click="Oftenthewrongword()" v-if="permissions.commonly4"
  111. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">常错词
  112. </view>
  113. <view v-if="permissions.commonly3" @click="Addtheessence()"
  114. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 22rpx;">加精华
  115. </view>
  116. <view @click="clickbofang(dialog.backindex,item)"
  117. style="width: 80rpx;font-size: 24rpx;text-align: center;margin-left: 14rpx;">播放
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. </view>
  123. </scroll-view>
  124. <view class="bottombox">
  125. <!-- 播放块 -->
  126. <view class="bottomhead">
  127. <view class="audio-play" @tap="changePlayState">
  128. <image class="image" mode="widthFix"
  129. :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'">
  130. </image>
  131. </view>
  132. <view class="audio-slider">
  133. <view class="audio-time">
  134. <text>{{currentTimeStr}}</text>
  135. </view>
  136. <slider class="slider" min="0" :max="sliderMax"
  137. @change="sliderChangeComplate" block-size="14" :value="sliderValue" activeColor="blue"></slider>
  138. <view class="audio-time">
  139. <text>{{timeStr}}</text>
  140. </view>
  141. </view>
  142. </view>
  143. <!-- 底部弹框 -->
  144. <view class="botbotmm">
  145. <view class="tmmchen" @click="guanjiancishifo()">
  146. <image src="../../static/images/audioinfo1.png" mode=""></image>
  147. <view>关键词</view>
  148. </view>
  149. <view class="fill"></view>
  150. <view class="tmmchen" @click="Receivedetailsabouttab('intention')">
  151. <image src="../../static/images/audioinfo3.png" mode=""></image>
  152. <view>客户意向</view>
  153. </view>
  154. <view class="fill"></view>
  155. <view class="tmmchen" @click="Receivedetailsabouttab('Pinspeak')">
  156. <image src="../../static/images/audioinfo4.png" mode=""></image>
  157. <view>销讲执行</view>
  158. </view>
  159. <view class="fill"></view>
  160. <!-- audioinfo2 -->
  161. <view class="tmmchen" v-if="permissions.commonly2==true">
  162. <image @click="Receivedetailsabouttab('Receivedetailsabout')" src="../../static/images/allimg.png" mode=""></image>
  163. <view @click="Receivedetailsabouttab('Receivedetailsabout')">更多</view>
  164. <view class="allimg" v-if="Thetapeidisshow">
  165. <view @click="Receivetap()" style="line-height: 70rpx;margin-top: 10rpx;">接待信息</view>
  166. <view @click="alllogo()" style="line-height:70rpx;">{{userlistobj.validInvalidName}}</view>
  167. </view>
  168. </view>
  169. <view class="tmmchen" @click="Receivetap()" v-if="permissions.commonly2==false">
  170. <image @click="Receivedetailsabouttab('Receivedetailsabout')" src="../../static/images/audioinfo2.png" mode=""></image>
  171. <view @click="Receivedetailsabouttab('Receivedetailsabout')">接待信息</view>
  172. </view>
  173. </view>
  174. </view>
  175. <!-- 标记 -->
  176. <view class="zhezhoa" v-if="biojiisshow" @tap="unmarktap()"></view>
  177. <view class="bounced" v-if="biojiisshow">
  178. <view class="jiajinghuatit">标记为顾问</view>
  179. <view style="width: 95%;display: flex;flex-wrap: wrap;margin: 0 auto;padding-top: 30rpx;padding-bottom: 30rpx;">
  180. <view class="viewclace" :class="roleindexbiaoji == index ? 'bosdttom' : ''"
  181. @click="biaojixuanze(index)" v-for="(item,index) in tablist.slice(1,tablist.length)" :key="index">
  182. <view>{{item.name}}</view>
  183. </view>
  184. </view>
  185. <view class="bounced3" style="margin-top: 20rpx;">
  186. <view class="bounced3-1" @tap="unmarktap()">取消</view>
  187. <view class="bounced3-2" @tap="Confirmthetag()">确认</view>
  188. </view>
  189. </view>
  190. <!-- 加入常错词 -->
  191. <view class="zhezhoa" v-if="isshow2" @tap="Cancelout"></view>
  192. <view class="bounced" v-if="isshow2">
  193. <view class="tian-view">
  194. <viwe class="tian-view-t1"></viwe>
  195. <viwe class="tian-view-t2">常错词:</viwe>
  196. <viwe class="tian-view-t3">
  197. <input type="text" v-model="thewrongword" class="tian-input" placeholder="请输入" />
  198. </viwe>
  199. </view>
  200. <view class="tian-view">
  201. <viwe class="tian-view-t1"></viwe>
  202. <viwe class="tian-view-t2">正确词:</viwe>
  203. <viwe class="tian-view-t3">
  204. <input class="tian-input" v-model="reswrongword" type="text" placeholder="请输入" />
  205. </viwe>
  206. </view>
  207. <view class="bounced3">
  208. <view class="bounced3-1" @tap="Cancelout">取消</view>
  209. <view class="bounced3-2" @tap="Confirmtheexit">确认</view>
  210. </view>
  211. </view>
  212. <!-- 加精华 -->
  213. <view class="zhezhoa" v-if="isshow3" @tap="Cancelout2"></view>
  214. <view class="bounced" v-if="isshow3">
  215. <view class="jiajinghuatit">加精华</view>
  216. <view style="width: 100%;text-indent: 20rpx;font-size: 28rpx;">选择标签</view>
  217. <view class="jiajinghuaview">
  218. <view class="jighuaview2" v-for="(item,index) in biaoqianlist" :key="index"
  219. :class="biaoqianindex == index ? 'biaoqiantom' : ''">
  220. <view class="view1-text" @click="tapbiaoqianclisck(index)">{{item.name}}</view>
  221. </view>
  222. </view>
  223. <view class="bounced3">
  224. <view class="bounced3-1" @tap="Cancelout2">取消</view>
  225. <view class="bounced3-2" @tap="Confirmtheexit2">确认</view>
  226. </view>
  227. </view>
  228. <!-- 接待详情 -->
  229. <view class="zhezhoa" @click="clenReceivedetailsabout()" v-if="Receivedetailsabout"></view>
  230. <view class="followingpop-up" v-if="Receivedetailsabout">
  231. <view class="guanbibox">
  232. <image class="guanbixen" @click="clenReceivedetailsabout()" src="../../static/images/Shutdown.png" mode=""></image>
  233. <view class="cenisboxtab">
  234. <view class="cenisboxtabview">
  235. <view>接待详情</view>
  236. </view>
  237. </view>
  238. </view>
  239. <view class="cenisbox">
  240. <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
  241. <view style="width: 25%;color: #666666;font-size: 26rpx;">接待顾问</view>
  242. <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.agentName}}</view>
  243. </view>
  244. <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
  245. <view style="width: 25%;color: #666666;font-size: 26rpx;">意向楼盘</view>
  246. <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.projectName}}</view>
  247. </view>
  248. <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
  249. <view style="width: 25%;color: #666666;font-size: 26rpx;">接待开始时间</view>
  250. <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.staTime}}</view>
  251. </view>
  252. <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
  253. <view style="width: 25%;color: #666666;font-size: 26rpx;">接待结束时间</view>
  254. <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.endTime1}}</view>
  255. </view>
  256. <view style="width: 96%;height: 26rpx;display: flex;margin: 0 auto; margin-top: 40rpx;align-items: center;">
  257. <view style="width: 25%;color: #666666;font-size: 26rpx;">录音时长</view>
  258. <view style="width: 75%;color: #333333;font-size: 26rpx;">{{userlistobj.mm}}分钟</view>
  259. </view>
  260. </view>
  261. </view>
  262. <!-- 销讲执行 -->
  263. <view class="zhezhoa" @click="clenReceivedetailsabout()" v-if="Pinspeak"></view>
  264. <view class="followingpop-up" v-if="Pinspeak">
  265. <view class="guanbibox">
  266. <image class="guanbixen" @click="clenReceivedetailsabout()" src="../../static/images/Shutdown.png" mode=""></image>
  267. <view class="cenisboxtab">
  268. <view class="cenisboxtabview">
  269. <view>销讲执行</view>
  270. </view>
  271. </view>
  272. </view>
  273. <view class="pingfenbox" >
  274. <view :class="{ activecllasscet: zhixingcenterindex == 0 }" @click="recordclick(0)">销讲总执行率{{totalRate}}%</view>
  275. <view v-if="permissions.commonly6" :class="{ activecllasscet: zhixingcenterindex == 1 }" @click="recordclick(1)">禁忌执行</view>
  276. </view>
  277. <view v-if="zhixingcenterindex == 0" class="cenisbox">
  278. <view style="width: 100%;height: 80rpx;border-bottom: 1rpx solid #E0E0E0;display: flex;align-items: center;">
  279. <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 20rpx;">指标</view>
  280. <view style="flex: 1;font-size: 28rpx;color: #333333;font-weight: 600;text-indent: 170rpx;">执行率</view>
  281. </view>
  282. <view class="Level-box" v-for="(item,index) in ratelist" :key="index">
  283. <view class="Level1che" @click="changeshow(item,1)">
  284. <view class="title1">{{item.name.substring(0,8)}}</view>
  285. <view class="leve1-jindu">
  286. <view class="jindutiao">
  287. <view class="huanxing" :style="{width: item.ratepercent/item.rate*100+'%'}"></view>
  288. <view class="text">{{((item.ratepercent/item.rate).toFixed(2)*100).toFixed()}}%</view>
  289. </view>
  290. </view>
  291. <view class="jiantobox">
  292. <image v-if="!item.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
  293. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  294. </view>
  295. </view>
  296. <view class="hhhbox" v-if="item.show" v-for="(subitem,i) in item.children" :key="i">
  297. <view class="Level2che" @click="changeshow2(subitem,1)" >
  298. <view class="title1" >{{subitem.name.substring(0,8)}}</view>
  299. <view class="leve1-jindu">
  300. <view class="zhixing" v-if="!subitem.selected">已执行</view>
  301. <view class="zhixing2" v-else>未执行</view>
  302. </view>
  303. <view class="jiantobox">
  304. <image v-if="!subitem.show" class="arrow rotatearrow" src="/static/images/down.png" mode="" />
  305. <image v-else class="arrow" src="/static/images/up.png" mode="" />
  306. </view>
  307. </view>
  308. <view class="hsnrtest" v-if="subitem.show">话术内容</view>
  309. <view class="Level3che" @tap="clickaudeopal(che)" v-if="subitem.show" v-for="(che,inc) in subitem.children" :key='inc'>
  310. <view class="title1" >{{inc+1}}.{{che.name}}</view>
  311. <view class="jiantobox">
  312. <image v-if="che.selected==0" class="arrow" src="/static/images/rate-checked.png" mode="" />
  313. </view>
  314. </view>
  315. <view v-if="subitem.show" style="width: 100%;height: 30rpx;"></view>
  316. </view>
  317. </view>
  318. </view>
  319. <view v-if="zhixingcenterindex == 1">
  320. <view v-if="prohibitedlist.length!=0" class="title1-12" @click="tapbadge(item)" v-for="(item,index) in prohibitedlist" :key='index'>{{index+1}}.{{item}}</view>
  321. <view v-if="prohibitedlist.length==0" style="width: 100%;text-align: center;margin-top: 60rpx;">暂无数据</view>
  322. </view>
  323. </view>
  324. <!-- 客户意向 -->
  325. <view class="zhezhoa" @click="clenReceivedetailsabout()" v-if="intention"></view>
  326. <view class="followingpop-up" v-if="intention">
  327. <view class="guanbibox">
  328. <image class="guanbixen" @click="clenReceivedetailsabout()" src="../../static/images/Shutdown.png" mode=""></image>
  329. <view class="cenisboxtab">
  330. <view class="cenisboxtabview">
  331. <view>客户意向</view>
  332. </view>
  333. </view>
  334. </view>
  335. <view class="pingfenbox" >
  336. <view :class="{ activecllasscet: kehuyixiangcenterindex == 0 }" @click="customerofintention(0)">系统分析</view>
  337. <view :class="{ activecllasscet: kehuyixiangcenterindex == 1 }" @click="customerofintention(1)">人工校准</view>
  338. </view>
  339. <view class="cenisbox" v-if="kehuyixiangcenterindex==0">
  340. <view style="width: 100%;height: 100%;text-align: center;margin-top: 200rpx;" v-if="Acquirecustomerintentlist.length==0">
  341. 暂无数据
  342. </view>
  343. <view class="jianbox" v-if="Acquirecustomerintentlist.length!=0" v-for="(item,index) in Acquirecustomerintentlist" :key='index'>
  344. <view class="jianbox-cen">
  345. <view class="jianboxtext">{{item.name}}</view>
  346. <view class="jianboxjian" @click="Acquishow(index)">
  347. <image v-if="item.isshow==false" class="jiantop" src="../../static/images/jiantop.png" mode=""></image>
  348. <image v-if="item.isshow==true" class="jiantop1" src="../../static/images/jianbutton.png" mode=""></image>
  349. </view>
  350. </view>
  351. <view style="width: 690rpx;margin: 0 auto;display: flex;flex-wrap: wrap;" v-if="item.isshow==true">
  352. <view class="sdfsaf" v-if="chend.showType==0" @click="argece(chend)"
  353. v-for="(chend,i) in item.children" :key='i'>
  354. <view class="jiangshang sdfsaf">{{chend.text}}</view>
  355. </view>
  356. <view class="sdfsaf" v-if="chend.showType==1" @click="argece(chend)"
  357. v-for="(chend,i) in item.children" :key='i'>
  358. <view class="jiangshang1 sdfsaf" >{{chend.text}}</view>
  359. </view>
  360. </view>
  361. </view>
  362. </view>
  363. <!-- @click="Edittag(item,chend,index,i)" -->
  364. <view class="cenisbox" v-if="kehuyixiangcenterindex==1">
  365. <view style="width: 100%;height: 100%;text-align: center;margin-top: 200rpx;" v-if="Acquirecustomerintentlist2.length==0">
  366. 暂无数据
  367. </view>
  368. <view class="jianbox" v-if="Acquirecustomerintentlist2.length!=0" v-for="(item,index) in Acquirecustomerintentlist2" :key='index'>
  369. <view class="jianbox-cen">
  370. <view class="jianboxtext">{{item.name}}</view>
  371. <view class="jianboxjian" @click="Acquishow2(index)">
  372. <image v-if="item.isshow==false" class="jiantop" src="../../static/images/jiantop.png" mode=""></image>
  373. <image v-if="item.isshow==true" class="jiantop1" src="../../static/images/jianbutton.png" mode=""></image>
  374. </view>
  375. </view>
  376. <view class="bioqianwayl" v-if="item.isshow==true">
  377. <view class="jiangshang" v-for="(chend,i) in item.children" :key='i' v-if="chend.selected==0">{{chend.text}}</view>
  378. </view>
  379. </view>
  380. </view>
  381. <view class="calibration" v-if="permissions.commonly5" @click="tocalibration()">校准</view>
  382. </view>
  383. <view class="zhezhoa" v-if="effective"></view>
  384. <view class="bounced" v-if="effective">
  385. <view class="jiajinghuatit">选择</view>
  386. <view>
  387. <view class="uni-list">
  388. <radio-group @change="radioChange">
  389. <label style="display: flex;align-items: center;font-size: 30rpx;
  390. width: 94%;height: 80rpx;margin: 0 auto;" v-for="(item, index) in effectiveitems" :key="item.value">
  391. <view style="margin-top: 2rpx;flex: 1; text-indent: 20rpx;">{{item.name}}</view>
  392. <view style="width: 80rpx;">
  393. <radio :value="item.value" :checked="index == effectiveindex" />
  394. </view>
  395. </label>
  396. </radio-group>
  397. </view>
  398. <view v-if="effectiveindex==4">
  399. <textarea class="ffectivetext" v-model="effectiveitext" placeholder="备注" />
  400. </view>
  401. </view>
  402. <view class="bounced3">
  403. <view class="bounced3-1" @click="effective=false">取消</view>
  404. <view class="bounced3-2" @click="effectiveAdd()">确认</view>
  405. </view>
  406. </view>
  407. </view>
  408. </template>
  409. <script>
  410. var util = require("../../utils/util.js");
  411. var config = require("../../config");
  412. export default {
  413. data() {
  414. return {
  415. noClick:true,
  416. kehuyixiangcenterindex:0,
  417. Acquirecustomerintentlist2:[],
  418. zhixingcenterindex:0,
  419. prohibitedlist:[],
  420. guanjianciishow:false,
  421. 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",
  422. tablist:[],
  423. roleindex:0,
  424. roleindexbiaoji:0,
  425. audioPlay: false, //当前的播放状态控制
  426. sliderValue: 0, //进度条最小值
  427. sliderMax: 0, //进度条最大值
  428. innerAudioContext: "", //播放实例
  429. currentTimeStr: "00:00", //当前进度的时间
  430. timeStr: "00:00", //总的时间
  431. recordPath: "",
  432. customerId: "",
  433. luyinList: [], //录音文件
  434. newluyinList:[],
  435. dialogList: [], //录音识别列表
  436. csdFileindex: 0,
  437. date: "", //年月日
  438. tab: 0, // 默认是音频识别
  439. scrollTop: 0,
  440. scrollId: "",
  441. playNow: 0,
  442. alltimeStr: "00:00:00",
  443. ratelist: [], //评分列表
  444. totalRate: "",
  445. thewrongword: "", //错误词
  446. reswrongword: "", //正确词
  447. isshow2: false,
  448. messagelisy: [],
  449. isshow3: false,
  450. biaoqianlist: [],
  451. biaoqianindex: 0,
  452. changanitem: {},
  453. duihuawenjianid: "",
  454. biaoqianid: "",
  455. status: 0,
  456. // jiaoseshow: true,
  457. itemobj:{},
  458. textindex:0,//下拉 转写文件下标
  459. toptextindex:0,//上拉 转写文件下标
  460. biojiisshow:false,
  461. speaker:'',
  462. dshfkjsdkksodofydwfkhwdfkjh:0,
  463. userlistobj:{},
  464. Acquirecustomerintentlist:[],
  465. options1:[],
  466. Receivedetailsabout:false,
  467. Pinspeak:false,
  468. intention:false,
  469. yixingindex:0,//意向,统计切换
  470. buildingID:'',
  471. // methodsisshow:false,
  472. Thetapeidisshow:false,
  473. // Menulist:[],
  474. // Menulistisshow:false,
  475. validInvalid:0,
  476. calibration:0,
  477. effective:false,
  478. effectiveindex:'0',
  479. effectiveitems: [
  480. {value: '1',name: '没电指派无录音',checked:true},
  481. {value: '2',name: '离线指派无录音',},
  482. {value: '3',name: '系统测试误操作'},
  483. {value: '4',name: '非接访场景录音'},
  484. {value: '5',name: '其他'}
  485. ],
  486. effectiveitext:'',
  487. textItself:'',
  488. argtextindex1:0,
  489. argtextindex2:0,
  490. permissions:{
  491. commonly1:false,
  492. commonly2:false,
  493. commonly3:false,
  494. commonly4:false,
  495. commonly5:false,
  496. commonly6:false
  497. }
  498. };
  499. },
  500. onLoad: function(options) {
  501. this.status = options.status;
  502. this.customerId = options.customerId;
  503. this.itemobj = uni.getStorageSync('searchobj');
  504. console.log(this.itemobj)
  505. this.stateisshow=options.stateisshow;
  506. },
  507. onShow() {
  508. let newmenulist= uni.getStorageSync('weapp_session_Menu_data');
  509. this.permissions.commonly1=newmenulist.bjgw;
  510. this.permissions.commonly2=newmenulist.jdwxbj;
  511. this.permissions.commonly3=newmenulist.swyxal;
  512. this.permissions.commonly4=newmenulist.ccc;
  513. this.permissions.commonly5=newmenulist.xz;
  514. this.permissions.commonly6=newmenulist.ckwjzx;
  515. //1 标记顾问 bjgw
  516. //1 接待无效标记 jdwxbj
  517. //1 设为优秀案例 swyxal
  518. // 常错词 ccc
  519. // 校准 xz
  520. this.intention=false;
  521. this.kehuyixiangcenterindex=0;
  522. this.buildingID = uni.getStorageSync('buildingID').id;
  523. this.roleindex=0;
  524. if(this.stateisshow==2){
  525. var info =this.itemobj;
  526. }else{
  527. var pages = getCurrentPages();
  528. var currPage = pages[pages.length - 1]; //当前页面
  529. var info = currPage.data.info;
  530. }
  531. this.innerAudioContext = uni.createInnerAudioContext();
  532. this.innerAudioContext.autoplay = false;
  533. this.innerAudioContext.title = '音频';
  534. this.onPlay()
  535. this.onPause()
  536. this.onCanplay()
  537. this.onEnded()
  538. this.onSeeking()
  539. this.onSeeked()
  540. this.TimeUpdate()
  541. this.init(info)
  542. },
  543. // 在组件实例被从页面节点树移除时执行
  544. destroyed: function() {
  545. //暂停
  546. // this.innerAudioContext.pause()
  547. // 销毁
  548. this.innerAudioContext.destroy();
  549. },
  550. // 销毁实例
  551. onUnload: function() {
  552. //暂停
  553. // this.innerAudioContext.pause()
  554. // 销毁
  555. this.innerAudioContext.destroy();
  556. },
  557. methods: {
  558. argece(item){
  559. console.log(item)
  560. this.innerAudioContext.destroy();
  561. if(item.selected==0){
  562. console.log(item)
  563. uni.navigateTo({
  564. url: '/pages/mine/ScoringPlaylist?customerId='+this.customerId +"&id="+item.keywordsId+"&type="+1
  565. })
  566. }
  567. },
  568. //关键词点击
  569. tapbadge(item){
  570. //进搜索页面
  571. uni.navigateTo({
  572. url: '/pages/learning/Keywordsearch?customerId='+this.customerId +"&keyword="+item +"&skpl="+ "2"
  573. })
  574. },
  575. recordclick(i){
  576. this.zhixingcenterindex=i;
  577. if(i==0){
  578. this.getRatelist()
  579. }else{
  580. console.log('999')
  581. this.huoqujinji()
  582. }
  583. },
  584. //获取禁忌
  585. huoqujinji(){
  586. uni.showLoading({
  587. title: '加载中'
  588. });
  589. this.$u.get("/customer/findTabooWordsByCusId", {
  590. cusId: this.customerId
  591. }).then(res => {
  592. if (res.length) {
  593. this.prohibitedlist=res;
  594. }
  595. setTimeout(function() {
  596. uni.hideLoading();
  597. }, 1000);
  598. })
  599. },
  600. //评分点击
  601. clickaudeopal(item){
  602. this.innerAudioContext.destroy();
  603. if(item.selected==0){
  604. console.log(item)
  605. uni.navigateTo({
  606. url: '/pages/mine/ScoringPlaylist?customerId='+this.customerId +"&id="+item.marketingId+"&type="+0
  607. })
  608. }
  609. },
  610. //获取用户信息
  611. gituserlist(){
  612. this.$u.get("/matchKeywords/personalReceptionRecord", {
  613. customerId: this.customerId
  614. }).then(res => {
  615. res.endTime1=res.endTime.substring(0, 19);
  616. this.userlistobj=res;
  617. })
  618. },
  619. Acquishow2(i){
  620. this.Acquirecustomerintentlist2[i].isshow=!this.Acquirecustomerintentlist2[i].isshow;
  621. },
  622. tocalibration(){
  623. this.innerAudioContext.destroy();
  624. uni.navigateTo({
  625. url: '/pages/mine/calibration?id='+this.customerId
  626. });
  627. },
  628. customerofintention(i){
  629. this.kehuyixiangcenterindex=i;
  630. if(i==0){
  631. this.Acquirecustomerintent()
  632. }else{
  633. this.Acquirecustomerintent2()
  634. }
  635. },
  636. //获取人工校准意向信息
  637. Acquirecustomerintent2(){
  638. this.Acquirecustomerintentlist2=[];
  639. this.$u.get("/matchKeywords/findManualCalibration", {
  640. customerId: this.customerId,
  641. type:1
  642. }).then(res => {
  643. res.forEach(item=>{
  644. item.isshow=true;
  645. item.children.forEach(chend=>{
  646. if(chend.isInterval==0){
  647. chend.text=chend.name+chend.unit+'-'+chend.endName+chend.unit
  648. }else{
  649. chend.text=chend.name
  650. }
  651. })
  652. })
  653. this.Acquirecustomerintentlist2=res;
  654. })
  655. },
  656. //获取系统意向信息
  657. Acquirecustomerintent(){
  658. this.Acquirecustomerintentlist=[];
  659. this.$u.get("/matchKeywords/findSystemAnalysis", {
  660. customerId: this.customerId
  661. }).then(res => {
  662. res.forEach(item=>{
  663. item.isshow=true;
  664. item.children.forEach(chend=>{
  665. if(chend.isInterval==0){
  666. chend.text=chend.name+chend.unit+'-'+chend.endName+chend.unit
  667. }else{
  668. chend.text=chend.name
  669. }
  670. })
  671. })
  672. this.Acquirecustomerintentlist=res;
  673. })
  674. },
  675. Acquishow(i){
  676. this.Acquirecustomerintentlist[i].isshow=!this.Acquirecustomerintentlist[i].isshow;
  677. },
  678. Edittag(item,chend,index,i){
  679. var selected='';
  680. if(chend.selected==0){
  681. selected=1;
  682. this.Acquirecustomerintentlist[index].children[i].selected=1;
  683. }else{
  684. selected=0;
  685. this.Acquirecustomerintentlist[index].children[i].selected=0;
  686. }
  687. this.$u.post("/matchKeywords/updatePersonalMatchData", {
  688. carId: this.customerId,
  689. selected:selected,
  690. name:chend.name,
  691. pid:chend.pid,
  692. level:chend.level,
  693. endName:chend.endName,
  694. keywordsId:chend.keywordsId
  695. }).then(res => {
  696. })
  697. },
  698. //取消接待详情
  699. clenReceivedetailsabout(){
  700. this.Receivedetailsabout=false;
  701. this.Pinspeak=false;
  702. this.intention=false;
  703. this.Thetapeidisshow=false;
  704. },
  705. //意向统计切换
  706. Intentiontoswitch(i){
  707. this.yixingindex=i;
  708. if(i==1){
  709. this.statistical()
  710. }
  711. },
  712. statistical(){
  713. this.$u.get("/matchKeywords/findCARKeywords", {
  714. customerId: this.customerId
  715. }).then(res => {
  716. res.forEach(item=>{
  717. if(item.isInterval==0){
  718. item.name=item.name+item.unit+ '-'+ item.endName+item.unit;
  719. }
  720. })
  721. this.options1=res;
  722. })
  723. },
  724. Receivetap(){
  725. this.Receivedetailsabout=true;
  726. },
  727. //标记
  728. alllogo(){
  729. var that=this;
  730. let msg='';
  731. if(this.userlistobj.validInvalid!=0){
  732. msg='是否标记为"有效录音"?';
  733. uni.showModal({
  734. title: '提示',
  735. content: msg,
  736. success: function (res) {
  737. if (res.confirm) {
  738. let parames={
  739. id:that.customerId,
  740. validInvalid:'',
  741. invalidReason:0
  742. }
  743. if(that.userlistobj.validInvalid==0){
  744. parames.validInvalid=1;
  745. }else{
  746. parames.validInvalid=0;
  747. }
  748. that.$u.post("/customer/updateValidInvalid", parames).then(res => {
  749. console.log(res)
  750. that.Thetapeidisshow=false;
  751. })
  752. }
  753. }
  754. });
  755. }else{
  756. this.effective=true;
  757. }
  758. },
  759. effectiveAdd(){
  760. if(this.effectiveindex==4){
  761. if(this.effectiveitext.length==0){
  762. uni.showToast({
  763. title: '备注不能为空',
  764. icon:"none",
  765. duration: 2000
  766. });
  767. return
  768. }
  769. }
  770. this.effective=false;
  771. let parames={
  772. id:this.customerId,
  773. validInvalid:'',
  774. validInvalid:1,
  775. invalidReason:Number(this.effectiveindex)+1,
  776. invalidNote:this.effectiveitext
  777. }
  778. this.$u.post("/customer/updateValidInvalid", parames).then(res => {
  779. console.log(res)
  780. this.Thetapeidisshow=false;
  781. })
  782. },
  783. radioChange(evt) {
  784. this.effectiveitext="";
  785. for (let i = 0; i < this.effectiveitems.length; i++) {
  786. if (this.effectiveitems[i].value === evt.detail.value) {
  787. this.effectiveindex = i;
  788. break;
  789. }
  790. }
  791. },
  792. //接待详情点击
  793. Receivedetailsabouttab(stringa){
  794. if(stringa=='Receivedetailsabout'){
  795. this.gituserlist()
  796. this.Thetapeidisshow=!this.Thetapeidisshow;
  797. }else if(stringa=='Pinspeak'){
  798. this.getRatelist()
  799. this.Pinspeak=true;
  800. }else{
  801. if(this.kehuyixiangcenterindex==0){
  802. this.Acquirecustomerintent()
  803. }else{
  804. this.Acquirecustomerintent2()
  805. }
  806. this.intention=true;
  807. }
  808. },
  809. guanjiancishifo(){
  810. // this.guanjianciishow=!this.guanjianciishow;
  811. this.innerAudioContext.destroy();
  812. this.stateisshow=1;
  813. uni.navigateTo({
  814. url: '/pages/learning/Keywordsearch?customerId='+this.customerId +"&status="+this.status +"&skpl="+"1"
  815. })
  816. },
  817. //标记选择角色
  818. biaojixuanze(index){
  819. this.roleindexbiaoji=index;
  820. },
  821. //标记顾问
  822. tagtap(){
  823. this.biojiisshow=!this.biojiisshow;
  824. },
  825. //取消标记
  826. unmarktap(){
  827. this.biojiisshow=false;
  828. this.roleindexbiaoji=this.dshfkjsdkksodofydwfkhwdfkjh;
  829. },
  830. //确认标记
  831. Confirmthetag(){
  832. var num=this.roleindexbiaoji+1;
  833. uni.request({
  834. url: config.service.markConsultant + '?id=' + this.luyinList[this.csdFileindex].id+"&speaker="+num+'&customerId='+this.customerId, //仅为示例,并非真实接口地址。
  835. method: "GET",
  836. header: {
  837. 'content-type': 'application/json',
  838. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  839. },
  840. success: (data) => {
  841. this.biojiisshow=false;
  842. this.biaojiyuyi()
  843. this.fenjiaoseunfo()
  844. uni.showToast({
  845. title: '标记成功',
  846. duration: 2000
  847. });
  848. },
  849. })
  850. },
  851. //标记语义词
  852. biaojiyuyi(){
  853. let parames={
  854. carId:this.customerId
  855. }
  856. this.$u.post("/matchKeywords/toMatchKeywords", parames).then(res => {
  857. console.log(res)
  858. })
  859. },
  860. //分角色
  861. tapspagek(index){
  862. this.roleindex=index;
  863. this.newluyinList=[];
  864. this.fenjiaoseunfo()
  865. },
  866. //分角色标记刷新
  867. fenjiaoseunfo(){
  868. var bgcd=this.sliderValue*1000;
  869. this.newluyinList=[];
  870. this.dialogList = [];
  871. uni.request({
  872. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&bg="+bgcd+"&speaker="+this.roleindex, //仅为示例,并非真实接口地址。
  873. method: "GET",
  874. header: {
  875. 'content-type': 'application/json',
  876. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  877. },
  878. success: (data) => {
  879. this.tablist=[];
  880. let jsonInfo = JSON.parse(data.data.data.audioContent);
  881. for(var i=0;i<=data.data.data.speakerNum;i++){
  882. if(i==0){
  883. this.tablist.push({
  884. name:'全部'
  885. })
  886. }else if(i==1){
  887. this.tablist.push({
  888. name:'A'
  889. })
  890. }else if(i==2){
  891. this.tablist.push({
  892. name:'B'
  893. })
  894. }else if(i==3){
  895. this.tablist.push({
  896. name:'C'
  897. })
  898. }else if(i==4){
  899. this.tablist.push({
  900. name:'D'
  901. })
  902. }else if(i==5){
  903. this.tablist.push({
  904. name:'E'
  905. })
  906. }else if(i==6){
  907. this.tablist.push({
  908. name:'F'
  909. })
  910. }else if(i==7){
  911. this.tablist.push({
  912. name:'G'
  913. })
  914. }else if(i==8){
  915. this.tablist.push({
  916. name:'H'
  917. })
  918. }else if(i==9){
  919. this.tablist.push({
  920. name:'I'
  921. })
  922. }else if(i==10){
  923. this.tablist.push({
  924. name:'J'
  925. })
  926. }else if(i==11){
  927. this.tablist.push({
  928. name:'K'
  929. })
  930. }else if(i==12){
  931. this.tablist.push({
  932. name:'L'
  933. })
  934. }else if(i==13){
  935. this.tablist.push({
  936. name:'M'
  937. })
  938. }else if(i==14){
  939. this.tablist.push({
  940. name:'N'
  941. })
  942. }else if(i==15){
  943. this.tablist.push({
  944. name:'O'
  945. })
  946. }else{
  947. this.tablist.push({
  948. name:'P'
  949. })
  950. }
  951. }
  952. if(data.data.data.speaker==null){
  953. this.roleindexbiaoji=0;
  954. this.dshfkjsdkksodofydwfkhwdfkjh=0;
  955. }else{
  956. this.tablist[data.data.data.speaker].name=this.tablist[data.data.data.speaker].name+"顾问";
  957. this.roleindexbiaoji=data.data.data.speaker-1;
  958. this.dshfkjsdkksodofydwfkhwdfkjh=data.data.data.speaker-1;
  959. }
  960. this.speaker=data.data.data.speaker;
  961. //上拉标记点
  962. this.textindex=data.data.data.index;
  963. //下拉标记点
  964. this.toptextindex=data.data.data.index;
  965. jsonInfo.forEach(item=>{
  966. item.message=JSON.parse(item.onebest)
  967. item.backindex=this.csdFileindex
  968. })
  969. console.log(jsonInfo)
  970. this.newluyinList=jsonInfo;
  971. if(this.textindex==null){
  972. return
  973. }else{
  974. this.dialogList.push(jsonInfo[this.textindex]);
  975. }
  976. }
  977. })
  978. },
  979. toKeywordsearch(){
  980. this.innerAudioContext.destroy();
  981. this.stateisshow=1;
  982. uni.navigateTo({
  983. url: '/pages/learning/Keywordsearch?customerId='+this.customerId +"&status="+this.status +"&skpl="+"1"
  984. })
  985. },
  986. onPlay(){
  987. this.innerAudioContext.onPlay(() => {
  988. // 播放监听
  989. console.log('播放!');
  990. this.audioPlay = true;
  991. wx.enableAlertBeforeUnload({
  992. message: "是否确认退出详情页面?",
  993. success: function (res) {
  994. console.log("方法注册成功:", res);
  995. },
  996. fail: function (errMsg) {
  997. console.log("方法注册失败:", errMsg);
  998. },
  999. });
  1000. });
  1001. },
  1002. onPause(){
  1003. this.innerAudioContext.onPause(() => {
  1004. wx.disableAlertBeforeUnload({
  1005. success:function(res){
  1006. console.log(res)
  1007. },
  1008. fail:function(e){
  1009. console.log(e)
  1010. }
  1011. });
  1012. // 暂停监听
  1013. console.log('暂停播放!');
  1014. this.audioPlay = false
  1015. });
  1016. },
  1017. onCanplay() {
  1018. this.innerAudioContext.onCanplay((callback) => {
  1019. console.log("缓冲回调",this.innerAudioContext.duration);
  1020. })
  1021. },
  1022. onEnded(){
  1023. this.innerAudioContext.onEnded(() => {
  1024. // 结束播放监听
  1025. console.log('播放结束!');
  1026. this.audioPlay = false;
  1027. });
  1028. },
  1029. onSeeking(){
  1030. this.innerAudioContext.onSeeking((res) => {
  1031. console.log("进行跳转", res);
  1032. })
  1033. },
  1034. onSeeked(){
  1035. this.innerAudioContext.onSeeked((res) => {
  1036. console.log("结束跳转", res);
  1037. this.$forceUpdate()
  1038. });
  1039. },
  1040. TimeUpdate(){
  1041. this.innerAudioContext.onTimeUpdate(() => {
  1042. const {
  1043. currentTime,
  1044. duration
  1045. } = this.innerAudioContext;
  1046. this.playNow = parseInt(currentTime * 1000)
  1047. if (this.dialogList.length == 0) {
  1048. return
  1049. } else {
  1050. const message = this.dialogList[0].message;
  1051. for (let i = 0; i < message.length; i++) {
  1052. if (Number(message[i].bg) < this.playNow && Number(message[i].ed) > this.playNow) {
  1053. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  1054. break;
  1055. }
  1056. }
  1057. }
  1058. const currTimeStr = this.formatTime(currentTime);
  1059. this.sliderValue = parseInt(currentTime);
  1060. // 变动的时间
  1061. this.currentTimeStr = currTimeStr;
  1062. //进度条最大值
  1063. this.sliderMax = this.luyinList[this.csdFileindex].recordDuration;
  1064. this.$forceUpdate()
  1065. });
  1066. },
  1067. init(info) {
  1068. this.sliderMax = 0; //进度条最大值
  1069. this.timeStr = "00:00"; //总的时间
  1070. const parames = {
  1071. pageNum: 1,
  1072. pageSize: 100,
  1073. query: {
  1074. customerId: this.customerId
  1075. }
  1076. }
  1077. this.$u.post("/corpus/findByPage", parames).then(res => {
  1078. if (res && res.length) {
  1079. let alltime = 1+res[0].recordDuration;
  1080. this.calibration=res[0].calibration;
  1081. if(this.calibration==0){
  1082. this.kehuyixiangcenterindex=0;
  1083. }else{
  1084. this.kehuyixiangcenterindex=1;
  1085. }
  1086. this.alltimeStr = this.getTime(alltime)
  1087. if(info.bg!=0){
  1088. this.luyinList = res;
  1089. this.recordPath = res[0].recordPath
  1090. this.sliderMax = this.getTime(res[0].recordDuration)
  1091. this.timeStr = this.getTime(res[0].recordDuration)
  1092. this.date = res[0].receptionTime;
  1093. this.getCorpusAnalysis(info);
  1094. this.creatAudio()
  1095. }else{
  1096. this.luyinList = res;
  1097. this.recordPath = res[0].recordPath
  1098. this.sliderMax = this.getTime(res[0].recordDuration)
  1099. this.timeStr = this.getTime(res[0].recordDuration)
  1100. this.date = res[0].receptionTime;
  1101. this.getCorpusAnalysis(info);
  1102. this.creatAudio()
  1103. }
  1104. }
  1105. })
  1106. },
  1107. //搜索跳转
  1108. adasdasdasd(e) {
  1109. const currTimeStr = this.formatTime(e)
  1110. this.currentTimeStr = currTimeStr
  1111. this.innerAudioContext.seek(e);
  1112. if(uni.getStorageSync('entrance')==1){
  1113. return
  1114. }else{
  1115. this.innerAudioContext.play();
  1116. }
  1117. },
  1118. //下一页
  1119. ltolower() {
  1120. var lengthcz=this.newluyinList.length-1;
  1121. if (this.textindex >= lengthcz) {
  1122. uni.showToast({
  1123. title: '到底了',
  1124. duration: 2000
  1125. });
  1126. return
  1127. }else {
  1128. this.textindex=this.textindex+1;
  1129. this.newluyinList[this.textindex].message.forEach(item=>{
  1130. this.dialogList[0].message.push(item)
  1131. })
  1132. }
  1133. console.log("下一页",this.textindex)
  1134. },
  1135. //上一页
  1136. rolltoupper() {
  1137. if(this.toptextindex == 0){
  1138. // uni.showToast({
  1139. // title: '到头了',
  1140. // duration: 2000
  1141. // });
  1142. return
  1143. }else {
  1144. if(this.dialogList[0]==undefined ){
  1145. return
  1146. }else{
  1147. this.toptextindex=this.toptextindex-1;
  1148. let reverselist=this.newluyinList[this.toptextindex].message;
  1149. let runlist=reverselist.reverse();
  1150. runlist.forEach(item=>{
  1151. this.dialogList[0].message.unshift(item)
  1152. })
  1153. }
  1154. }
  1155. console.log("上一页",this.toptextindex)
  1156. },
  1157. // 取消全部加精
  1158. notappick() {
  1159. var that = this;
  1160. uni.showModal({
  1161. title: '提示',
  1162. content: '确认取消加精?',
  1163. success: function(res) {
  1164. if (res.confirm) {
  1165. console.log('用户点击确定');
  1166. uni.request({
  1167. url: config.service.delATD + "?carId=" + that.customerId+'&itemId='+that.buildingID,
  1168. method: "GET",
  1169. header: {
  1170. 'content-type': 'application/json',
  1171. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  1172. },
  1173. success: (data) => {
  1174. if (data.data.code == 10000) {
  1175. that.status = 1
  1176. uni.showToast({
  1177. title: '取消成功',
  1178. duration: 2000
  1179. });
  1180. } else {
  1181. uni.showToast({
  1182. title: data.data.message,
  1183. duration: 2000
  1184. });
  1185. }
  1186. }
  1187. })
  1188. } else if (res.cancel) {
  1189. console.log('用户点击取消');
  1190. }
  1191. }
  1192. });
  1193. },
  1194. //全部加精
  1195. tappick(i) {
  1196. var that = this;
  1197. uni.showModal({
  1198. title: '提示',
  1199. content: '确认加精?',
  1200. success: function(res) {
  1201. if (res.confirm) {
  1202. console.log('用户点击确定');
  1203. let objdata = {
  1204. "carId": that.customerId, //客户id
  1205. "status": 0,
  1206. "itemId":that.buildingID,
  1207. }
  1208. uni.request({
  1209. url: config.service.addATD,
  1210. method: "POST",
  1211. header: {
  1212. 'content-type': 'application/json',
  1213. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  1214. },
  1215. data: objdata,
  1216. success: (data) => {
  1217. if (data.data.code == 10000) {
  1218. that.status = 0
  1219. uni.showToast({
  1220. title: '加精成功',
  1221. duration: 2000
  1222. });
  1223. } else {
  1224. uni.showToast({
  1225. title: data.data.message,
  1226. duration: 2000
  1227. });
  1228. }
  1229. }
  1230. })
  1231. } else if (res.cancel) {
  1232. console.log('用户点击取消');
  1233. }
  1234. }
  1235. });
  1236. },
  1237. //标签选择
  1238. tapbiaoqianclisck(index) {
  1239. this.biaoqianindex = index;
  1240. this.biaoqianid = this.biaoqianlist[index].id
  1241. },
  1242. //复制
  1243. clickcopy() {
  1244. var that = this;
  1245. uni.setClipboardData({
  1246. data: that.thewrongword,
  1247. success: function() {
  1248. that.dialogList.forEach(res => {
  1249. res.message.forEach(asd => {
  1250. asd.isshow = false;
  1251. })
  1252. })
  1253. that.$forceUpdate();
  1254. console.log('success');
  1255. }
  1256. });
  1257. },
  1258. //确认加入常错词
  1259. Confirmtheexit() {
  1260. if (this.thewrongword) {
  1261. if (this.reswrongword) {
  1262. let parames = {
  1263. customerId:this.customerId,
  1264. cupid: this.luyinList[this.csdFileindex].id,
  1265. wrongWord: this.thewrongword, //错误词
  1266. correctWord: this.reswrongword, //正确词
  1267. translateHtmlContent: this.messagelisy,
  1268. }
  1269. this.isshow2 = false;
  1270. let sas=this.textItself.replace(this.thewrongword,this.reswrongword)
  1271. this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest=sas
  1272. this.dialogList.forEach(res => {
  1273. res.message.forEach(asd => {
  1274. asd.isshow = false;
  1275. })
  1276. })
  1277. this.$u.post("/corpus/addCorrectWord", parames).then(data => {
  1278. this.thewrongword = "";
  1279. this.reswrongword = "";
  1280. })
  1281. } else {
  1282. uni.showToast({
  1283. title: '正确值不能为空',
  1284. duration: 2000
  1285. });
  1286. return
  1287. }
  1288. } else {
  1289. uni.showToast({
  1290. title: '错误词不能为空',
  1291. duration: 2000
  1292. });
  1293. return
  1294. }
  1295. },
  1296. //取消加入常错词
  1297. Cancelout() {
  1298. this.isshow2 = false;
  1299. this.dialogList.forEach(res => {
  1300. res.message.forEach(asd => {
  1301. asd.isshow = false;
  1302. })
  1303. })
  1304. },
  1305. //加入长错词
  1306. Oftenthewrongword() {
  1307. this.reswrongword = "";
  1308. this.isshow2 = true;
  1309. },
  1310. //加精华
  1311. Addtheessence() {
  1312. this.isshow3 = true;
  1313. this.biaoqianlist = []
  1314. let parames={
  1315. "itemId":this.buildingID
  1316. }
  1317. this.$u.post("/addtodigest/findAllYi", parames).then(data => {
  1318. this.biaoqianlist = data
  1319. this.biaoqianlist.unshift({
  1320. name: "逼单话术",
  1321. id: 0
  1322. })
  1323. })
  1324. // util.getRequestPromise(config.service.findAllYi, {"itemId":this.buildingID}, false).then(data => {
  1325. // this.biaoqianlist = data
  1326. // this.biaoqianlist.unshift({
  1327. // name: "逼单话术",
  1328. // id: 0
  1329. // })
  1330. // });
  1331. },
  1332. // 取消加精
  1333. Cancelout2() {
  1334. this.isshow3 = false;
  1335. this.dialogList.forEach(res => {
  1336. res.message.forEach(asd => {
  1337. asd.isshow = false;
  1338. })
  1339. })
  1340. },
  1341. // 确认加精
  1342. Confirmtheexit2() {
  1343. if (this.biaoqianid) {
  1344. this.biaoqianid = this.biaoqianid
  1345. } else {
  1346. this.biaoqianid = 0
  1347. }
  1348. this.isshow3 = false;
  1349. this.dialogList.forEach(res => {
  1350. res.message.forEach(asd => {
  1351. asd.isshow = false;
  1352. })
  1353. })
  1354. let objdata = {
  1355. "itemId":this.buildingID,
  1356. "carId": this.customerId, //客户id
  1357. "startTime": this.changanitem.bg, //开始时间
  1358. "startFile": this.duihuawenjianid, //对话所在录音文件id
  1359. "endTime": this.changanitem.ed, //结束时间
  1360. "marketingId": this.biaoqianid, //对应一级父id
  1361. "jjTransfer": this.changanitem.onebest, //选中对话
  1362. "status": 1
  1363. }
  1364. console.log(uni.getStorageSync('weapp_session_login_data').token)
  1365. uni.request({
  1366. url: config.service.addATD,
  1367. method: "POST",
  1368. header: {
  1369. 'content-type': 'application/json',
  1370. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  1371. },
  1372. data: objdata,
  1373. success: (data) => {
  1374. if (data.data.code == 10000) {
  1375. uni.showToast({
  1376. title: '加精成功',
  1377. duration: 2000
  1378. });
  1379. } else {
  1380. uni.showToast({
  1381. title: data.data.message,
  1382. duration: 2000
  1383. });
  1384. }
  1385. }
  1386. })
  1387. },
  1388. //长按对话
  1389. changanxiaoguo(item, index, i) {
  1390. this.messagelisy = [];
  1391. this.changanitem = {};
  1392. this.duihuawenjianid = "",
  1393. this.dialogList.forEach(res => {
  1394. res.message.forEach(asd => {
  1395. asd.isshow = false;
  1396. })
  1397. })
  1398. this.changanitem = item;
  1399. this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
  1400. this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
  1401. this.textItself=item.onebest;
  1402. let onebest=item.onebest;
  1403. this.thewrongword =onebest.replace(/<.*?>/ig,"");
  1404. this.messagelisy = this.dialogList[i].message
  1405. this.argtextindex1=i;
  1406. this.argtextindex2=index;
  1407. },
  1408. //回到顶部
  1409. gotoTop() {
  1410. this.scrollId = null;
  1411. this.$nextTick(() => {
  1412. this.scrollId = "top";
  1413. })
  1414. },
  1415. //切换tab
  1416. changeTab(type) {
  1417. if (type == 0) {
  1418. this.tab = 0
  1419. } else {
  1420. this.tab = 1;
  1421. this.getRatelist();
  1422. }
  1423. },
  1424. //评分上下显隐
  1425. changeshow(item, type) {
  1426. item.show=!item.show;
  1427. },
  1428. changeshow2(item, type){
  1429. item.show=!item.show;
  1430. },
  1431. // 获取评分
  1432. getRatelist() {
  1433. if (this.ratelist.length == 0) {
  1434. uni.showLoading({
  1435. title: '加载中'
  1436. });
  1437. this.$u.get("/customer/findzkMByCusId", {
  1438. cusId: this.customerId
  1439. }).then(res => {
  1440. if (res.length) {
  1441. let level1 = []
  1442. let level2rate = 0
  1443. res.forEach(item => {
  1444. if (item.pid == 0) {
  1445. level1.push({
  1446. id: item.marketingId,
  1447. rate: item.fraction,
  1448. name: item.name,
  1449. sort: item.sort,
  1450. show: false,
  1451. ratepercent: 0,
  1452. children: []
  1453. })
  1454. } else {
  1455. if (item.selected == 0) {
  1456. level2rate += item.fraction
  1457. }
  1458. }
  1459. })
  1460. this.totalRate = level2rate;
  1461. res.forEach(subitem => {
  1462. let subitempid = subitem.pid
  1463. level1.forEach(item => {
  1464. if (subitempid == item.id) {
  1465. if (subitem.selected == 0) {
  1466. item.ratepercent += subitem.fraction
  1467. }
  1468. item.children.push({
  1469. id: subitem.id,
  1470. rate: subitem.fraction,
  1471. selected: subitem.selected,
  1472. name: subitem.name,
  1473. show: false,
  1474. marketingId:subitem.marketingId,
  1475. children: []
  1476. })
  1477. }
  1478. })
  1479. })
  1480. res.forEach(subitem => {
  1481. let subitempid = subitem.pid
  1482. level1.forEach(chen=>{
  1483. chen.children.forEach(zxc=>{
  1484. if(subitempid == zxc.marketingId){
  1485. zxc.children.push({
  1486. id: subitem.id,
  1487. rate: subitem.fraction,
  1488. selected: subitem.selected,
  1489. name: subitem.name,
  1490. marketingId:subitem.marketingId,
  1491. })
  1492. }
  1493. })
  1494. })
  1495. })
  1496. level1[0].show = true;
  1497. level1[0].children[0].show = true;
  1498. this.ratelist = level1
  1499. }
  1500. setTimeout(function() {
  1501. uni.hideLoading();
  1502. }, 1000);
  1503. })
  1504. }
  1505. },
  1506. // 获取转义后的对话结果
  1507. getCorpusAnalysis(info) {
  1508. this.dialogList = [];
  1509. this.newluyinList=[]
  1510. uni.request({
  1511. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&bg="+info.bg+"&speaker="+this.roleindex, //仅为示例,并非真实接口地址。
  1512. method: "GET",
  1513. header: {
  1514. 'content-type': 'application/json',
  1515. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  1516. },
  1517. success: (data) => {
  1518. this.tablist=[];
  1519. let jsonInfo = JSON.parse(data.data.data.audioContent);
  1520. for(var i=0;i<=data.data.data.speakerNum;i++){
  1521. if(i==0){
  1522. this.tablist.push({
  1523. name:'全部'
  1524. })
  1525. }else if(i==1){
  1526. this.tablist.push({
  1527. name:'A'
  1528. })
  1529. }else if(i==2){
  1530. this.tablist.push({
  1531. name:'B'
  1532. })
  1533. }else if(i==3){
  1534. this.tablist.push({
  1535. name:'C'
  1536. })
  1537. }else if(i==4){
  1538. this.tablist.push({
  1539. name:'D'
  1540. })
  1541. }else if(i==5){
  1542. this.tablist.push({
  1543. name:'E'
  1544. })
  1545. }else if(i==6){
  1546. this.tablist.push({
  1547. name:'F'
  1548. })
  1549. }else if(i==7){
  1550. this.tablist.push({
  1551. name:'G'
  1552. })
  1553. }else if(i==8){
  1554. this.tablist.push({
  1555. name:'H'
  1556. })
  1557. }else if(i==9){
  1558. this.tablist.push({
  1559. name:'I'
  1560. })
  1561. }else if(i==10){
  1562. this.tablist.push({
  1563. name:'J'
  1564. })
  1565. }else if(i==11){
  1566. this.tablist.push({
  1567. name:'K'
  1568. })
  1569. }else if(i==12){
  1570. this.tablist.push({
  1571. name:'L'
  1572. })
  1573. }else if(i==13){
  1574. this.tablist.push({
  1575. name:'M'
  1576. })
  1577. }else if(i==14){
  1578. this.tablist.push({
  1579. name:'N'
  1580. })
  1581. }else if(i==15){
  1582. this.tablist.push({
  1583. name:'O'
  1584. })
  1585. }else{
  1586. this.tablist.push({
  1587. name:'P'
  1588. })
  1589. }
  1590. }
  1591. if(data.data.data.speaker==null){
  1592. this.roleindexbiaoji=0;
  1593. this.dshfkjsdkksodofydwfkhwdfkjh=0;
  1594. }else{
  1595. this.tablist[data.data.data.speaker].name=this.tablist[data.data.data.speaker].name+"顾问";
  1596. this.roleindexbiaoji=data.data.data.speaker-1;
  1597. this.dshfkjsdkksodofydwfkhwdfkjh=data.data.data.speaker-1;
  1598. }
  1599. this.speaker=data.data.data.speaker;
  1600. //上拉标记点
  1601. this.textindex=data.data.data.index;
  1602. //下拉标记点
  1603. this.toptextindex=data.data.data.index;
  1604. jsonInfo.forEach(item=>{
  1605. item.message=JSON.parse(item.onebest)
  1606. item.backindex=this.csdFileindex;
  1607. if(info.onebest){
  1608. item.message.forEach(che=>{
  1609. if(che.onebest==info.onebest){
  1610. che.onebest=`<font style='color: red'>${che.onebest}</font>`;
  1611. }
  1612. })
  1613. }
  1614. })
  1615. this.newluyinList=jsonInfo;
  1616. this.dialogList.push(jsonInfo[this.textindex]);
  1617. var itc=parseInt(info.bg/1000)
  1618. this.adasdasdasd(itc)
  1619. }
  1620. })
  1621. },
  1622. getTime(time) {
  1623. return util.formatSecond(time)
  1624. },
  1625. // 录音暂停播放
  1626. changePlayState() {
  1627. if (this.audioPlay == false) {
  1628. this.innerAudioContext.play();
  1629. } else {
  1630. this.innerAudioContext.pause()
  1631. }
  1632. },
  1633. //音频前进回退
  1634. sliderChangeComplate(e) {
  1635. let platetime=e.detail.value*1000;
  1636. this.dialogList=[]
  1637. uni.request({
  1638. url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&bg="+platetime, //仅为示例,并非真实接口地址。
  1639. method: "GET",
  1640. header: {
  1641. 'content-type': 'application/json',
  1642. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  1643. },
  1644. success: (data) => {
  1645. this.textindex=data.data.data.index;
  1646. this.toptextindex=data.data.data.index;
  1647. if(data.data.data.index>this.newluyinList.length){
  1648. this.dialogList.push(this.newluyinList[0])
  1649. }else{
  1650. this.dialogList.push(this.newluyinList[data.data.data.index])
  1651. }
  1652. const currTimeStr = this.formatTime(e.detail.value)
  1653. this.currentTimeStr = currTimeStr
  1654. this.innerAudioContext.seek(e.detail.value);
  1655. this.innerAudioContext.play();
  1656. }
  1657. })
  1658. },
  1659. //长按点击播放
  1660. clickbofang(dialog,item) {
  1661. this.innerAudioContext.pause()
  1662. this.dialogList.forEach(res => {
  1663. res.message.forEach(asd => {
  1664. asd.isshow = false;
  1665. })
  1666. })
  1667. this.$forceUpdate()
  1668. let platetime=item.bg;
  1669. let newtime=item.bg/1000;
  1670. this.dialogList=[]
  1671. uni.request({
  1672. url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&bg="+platetime, //仅为示例,并非真实接口地址。
  1673. method: "GET",
  1674. header: {
  1675. 'content-type': 'application/json',
  1676. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  1677. },
  1678. success: (data) => {
  1679. this.textindex=data.data.data.index;
  1680. this.toptextindex=data.data.data.index;
  1681. this.dialogList.push(this.newluyinList[data.data.data.index])
  1682. const currTimeStr = this.formatTime(newtime)
  1683. this.currentTimeStr = currTimeStr
  1684. this.innerAudioContext.seek(newtime);
  1685. this.innerAudioContext.play();
  1686. }
  1687. })
  1688. },
  1689. //录音实例
  1690. creatAudio() {
  1691. this.innerAudioContext = uni.createInnerAudioContext();
  1692. if(uni.getStorageSync('entrance')==1){
  1693. this.innerAudioContext.autoplay = false;
  1694. }else{
  1695. this.innerAudioContext.autoplay = true;
  1696. }
  1697. this.innerAudioContext.src = this.recordPath;
  1698. this.innerAudioContext.title = '音频';
  1699. this.onPlay()
  1700. this.onPause()
  1701. this.onCanplay()
  1702. this.onEnded()
  1703. this.onSeeking()
  1704. this.onSeeked()
  1705. this.TimeUpdate()
  1706. },
  1707. formatTime(num) {
  1708. //格式化时间格式
  1709. num = num.toFixed(0);
  1710. let second = num % 60;
  1711. if (second < 10) second = '0' + second;
  1712. let min = Math.floor(num / 60);
  1713. if (min < 10) min = '0' + min;
  1714. return min + ":" + second;
  1715. },
  1716. changeEditing() {
  1717. this.dialogListres[0].message.forEach(asd => {
  1718. asd.isshow = false;
  1719. })
  1720. }
  1721. },
  1722. }
  1723. </script>
  1724. <style lang="scss" scoped>
  1725. .box{
  1726. width: 100%;
  1727. height: 100vh;
  1728. display:flex;
  1729. flex-direction:column;
  1730. .pingfenbox{
  1731. width: 100%;
  1732. height: 60rpx;
  1733. line-height: 60rpx;
  1734. border-bottom: 1px solid #E0E0E0;
  1735. display: flex;
  1736. }
  1737. .pingfenbox view{
  1738. flex: 1;
  1739. text-align: center;
  1740. font-size: 28rpx;
  1741. text-indent: 20rpx;
  1742. }
  1743. .activecllasscet{
  1744. background: #2671E2;
  1745. color: #FFFFFF;
  1746. }
  1747. .title1-12{
  1748. font-size: 28rpx;
  1749. color:#2671E2;
  1750. font-weight: 400;
  1751. text-indent: 30rpx;
  1752. margin-top: 18rpx;
  1753. }
  1754. .headbox{
  1755. width: 100%;
  1756. min-height: 173rpx;
  1757. border-bottom: 1px solid #E0E0E0;
  1758. }
  1759. .zhuti{
  1760. flex:1;
  1761. overflow:auto;
  1762. }
  1763. .bottombox{
  1764. width: 100%;
  1765. height: 170rpx;
  1766. border-top: 1px solid #E0E0E0;
  1767. .bottomhead{
  1768. width: 100%;
  1769. height: 81rpx;
  1770. border-bottom: 1px solid #E0E0E0;
  1771. display: flex;
  1772. justify-content: space-between;
  1773. align-items: center;
  1774. .audio-slider {
  1775. width: 87%;
  1776. display: flex;
  1777. justify-content: space-between;
  1778. align-items: center;
  1779. padding-right: 30rpx;
  1780. }
  1781. .audio-slider .slider {
  1782. width: 100%;
  1783. padding: 0px 15rpx;
  1784. box-sizing: border-box;
  1785. }
  1786. .audio-time {
  1787. width: 110rpx;
  1788. text-align: right;
  1789. font-size: 26rpx;
  1790. line-height: 28rpx;
  1791. color: #70798D;
  1792. display: flex;
  1793. justify-content: space-between;
  1794. }
  1795. .audio-play {
  1796. width: 48rpx;
  1797. height: 48rpx;
  1798. flex-shrink: 0;
  1799. }
  1800. .audio-play .image {
  1801. width: 100%;
  1802. height: 100%;
  1803. margin-left: 30rpx;
  1804. }
  1805. }
  1806. .botbotmm{
  1807. width: 100%;
  1808. height: 88rpx;
  1809. display: flex;
  1810. align-items: center;
  1811. }
  1812. }
  1813. }
  1814. .headboxhead{
  1815. width: 100%;
  1816. height: 84rpx;
  1817. border-bottom: 1px solid #E0E0E0;
  1818. display: flex;
  1819. .boxhead1{
  1820. width: 50%;
  1821. color: #303030;
  1822. height: 84rpx;
  1823. line-height: 84rpx;
  1824. font-size: 28rpx;
  1825. text-indent: 30rpx;
  1826. }
  1827. .boxhead2{
  1828. width: 46%;
  1829. height: 84rpx;
  1830. text-align: right;
  1831. }
  1832. }
  1833. .boxhead2 image{
  1834. width: 36rpx;
  1835. height: 36rpx;
  1836. margin-top: 24rpx;
  1837. }
  1838. .headboxbott{
  1839. width: 100%;
  1840. height:88rpx;
  1841. display: flex;
  1842. align-items: center;
  1843. .headovfu{
  1844. flex: 1;
  1845. height: 88rpx;
  1846. overflow: hidden;
  1847. }
  1848. .headpade{
  1849. width: 160rpx;
  1850. height: 60rpx;
  1851. display: flex;
  1852. justify-content: center;
  1853. align-items: center;
  1854. border-left: 1px solid #D6D6D6;
  1855. .biaoji{
  1856. width: 100rpx;
  1857. height: 48rpx;
  1858. background: #E6625B;
  1859. border-radius: 24rpx;
  1860. text-align: center;
  1861. line-height: 48rpx;
  1862. color: #FFFFFF;
  1863. font-size: 26rpx;
  1864. }
  1865. }
  1866. }
  1867. .fill{
  1868. width: 2rpx;
  1869. height: 41rpx;
  1870. background: #E0E0E0;
  1871. }
  1872. .tmmchen{
  1873. width: 25%;
  1874. height: 88rpx;
  1875. text-align: center;
  1876. color: #666666;
  1877. font-size: 18rpx;
  1878. position: relative;
  1879. .allimg{
  1880. position: absolute;
  1881. width: 168rpx;
  1882. top: -152rpx;
  1883. border: 1px solid #E0E0E0;
  1884. background: #FFFFFF;
  1885. font-size: 26rpx;
  1886. color: #333333;
  1887. text-align: center;
  1888. }
  1889. }
  1890. .tmmchen image{
  1891. width: 40rpx;
  1892. height: 40rpx;
  1893. margin-top: 10rpx;
  1894. margin-bottom: 2rpx;
  1895. }
  1896. .zhezhoa {
  1897. position: fixed;
  1898. top: 0;
  1899. left: 0;
  1900. z-index: 999;
  1901. width: 100%;
  1902. height: 100vh;
  1903. opacity: 0.5;
  1904. background-color: #666666;
  1905. }
  1906. .followingpop-up{
  1907. width: 100%;
  1908. height: 75vh;
  1909. background: #FFFFFF;
  1910. position: fixed;
  1911. background: #FFFFFF;
  1912. left: 0px;
  1913. bottom: 0px;
  1914. z-index: 1000;
  1915. display:flex;
  1916. flex-direction:column;
  1917. // position: absolute;
  1918. .calibration{
  1919. width: 90rpx;
  1920. height: 90rpx;
  1921. background: #2671E2;
  1922. text-align: center;
  1923. line-height: 90rpx;
  1924. border-radius: 50%;
  1925. color: #FFFFFF;
  1926. position: absolute;
  1927. right: 30rpx;
  1928. bottom: 100rpx;
  1929. }
  1930. .guanbibox{
  1931. width: 100%;
  1932. padding-bottom: 20rpx;
  1933. margin-top: 20rpx;
  1934. border-bottom: 1px solid #E0E0E0;
  1935. position: relative;
  1936. .guanbixen{
  1937. width:30rpx;
  1938. height:30rpx;
  1939. position: absolute;
  1940. right: 30rpx;
  1941. top: 6rpx;
  1942. }
  1943. .cenisboxtab{
  1944. width: 100%;
  1945. display: flex;
  1946. .cenisboxtabview{
  1947. flex: 1;
  1948. display: flex;
  1949. align-items: center;
  1950. justify-content: center;
  1951. color: #333333;
  1952. font-size: 30rpx;
  1953. font-weight: 600;
  1954. }
  1955. }
  1956. }
  1957. .cenisbox{
  1958. flex:1;
  1959. overflow:auto;
  1960. .jianbox{
  1961. width: 100%;
  1962. border-bottom: 1px solid #E0E0E0;
  1963. padding-top: 24rpx;
  1964. padding-bottom: 24rpx;
  1965. .jianbox-cen{
  1966. width: 100%;
  1967. height: 78rpx;
  1968. // border-bottom: 1px solid #E0E0E0;
  1969. display: flex;
  1970. .jianboxtext{
  1971. flex: 1;
  1972. height: 100%;
  1973. font-size: 30rpx;
  1974. font-weight: 600;
  1975. line-height: 78rpx;
  1976. color: #333333;
  1977. text-indent: 30rpx;
  1978. }
  1979. .jianboxjian{
  1980. width: 80rpx;
  1981. height: 100%;
  1982. line-height: 78rpx;
  1983. text-align: center;
  1984. }
  1985. }
  1986. .bioqianwayl{
  1987. width: 690rpx;
  1988. margin: 0 auto;
  1989. display: flex;
  1990. flex-wrap: wrap;
  1991. }
  1992. .bioqianwayl view{
  1993. padding-left: 24rpx;
  1994. padding-right: 24rpx;
  1995. padding-top: 10rpx;
  1996. padding-bottom: 10rpx;
  1997. margin-right: 24rpx;
  1998. margin-top: 20rpx;
  1999. border-radius: 8rpx;
  2000. font-size: 26rpx;
  2001. }
  2002. }
  2003. }
  2004. }
  2005. .jiantop{
  2006. width: 14rpx;
  2007. height: 24rpx;
  2008. }
  2009. .jiantop1{
  2010. width: 20rpx;
  2011. height: 14rpx;
  2012. }
  2013. .sdfsaf{
  2014. padding-left: 24rpx;
  2015. padding-right: 24rpx;
  2016. padding-top: 10rpx;
  2017. padding-bottom: 10rpx;
  2018. border-radius: 8rpx;
  2019. font-size: 26rpx;
  2020. }
  2021. .yixingindexclass{
  2022. border-bottom: 3px solid #2671E2;
  2023. }
  2024. .cenisboxdspl{
  2025. width: 94%;
  2026. margin: 0 auto;
  2027. padding-bottom: 24rpx;
  2028. display: flex;
  2029. flex-wrap: wrap;
  2030. .cenisboxdsplview{
  2031. padding-left: 24rpx;
  2032. padding-right: 24rpx;
  2033. padding-top: 10rpx;
  2034. padding-bottom: 10rpx;
  2035. background: #F4F8FD;
  2036. color: #2671E2;
  2037. font-size: 26rpx;
  2038. margin-right: 24rpx;
  2039. margin-top: 24rpx;
  2040. }
  2041. }
  2042. .bounced {
  2043. width: 570upx;
  2044. background: #FFFFFF;
  2045. z-index: 1000;
  2046. border-radius: 10upx;
  2047. position: fixed;
  2048. left: 50%;
  2049. top: 50%;
  2050. transform: translate(-50%, -50%);
  2051. /* 50%为自身尺寸的一半 */
  2052. .jiajinghuatit {
  2053. width: 100%;
  2054. height: 68rpx;
  2055. font-size: 30rpx;
  2056. text-align: center;
  2057. line-height: 68rpx;
  2058. }
  2059. .jiajinghuaview {
  2060. padding: 18rpx 18rpx 18rpx 18rpx;
  2061. display: flex;
  2062. flex-wrap: wrap;
  2063. .jiajinghuaview1 {
  2064. padding: 8rpx 8rpx 8rpx 8rpx;
  2065. font-size: 26rpx;
  2066. border-radius: 12rpx;
  2067. border: 1px solid #979797;
  2068. margin-left: 8rpx;
  2069. }
  2070. .jighuaview2 {
  2071. padding: 8rpx 18rpx 8rpx 18rpx;
  2072. font-size: 26rpx;
  2073. border-radius: 12rpx;
  2074. border: 1px solid #979797;
  2075. margin-left: 20rpx;
  2076. margin-top: 10rpx;
  2077. display: flex;
  2078. .view1-text {
  2079. text-align: center;
  2080. }
  2081. .view1-img {
  2082. width: 50rpx;
  2083. }
  2084. }
  2085. }
  2086. .bounced3 {
  2087. height: 100upx;
  2088. width: 100%;
  2089. margin-top: 40upx;
  2090. border-top: 1px solid #dddddd;
  2091. display: flex;
  2092. }
  2093. .bounced3-1 {
  2094. width: 50%;
  2095. height: 100%;
  2096. text-align: center;
  2097. line-height: 100upx;
  2098. border-right: 1px solid #dddddd;
  2099. font-size: 36upx;
  2100. color: #999999;
  2101. }
  2102. .bounced3-2 {
  2103. width: 50%;
  2104. height: 100%;
  2105. text-align: center;
  2106. line-height: 100upx;
  2107. font-size: 36upx;
  2108. color: #108ee9;
  2109. }
  2110. }
  2111. .viewclace{
  2112. width: 100rpx;
  2113. height: 40rpx;
  2114. text-align: center;
  2115. line-height: 40rpx;
  2116. border-radius: 14rpx;
  2117. margin-right: 34rpx;
  2118. margin-top: 16rpx;
  2119. font-size: 24rpx;
  2120. }
  2121. .bosdttom{
  2122. color: #FFFFFF;
  2123. background-color: #2671E2;
  2124. }
  2125. .dialog-block {
  2126. margin: 20rpx 0;
  2127. border-bottom: 1px solid #ccc;
  2128. .fileName {
  2129. text-align: center;
  2130. margin: 10rpx auto;
  2131. width: 115rpx;
  2132. height: 42rpx;
  2133. line-height: 42rpx;
  2134. background: #EFEFEF;
  2135. border-radius: 4rpx;
  2136. font-size: 20rpx;
  2137. font-weight: 400;
  2138. color: #333333;
  2139. }
  2140. }
  2141. .scroll-Y {
  2142. font-size: 36upx;
  2143. color: #999999;
  2144. background: #FFFFFF;
  2145. margin-top: 30upx;
  2146. flex: 1;
  2147. overflow-y: scroll;
  2148. width: 100%;
  2149. }
  2150. .scroll-Y .text {
  2151. margin: 50upx 30upx;
  2152. line-height: 80upx;
  2153. display: flex;
  2154. align-items: center;
  2155. }
  2156. .scroll-Y .text[data-speaker="2"],
  2157. .scroll-Y .text[data-speaker="4"],
  2158. .scroll-Y .text[data-speaker="6"] {
  2159. flex-direction: row-reverse;
  2160. text-align: right;
  2161. .content {
  2162. margin-left: 0;
  2163. margin-right: 30upx;
  2164. background: #F6F6F6;
  2165. color: #999999;
  2166. }
  2167. }
  2168. .scroll-Y .text .avatar {
  2169. width: 64upx;
  2170. height: 64upx;
  2171. line-height: 64upx;
  2172. text-align: center;
  2173. // border: 1rpx solid red;
  2174. font-size: 36rpx;
  2175. border-radius: 50%;
  2176. background: #F2F2F2;
  2177. color: #008EF2;
  2178. // display: flex;
  2179. // justify-content: center;
  2180. // align-items: center;
  2181. image {
  2182. width: 40upx;
  2183. }
  2184. }
  2185. .scroll-Y .text .content {
  2186. margin-left: 30upx;
  2187. line-height: 60rpx;
  2188. text-align: left;
  2189. padding: 0 5px;
  2190. background: #2BC805;
  2191. border-radius: 8upx;
  2192. max-width: 442rpx;
  2193. color: #FFFFFF;
  2194. position: relative;
  2195. .tankuangcss {
  2196. position: absolute;
  2197. top: -140rpx;
  2198. left: -120rpx;
  2199. width: 308rpx;
  2200. height: 130rpx;
  2201. background-color: #333333;
  2202. font-size: 24rpx;
  2203. color: #FFFFFF;
  2204. padding-top: 4rpx;
  2205. padding-bottom: 4rpx;
  2206. display: flex;
  2207. flex-wrap: wrap;
  2208. border-radius: 15rpx;
  2209. z-index: 1000;
  2210. }
  2211. }
  2212. .scroll-Y .text.active .content {
  2213. color: #38FFF1;
  2214. position: relative;
  2215. }
  2216. .scroll-Y .text.active[data-speaker="2"] .content,
  2217. .scroll-Y .text.active[data-speaker="4"] .content,
  2218. .scroll-Y .text.active[data-speaker="6"] .content {
  2219. color: #FF7538;
  2220. position: relative;
  2221. }
  2222. .backTop {
  2223. width: 60upx;
  2224. height: 60upx;
  2225. background: rgba(211, 235, 253, 1);
  2226. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  2227. border-radius: 50%;
  2228. position: fixed;
  2229. bottom: 200upx;
  2230. right: 8upx;
  2231. display: flex;
  2232. justify-content: center;
  2233. align-items: center;
  2234. image {
  2235. width: 26upx;
  2236. height: 34upx;
  2237. }
  2238. }
  2239. .jiangshang{
  2240. color: #2671E2;
  2241. background: #F4F8FD;
  2242. }
  2243. .jiangshang1{
  2244. color: #FFFFFF;
  2245. background: #999999;
  2246. }
  2247. // 表单
  2248. .tian-view {
  2249. width: 570upx;
  2250. background-color: #FFFFFF;
  2251. border-bottom: 1px solid #ededee;
  2252. display: flex;
  2253. min-height: 96rpx;
  2254. .tian-view-t1 {
  2255. width: 20rpx;
  2256. font-size: 34rpx;
  2257. height: 34rpx;
  2258. line-height: 110rpx;
  2259. letter-spacing: 0px;
  2260. color: red;
  2261. }
  2262. .tian-view-t2 {
  2263. width: 30%;
  2264. min-height: 96rpx;
  2265. line-height: 96rpx;
  2266. font-size: 34rpx;
  2267. color: #333;
  2268. }
  2269. .tian-view-t3 {
  2270. width: 61%;
  2271. padding-top: 31rpx;
  2272. padding-bottom: 31rpx;
  2273. display: flex;
  2274. .tian-input {
  2275. width: 98%;
  2276. font-size: 34rpx;
  2277. border: none;
  2278. }
  2279. }
  2280. }
  2281. .inputbox{
  2282. width: 100%;
  2283. height: 100rpx;
  2284. display: flex;
  2285. align-items: center;
  2286. justify-content: center;
  2287. border-bottom: 1px solid #E0E0E0;
  2288. .thisinput{
  2289. width:94%;
  2290. height: 52rpx;
  2291. background: #FFFFFF;
  2292. border-radius: 8rpx;
  2293. border: 1px solid #C9C9C9;
  2294. color: #333333;
  2295. font-size: 26rpx;
  2296. text-indent: 26rpx;
  2297. line-height: 52rpx;
  2298. }
  2299. }
  2300. .biaoqiantom {
  2301. background-color: #008EF2;
  2302. color: #FFFFFF;
  2303. border: none;
  2304. }
  2305. .Level-box{
  2306. padding-bottom: 2rpx;
  2307. .hhhbox{
  2308. width:100%;
  2309. padding-left: 30rpx;
  2310. padding-right: 30rpx;
  2311. border-bottom: 1rpx solid #E0E0E0;
  2312. background: #FFFFFF;
  2313. // padding-bottom: 32rpx;
  2314. .hsnrtest{
  2315. height: 24rpx;
  2316. font-size: 24rpx;
  2317. font-weight: 400;
  2318. color: #666666;
  2319. line-height: 24rpx;
  2320. }
  2321. .Level3che{
  2322. width:100%;
  2323. height:28rpx;
  2324. display: flex;
  2325. line-height: 28rpx;
  2326. align-items: center;
  2327. margin-top: 30rpx;
  2328. .title1{
  2329. flex: 1;
  2330. font-size: 28rpx;
  2331. color:#2671E2;
  2332. font-weight: 400;
  2333. }
  2334. .jiantobox{
  2335. width: 30rpx;
  2336. height: 30rpx;
  2337. display: flex;
  2338. align-items: center;
  2339. .arrow{
  2340. width: 28rpx;
  2341. height:28rpx;
  2342. }
  2343. }
  2344. }
  2345. }
  2346. .Level2che{
  2347. width:100%;
  2348. height: 88rpx;
  2349. display: flex;
  2350. line-height: 88rpx;
  2351. align-items: center;
  2352. .title1{
  2353. flex: 2;
  2354. font-size: 28rpx;
  2355. color: #333333;
  2356. font-weight: 400;
  2357. }
  2358. .leve1-jindu{
  2359. flex: 3;
  2360. display: flex;
  2361. justify-content: center;
  2362. align-items: center;
  2363. .zhixing{
  2364. width: 108rpx;
  2365. height: 44rpx;
  2366. background: #2671E2;
  2367. border-radius: 4rpx;
  2368. font-size: 28rpx;
  2369. text-align: center;
  2370. line-height: 44rpx;
  2371. color: #FFFFFF;
  2372. }
  2373. .zhixing2{
  2374. width: 108rpx;
  2375. height: 44rpx;
  2376. background: #F8F8F8;
  2377. border-radius: 4rpx;
  2378. font-size: 28rpx;
  2379. text-align: center;
  2380. line-height: 44rpx;
  2381. color: #999999;
  2382. }
  2383. }
  2384. .jiantobox{
  2385. width: 30rpx;
  2386. height: 30rpx;
  2387. display: flex;
  2388. align-items: center;
  2389. .arrow{
  2390. width: 30rpx;
  2391. height:18rpx;
  2392. }
  2393. }
  2394. }
  2395. .Level1che{
  2396. width:100%;
  2397. height: 94rpx;
  2398. background: #F5F5F5;
  2399. display: flex;
  2400. line-height: 94rpx;
  2401. align-items: center;
  2402. padding-left: 30rpx;
  2403. padding-right: 30rpx;
  2404. .title1{
  2405. flex: 2;
  2406. font-size: 30rpx;
  2407. color: #333333;
  2408. font-weight: 400;
  2409. }
  2410. .leve1-jindu{
  2411. flex: 3;
  2412. .jindutiao{
  2413. width: 96%;
  2414. height: 28rpx;
  2415. background: #D5EEE2;
  2416. line-height: 28rpx;
  2417. border-radius: 14rpx;
  2418. position: relative;
  2419. .huanxing{
  2420. height: 100%;
  2421. background: #4FC78F;
  2422. border-radius: 14rpx;
  2423. }
  2424. .text{
  2425. position: absolute;
  2426. top: 0rpx;
  2427. right: 0rpx;
  2428. font-size: 28rpx;
  2429. font-weight: 400;
  2430. color: #333333;
  2431. }
  2432. }
  2433. }
  2434. .jiantobox{
  2435. width: 30rpx;
  2436. height: 30rpx;
  2437. display: flex;
  2438. align-items: center;
  2439. .arrow{
  2440. width: 30rpx;
  2441. height:18rpx;
  2442. }
  2443. }
  2444. }
  2445. }
  2446. .rotatearrow {
  2447. transform: rotate(270deg);
  2448. }
  2449. .ffectivetext{
  2450. width: 85%;
  2451. margin: 10rpx auto;
  2452. height: 100rpx;
  2453. padding: 20rpx;
  2454. border: 1rpx solid #E4F0FF;
  2455. }
  2456. </style>