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

2701 rader
72 KiB

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