AI销管
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

2782 行
74 KiB

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