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.
 
 
 
 

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