Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

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