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.
 
 
 

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