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.
 
 
 

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