You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

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