AI营销辅助 普强使用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2664 lines
71 KiB

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