You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2761 lines
71 KiB

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