Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

2653 строки
71 KiB

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