Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

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