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.
 
 
 

2692 line
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. this.Pinspeak = false
  635. uni.navigateTo({
  636. url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item
  637. .keywordsId + "&type=" + 1 + '&UpDateEvent=DETAILS2INIT'
  638. })
  639. }
  640. },
  641. //关键词点击
  642. tapbadge(item) {
  643. this.Pinspeak = false
  644. //进搜索页面
  645. uni.navigateTo({
  646. url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&keyword=" + item +
  647. "&skpl=" + "2" + '&UpDateEvent=DETAILS2INIT'
  648. })
  649. },
  650. recordclick(i) {
  651. this.zhixingcenterindex = i;
  652. if (i == 0) {
  653. this.getRatelist()
  654. } else {
  655. console.log('999')
  656. this.huoqujinji()
  657. }
  658. },
  659. //获取禁忌
  660. huoqujinji() {
  661. uni.showLoading({
  662. title: '加载中'
  663. });
  664. this.$u.get("/customer/findTabooWordsByCusId", {
  665. cusId: this.customerId
  666. }).then(res => {
  667. if (res.length) {
  668. this.prohibitedlist = res;
  669. }
  670. setTimeout(function() {
  671. uni.hideLoading();
  672. }, 1000);
  673. })
  674. },
  675. //评分点击
  676. clickaudeopal(item) {
  677. if (item.selected == 0) {
  678. console.log(item)
  679. this.Pinspeak = false
  680. uni.navigateTo({
  681. url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item
  682. .marketingId + "&type=" + 0 + '&UpDateEvent=DETAILS2INIT'
  683. })
  684. }
  685. },
  686. //获取用户信息
  687. gituserlist() {
  688. this.$u.get("/matchKeywords/personalReceptionRecord", {
  689. customerId: this.customerId
  690. }).then(res => {
  691. res.endTime1 = res.endTime.substring(0, 19);
  692. this.userlistobj = res;
  693. })
  694. },
  695. Acquishow2(i) {
  696. this.Acquirecustomerintentlist2[i].isshow = !this.Acquirecustomerintentlist2[i].isshow;
  697. },
  698. tocalibration() {
  699. uni.navigateTo({
  700. url: '/pages/mine/calibration?id=' + this.customerId
  701. });
  702. },
  703. customerofintention(i) {
  704. this.kehuyixiangcenterindex = i;
  705. if (i == 0) {
  706. this.Acquirecustomerintent()
  707. } else {
  708. this.Acquirecustomerintent2()
  709. }
  710. },
  711. //获取人工校准意向信息
  712. Acquirecustomerintent2() {
  713. this.Acquirecustomerintentlist2 = [];
  714. this.$u.get("/matchKeywords/findManualCalibration", {
  715. customerId: this.customerId,
  716. type: 1
  717. }).then(res => {
  718. res.forEach(item => {
  719. item.isshow = true;
  720. item.children.forEach(chend => {
  721. if (chend.isInterval == 0) {
  722. chend.text = chend.name + chend.unit + '-' + chend.endName + chend
  723. .unit
  724. } else {
  725. chend.text = chend.name
  726. }
  727. })
  728. })
  729. this.Acquirecustomerintentlist2 = res;
  730. })
  731. },
  732. //获取系统意向信息
  733. Acquirecustomerintent() {
  734. this.Acquirecustomerintentlist = [];
  735. this.$u.get("/matchKeywords/findSystemAnalysis", {
  736. customerId: this.customerId
  737. }).then(res => {
  738. res.forEach(item => {
  739. item.isshow = true;
  740. item.children.forEach(chend => {
  741. if (chend.isInterval == 0) {
  742. chend.text = chend.name + chend.unit + '-' + chend.endName + chend
  743. .unit
  744. } else {
  745. chend.text = chend.name
  746. }
  747. })
  748. })
  749. this.Acquirecustomerintentlist = res;
  750. })
  751. },
  752. Acquishow(i) {
  753. this.Acquirecustomerintentlist[i].isshow = !this.Acquirecustomerintentlist[i].isshow;
  754. },
  755. Edittag(item, chend, index, i) {
  756. var selected = '';
  757. if (chend.selected == 0) {
  758. selected = 1;
  759. this.Acquirecustomerintentlist[index].children[i].selected = 1;
  760. } else {
  761. selected = 0;
  762. this.Acquirecustomerintentlist[index].children[i].selected = 0;
  763. }
  764. this.$u.post("/matchKeywords/updatePersonalMatchData", {
  765. carId: this.customerId,
  766. selected: selected,
  767. name: chend.name,
  768. pid: chend.pid,
  769. level: chend.level,
  770. endName: chend.endName,
  771. keywordsId: chend.keywordsId
  772. }).then(res => {
  773. })
  774. },
  775. //取消接待详情
  776. clenReceivedetailsabout() {
  777. this.Receivedetailsabout = false;
  778. this.Pinspeak = false;
  779. this.intention = false;
  780. this.Thetapeidisshow = false;
  781. },
  782. //意向统计切换
  783. Intentiontoswitch(i) {
  784. this.yixingindex = i;
  785. if (i == 1) {
  786. this.statistical()
  787. }
  788. },
  789. statistical() {
  790. this.$u.get("/matchKeywords/findCARKeywords", {
  791. customerId: this.customerId
  792. }).then(res => {
  793. res.forEach(item => {
  794. if (item.isInterval == 0) {
  795. item.name = item.name + item.unit + '-' + item.endName + item.unit;
  796. }
  797. })
  798. this.options1 = res;
  799. })
  800. },
  801. Receivetap() {
  802. this.Receivedetailsabout = true;
  803. },
  804. //标记
  805. alllogo() {
  806. var that = this;
  807. let msg = '';
  808. if (this.userlistobj.validInvalid != 0) {
  809. msg = '是否标记为"有效录音"?';
  810. uni.showModal({
  811. title: '提示',
  812. content: msg,
  813. success: function(res) {
  814. if (this.noClick) {
  815. this.noClick= false;
  816. if (res.confirm) {
  817. let parames = {
  818. id: that.customerId,
  819. validInvalid: '',
  820. invalidReason: 0
  821. }
  822. if (that.userlistobj.validInvalid == 0) {
  823. parames.validInvalid = 1;
  824. } else {
  825. parames.validInvalid = 0;
  826. }
  827. that.$u.post("/customer/updateValidInvalid", parames).then(res => {
  828. console.log(res)
  829. that.Thetapeidisshow = false;
  830. })
  831. }
  832. setTimeout(()=> {
  833. this.noClick= true;
  834. }, 2000)
  835. } else {
  836. // 这里是重复点击的判断
  837. }
  838. }
  839. });
  840. } else {
  841. this.effective = true;
  842. }
  843. },
  844. effectiveAdd() {
  845. if (this.effectiveindex == 4) {
  846. if (this.effectiveitext.length == 0) {
  847. uni.showToast({
  848. title: '备注不能为空',
  849. icon: "none",
  850. duration: 2000
  851. });
  852. return
  853. }
  854. }
  855. this.effective = false;
  856. let parames = {
  857. id: this.customerId,
  858. validInvalid: '',
  859. validInvalid: 1,
  860. invalidReason: Number(this.effectiveindex) + 1,
  861. invalidNote: this.effectiveitext
  862. }
  863. this.$u.post("/customer/updateValidInvalid", parames).then(res => {
  864. console.log(res)
  865. this.Thetapeidisshow = false;
  866. })
  867. },
  868. radioChange(evt) {
  869. this.effectiveitext = "";
  870. for (let i = 0; i < this.effectiveitems.length; i++) {
  871. if (this.effectiveitems[i].value === evt.detail.value) {
  872. this.effectiveindex = i;
  873. break;
  874. }
  875. }
  876. },
  877. //接待详情点击
  878. Receivedetailsabouttab(stringa) {
  879. if (stringa == 'Receivedetailsabout') {
  880. this.gituserlist()
  881. this.Thetapeidisshow = !this.Thetapeidisshow;
  882. } else if (stringa == 'Pinspeak') {
  883. this.getRatelist()
  884. this.Pinspeak = true;
  885. } else {
  886. if (this.kehuyixiangcenterindex == 0) {
  887. this.Acquirecustomerintent()
  888. } else {
  889. this.Acquirecustomerintent2()
  890. }
  891. this.intention = true;
  892. }
  893. },
  894. guanjiancishifo() {
  895. // this.guanjianciishow=!this.guanjianciishow;
  896. this.stateisshow = 1;
  897. uni.navigateTo({
  898. url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&status=" + this.status +
  899. "&skpl=" + "1" + '&UpDateEvent=DETAILS2INIT'
  900. })
  901. },
  902. // 添加角色
  903. addRole() {
  904. this.tablist.push({
  905. name: String.fromCharCode(this.tablist.length + 64)
  906. })
  907. },
  908. //标记选择角色
  909. biaojixuanze(index) {
  910. this.roleindexbiaoji = index;
  911. },
  912. //标记顾问
  913. tagtap() {
  914. this.biojiisshow = !this.biojiisshow;
  915. },
  916. //取消标记
  917. unmarktap() {
  918. this.biojiisshow = false;
  919. this.roleindexbiaoji = this.dshfkjsdkksodofydwfkhwdfkjh;
  920. this.roleisshaw = false
  921. },
  922. //确认标记
  923. Confirmthetag() {
  924. var num = this.roleindexbiaoji + 1;
  925. uni.request({
  926. url: config.service.markConsultant + '?id=' + this.luyinList[this.csdFileindex].id +
  927. "&speaker=" + num + '&customerId=' + this.customerId, //仅为示例,并非真实接口地址。
  928. method: "GET",
  929. header: {
  930. 'content-type': 'application/json',
  931. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  932. },
  933. success: (data) => {
  934. this.biojiisshow = false;
  935. this.biaojiyuyi()
  936. this.fenjiaoseunfo()
  937. uni.showToast({
  938. title: '标记成功',
  939. duration: 2000
  940. });
  941. },
  942. })
  943. },
  944. //标记语义词
  945. biaojiyuyi() {
  946. let parames = {
  947. carId: this.customerId
  948. }
  949. this.$u.post("/matchKeywords/toMatchKeywords", parames).then(res => {
  950. console.log(res)
  951. })
  952. },
  953. //分角色
  954. tapspagek(index) {
  955. this.roleindex = index;
  956. this.newluyinList = [];
  957. this.fenjiaoseunfo()
  958. this.$forceUpdate()
  959. }, //------------------------------------分角色标记刷新
  960. fenjiaoseunfo() {
  961. var bgcd = this.playNow * 1000;
  962. this.newluyinList = [];
  963. this.dialogList = [];
  964. let voFlagValue;
  965. if (this.roleindex == 0) {
  966. voFlagValue = 0
  967. } else {
  968. voFlagValue = 1
  969. }
  970. let tempRoleIndex;
  971. if (this.isSw) {
  972. if (this.roleindex == this.tablist.length - 1) {
  973. tempRoleIndex = 0
  974. } else {
  975. tempRoleIndex = this.roleindex
  976. }
  977. } else {
  978. tempRoleIndex = this.roleindex
  979. }
  980. console.log()
  981. uni.request({
  982. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  983. "&bg=" + bgcd + "&speaker=" + tempRoleIndex + "&voFlag=" + voFlagValue +
  984. '&num=50', //仅为示例,并非真实接口地址。
  985. method: "GET",
  986. header: {
  987. 'content-type': 'application/json',
  988. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  989. },
  990. success: (data) => {
  991. this.tablist = [];
  992. let jsonInfo = JSON.parse(data.data.data.audioContent);
  993. for (var i = 0; i <= data.data.data.speakerNum; i++) {
  994. if (i === 0) {
  995. this.tablist.push({
  996. name: '全部'
  997. })
  998. } else {
  999. this.tablist.push({
  1000. name: String.fromCharCode(i + 64)
  1001. })
  1002. }
  1003. }
  1004. if (data.data.data.speaker == null) {
  1005. this.roleindexbiaoji = 0;
  1006. this.dshfkjsdkksodofydwfkhwdfkjh = 0;
  1007. } else {
  1008. if (data.data.data.viewNameFlag == 1) {
  1009. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  1010. .speaker]
  1011. .name;
  1012. } else {
  1013. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  1014. .speaker]
  1015. .name + "顾问";
  1016. }
  1017. this.roleindexbiaoji = data.data.data.speaker - 1;
  1018. this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
  1019. }
  1020. if (data.data.data.viewNameFlag == 1) {
  1021. let p = [{
  1022. name: '顾问'
  1023. }]
  1024. this.tablist = [...this.tablist, ...p]
  1025. }
  1026. if (this.roleindex > this.tablist.length - 1) {
  1027. this.roleindex = this.tablist.length - 1
  1028. this.fenjiaoseunfo()
  1029. }
  1030. this.speaker = data.data.data.speaker;
  1031. //上拉标记点
  1032. this.textindex = data.data.data.index;
  1033. //下拉标记点
  1034. this.toptextindex = data.data.data.index;
  1035. this.isShowMark = data.data.data.viewNameFlag;
  1036. console.log(this.isShowMark)
  1037. jsonInfo.forEach(item => {
  1038. item.message = JSON.parse(item.onebest)
  1039. item.backindex = this.csdFileindex
  1040. })
  1041. this.newluyinList = jsonInfo;
  1042. if (this.textindex == null) {
  1043. return
  1044. } else {
  1045. this.dialogList.push(jsonInfo[this.textindex]);
  1046. }
  1047. }
  1048. })
  1049. },
  1050. toKeywordsearch() {
  1051. this.stateisshow = 1;
  1052. uni.navigateTo({
  1053. url: '/pages/learning/Keywordsearch?customerId=' + this.customerId + "&status=" + this.status +
  1054. "&skpl=" + "1" + '&UpDateEvent=DETAILS2INIT'
  1055. })
  1056. },
  1057. TimeUpdate(currentTime) {
  1058. this.playNow = Math.ceil(currentTime)
  1059. if (this.dialogList.length == 0) {
  1060. return
  1061. } else {
  1062. const message = this.dialogList[0].message;
  1063. if (!message) return
  1064. for (let i = 0; i < message.length; i++) {
  1065. if (Math.floor(message[i].bg / 1000) <= this.playNow && this.playNow < Math.floor(message[i].ed /
  1066. 1000)) {
  1067. console.log(message[i].bg, '我是active', message[i].ed, '我是currentTime', this.playNow)
  1068. console.log(message[i].onebest)
  1069. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  1070. break;
  1071. }
  1072. if (i < message.length - 1 && Math.floor(message[i].ed / 1000) < this.playNow && this.playNow <
  1073. Math.floor(message[i + 1].bg / 1000)) {
  1074. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  1075. break;
  1076. }
  1077. }
  1078. }
  1079. this.$forceUpdate()
  1080. },
  1081. init(info) {
  1082. this.sliderMax = 0; //进度条最大值
  1083. this.timeStr = "00:00"; //总的时间
  1084. const parames = {
  1085. pageNum: 1,
  1086. pageSize: 100,
  1087. query: {
  1088. customerId: this.customerId
  1089. }
  1090. }
  1091. this.$u.post("/corpus/findByPage", parames).then(res => {
  1092. if (res && res.length) {
  1093. let alltime = 1 + res[0].recordDuration;
  1094. this.calibration = res[0].calibration;
  1095. if (this.calibration == 0) {
  1096. this.kehuyixiangcenterindex = 0;
  1097. } else {
  1098. this.kehuyixiangcenterindex = 1;
  1099. }
  1100. this.alltimeStr = this.getTime(alltime)
  1101. if (info.bg != 0) {
  1102. this.luyinList = res;
  1103. this.recordPath = res[0].recordPath
  1104. this.date = res[0].receptionTime;
  1105. this.getCorpusAnalysis(info);
  1106. } else {
  1107. this.luyinList = res;
  1108. this.recordPath = res[0].recordPath
  1109. this.date = res[0].receptionTime;
  1110. this.getCorpusAnalysis(info);
  1111. this.zyAudio()
  1112. }
  1113. }
  1114. })
  1115. },
  1116. //搜索跳转
  1117. adasdasdasd(e) {
  1118. this.stepPlay(e)
  1119. },
  1120. //下一页
  1121. ltolower() {
  1122. var lengthcz = this.newluyinList.length - 1;
  1123. if (this.textindex >= lengthcz) {
  1124. uni.showToast({
  1125. title: '到底了',
  1126. duration: 2000
  1127. });
  1128. return
  1129. } else {
  1130. this.textindex = this.textindex + 1;
  1131. this.newluyinList[this.textindex].message.forEach(item => {
  1132. this.dialogList[0].message.push(item)
  1133. })
  1134. }
  1135. console.log("下一页", this.textindex)
  1136. },
  1137. //上一页
  1138. rolltoupper() {
  1139. if (this.toptextindex == 0) {
  1140. // uni.showToast({
  1141. // title: '到头了',
  1142. // duration: 2000
  1143. // });
  1144. return
  1145. } else {
  1146. if (this.dialogList[0] == undefined) {
  1147. return
  1148. } else {
  1149. this.toptextindex = this.toptextindex - 1;
  1150. let reverselist = this.newluyinList[this.toptextindex].message;
  1151. let runlist = reverselist.reverse();
  1152. runlist.forEach(item => {
  1153. this.dialogList[0].message.unshift(item)
  1154. })
  1155. }
  1156. }
  1157. },
  1158. // 取消全部加精
  1159. notappick() {
  1160. var that = this;
  1161. uni.showModal({
  1162. title: '提示',
  1163. content: '确认取消加精?',
  1164. success: function(res) {
  1165. if (res.confirm) {
  1166. console.log('用户点击确定');
  1167. uni.request({
  1168. url: config.service.delATD + "?carId=" + that.customerId + '&itemId=' +
  1169. that.buildingID,
  1170. method: "GET",
  1171. header: {
  1172. 'content-type': 'application/json',
  1173. 'Access-Token': uni.getStorageSync('weapp_session_login_data')
  1174. .token
  1175. },
  1176. success: (data) => {
  1177. if (data.data.code == 10000) {
  1178. that.status = 1
  1179. uni.showToast({
  1180. title: '取消成功',
  1181. duration: 2000
  1182. });
  1183. } else {
  1184. uni.showToast({
  1185. title: data.data.message,
  1186. duration: 2000
  1187. });
  1188. }
  1189. }
  1190. })
  1191. } else if (res.cancel) {
  1192. console.log('用户点击取消');
  1193. }
  1194. }
  1195. });
  1196. },
  1197. //全部加精
  1198. tappick(i) {
  1199. var that = this;
  1200. uni.showModal({
  1201. title: '提示',
  1202. content: '确认加精?',
  1203. success: function(res) {
  1204. if (res.confirm) {
  1205. console.log('用户点击确定');
  1206. let objdata = {
  1207. "carId": that.customerId, //客户id
  1208. "status": 0,
  1209. "itemId": that.buildingID,
  1210. }
  1211. uni.request({
  1212. url: config.service.addATD,
  1213. method: "POST",
  1214. header: {
  1215. 'content-type': 'application/json',
  1216. 'Access-Token': uni.getStorageSync('weapp_session_login_data')
  1217. .token
  1218. },
  1219. data: objdata,
  1220. success: (data) => {
  1221. if (data.data.code == 10000) {
  1222. that.status = 0
  1223. uni.showToast({
  1224. title: '加精成功',
  1225. duration: 2000
  1226. });
  1227. } else {
  1228. uni.showToast({
  1229. title: data.data.message,
  1230. duration: 2000
  1231. });
  1232. }
  1233. }
  1234. })
  1235. } else if (res.cancel) {
  1236. console.log('用户点击取消');
  1237. }
  1238. }
  1239. });
  1240. },
  1241. //标签选择
  1242. tapbiaoqianclisck(index) {
  1243. this.biaoqianindex = index;
  1244. this.biaoqianid = this.biaoqianlist[index].id
  1245. },
  1246. //复制
  1247. clickcopy() {
  1248. var that = this;
  1249. uni.setClipboardData({
  1250. data: that.thewrongword,
  1251. success: function() {
  1252. that.dialogList.forEach(res => {
  1253. res.message.forEach(asd => {
  1254. asd.isshow = false;
  1255. })
  1256. })
  1257. that.$forceUpdate();
  1258. console.log('success');
  1259. }
  1260. });
  1261. }, //确认加入常错词
  1262. Confirmtheexit() {
  1263. if (this.reswrongword.length > 8 || this.thewrongword.length > 8) {
  1264. this.$refs.uToast.show({
  1265. title: '正确词错误词不能超过8个字',
  1266. type: 'warning',
  1267. })
  1268. this.isshow2 = true;
  1269. } else {
  1270. let reg = /^[0-9]+$/
  1271. if (reg.test(this.thewrongword)) {
  1272. this.$refs.uToast.show({
  1273. title: '错误词不能为纯数字',
  1274. type: 'warning',
  1275. })
  1276. this.isshow2 = true;
  1277. } else {
  1278. if (this.thewrongword) {
  1279. if (this.reswrongword) {
  1280. let parames = {
  1281. customerId: this.customerId,
  1282. cupid: this.luyinList[this.csdFileindex].id,
  1283. wrongWord: this.thewrongword, //错误词
  1284. correctWord: this.reswrongword, //正确词
  1285. translateHtmlContent: this.messagelisy,
  1286. id: uni.getStorageSync('buildingID').id
  1287. }
  1288. this.isshow2 = false;
  1289. let sas = this.textItself.replace(this.thewrongword, this.reswrongword)
  1290. this.dialogList[this.argtextindex1].message[this.argtextindex2].onebest = sas
  1291. this.dialogList.forEach(res => {
  1292. res.message.forEach(asd => {
  1293. asd.isshow = false;
  1294. })
  1295. })
  1296. this.$u.post("/corpus/addCorrectWord", parames).then(data => {
  1297. this.thewrongword = "";
  1298. this.reswrongword = "";
  1299. })
  1300. } else {
  1301. this.$refs.uToast.show({
  1302. title: '正确值不能为空',
  1303. type: 'warning',
  1304. })
  1305. this.isshow2 = true;
  1306. return
  1307. }
  1308. } else {
  1309. this.$refs.uToast.show({
  1310. title: '错误词不能为空',
  1311. type: 'warning',
  1312. })
  1313. this.isshow2 = true;
  1314. return
  1315. }
  1316. }
  1317. }
  1318. },
  1319. //取消加入常错词
  1320. Cancelout() {
  1321. this.isshow2 = false;
  1322. this.dialogList.forEach(res => {
  1323. res.message.forEach(asd => {
  1324. asd.isshow = false;
  1325. })
  1326. })
  1327. },
  1328. //加入长错词
  1329. Oftenthewrongword() {
  1330. this.reswrongword = "";
  1331. this.isshow2 = true;
  1332. },
  1333. //加精华
  1334. Addtheessence() {
  1335. this.isshow3 = true;
  1336. this.biaoqianlist = []
  1337. let parames = {
  1338. "itemId": this.buildingID
  1339. }
  1340. this.$u.post("/addtodigest/findAllYi", parames).then(data => {
  1341. this.biaoqianlist = data
  1342. this.biaoqianlist.unshift({
  1343. name: "逼单话术",
  1344. id: 0
  1345. })
  1346. })
  1347. },
  1348. // 取消加精
  1349. Cancelout2() {
  1350. this.isshow3 = false;
  1351. this.dialogList.forEach(res => {
  1352. res.message.forEach(asd => {
  1353. asd.isshow = false;
  1354. })
  1355. })
  1356. },
  1357. // 确认加精
  1358. Confirmtheexit2() {
  1359. if (this.biaoqianid) {
  1360. this.biaoqianid = this.biaoqianid
  1361. } else {
  1362. this.biaoqianid = 0
  1363. }
  1364. this.isshow3 = false;
  1365. this.dialogList.forEach(res => {
  1366. res.message.forEach(asd => {
  1367. asd.isshow = false;
  1368. })
  1369. })
  1370. let objdata = {
  1371. "itemId": this.buildingID,
  1372. "carId": this.customerId, //客户id
  1373. "startTime": this.changanitem.bg, //开始时间
  1374. "startFile": this.duihuawenjianid, //对话所在录音文件id
  1375. "endTime": this.changanitem.ed, //结束时间
  1376. "marketingId": this.biaoqianid, //对应一级父id
  1377. "jjTransfer": this.changanitem.onebest, //选中对话
  1378. "status": 1
  1379. }
  1380. uni.request({
  1381. url: config.service.addATD,
  1382. method: "POST",
  1383. header: {
  1384. 'content-type': 'application/json',
  1385. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  1386. },
  1387. data: objdata,
  1388. success: (data) => {
  1389. if (data.data.code == 10000) {
  1390. uni.showToast({
  1391. title: '加精成功',
  1392. duration: 2000
  1393. });
  1394. } else {
  1395. uni.showToast({
  1396. title: data.data.message,
  1397. duration: 2000
  1398. });
  1399. }
  1400. }
  1401. })
  1402. },
  1403. //长按对话
  1404. changanxiaoguo(item, index, i) {
  1405. this.messagelisy = [];
  1406. this.changanitem = {};
  1407. this.duihuawenjianid = "",
  1408. this.dialogList.forEach(res => {
  1409. res.message.forEach(asd => {
  1410. asd.isshow = false;
  1411. })
  1412. })
  1413. this.changanitem = item;
  1414. this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
  1415. this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
  1416. this.textItself = item.onebest;
  1417. let onebest = item.onebest;
  1418. this.thewrongword = onebest.replace(/<.*?>/ig, "");
  1419. this.messagelisy = this.dialogList[i].message
  1420. this.argtextindex1 = i;
  1421. this.argtextindex2 = index;
  1422. },
  1423. //回到顶部
  1424. gotoTop() {
  1425. this.scrollId = null;
  1426. this.$nextTick(() => {
  1427. this.scrollId = "top";
  1428. })
  1429. },
  1430. //切换tab
  1431. changeTab(type) {
  1432. if (type == 0) {
  1433. this.tab = 0
  1434. } else {
  1435. this.tab = 1;
  1436. this.getRatelist();
  1437. }
  1438. },
  1439. //评分上下显隐
  1440. changeshow(item, type) {
  1441. item.show = !item.show;
  1442. },
  1443. changeshow2(item, type) {
  1444. item.show = !item.show;
  1445. },
  1446. getRatelist() {
  1447. this.$u.get("/customer/findzkMByCusId", {
  1448. cusId: this.customerId
  1449. }).then(res => {
  1450. if (res.length) {
  1451. let level1 = []
  1452. let level2rate = 0
  1453. res.forEach(item => {
  1454. if (item.pid == 0) {
  1455. level1.push({
  1456. id: item.marketingId,
  1457. rate: item.fraction,
  1458. name: item.name,
  1459. sort: item.sort,
  1460. show: false,
  1461. ratepercent: 0,
  1462. children: []
  1463. })
  1464. } else {
  1465. if (item.selected == 0) {
  1466. level2rate += item.fraction
  1467. }
  1468. }
  1469. })
  1470. this.totalRate = level2rate;
  1471. res.forEach(subitem => {
  1472. let subitempid = subitem.pid
  1473. level1.forEach(item => {
  1474. if (subitempid == item.id) {
  1475. if (subitem.selected == 0) {
  1476. item.ratepercent += subitem.fraction
  1477. }
  1478. item.children.push({
  1479. id: subitem.id,
  1480. rate: subitem.fraction,
  1481. selected: subitem.selected,
  1482. name: subitem.name,
  1483. show: false,
  1484. marketingId: subitem.marketingId,
  1485. children: []
  1486. })
  1487. }
  1488. })
  1489. })
  1490. res.forEach(subitem => {
  1491. let subitempid = subitem.pid
  1492. level1.forEach(chen => {
  1493. chen.children.forEach(zxc => {
  1494. if (subitempid == zxc.marketingId) {
  1495. zxc.children.push({
  1496. id: subitem.id,
  1497. rate: subitem.fraction,
  1498. selected: subitem.selected,
  1499. name: subitem.name,
  1500. marketingId: subitem.marketingId,
  1501. })
  1502. }
  1503. })
  1504. })
  1505. })
  1506. level1[0].show = true;
  1507. level1[0].children[0].show = true;
  1508. this.ratelist = level1
  1509. }
  1510. setTimeout(function() {
  1511. uni.hideLoading();
  1512. }, 1000);
  1513. })
  1514. },
  1515. //--------------------------------- 获取转义后的对话结果
  1516. getCorpusAnalysis(info) {
  1517. this.dialogList = [];
  1518. this.newluyinList = []
  1519. uni.request({
  1520. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  1521. "&bg=" + info.bg + "&speaker=" + this.roleindex + '&voFlag=0' +
  1522. '&num=50', //仅为示例,并非真实接口地址。
  1523. method: "GET",
  1524. header: {
  1525. 'content-type': 'application/json',
  1526. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  1527. },
  1528. success: (data) => {
  1529. this.isShowMark = data.data.data.viewNameFlag
  1530. this.tablist = [];
  1531. this.roleindexbiaoji = 0;
  1532. let jsonInfo = JSON.parse(data.data.data.audioContent);
  1533. for (var i = 0; i <= data.data.data.speakerNum; i++) {
  1534. if (i === 0) {
  1535. this.tablist.push({
  1536. name: '全部'
  1537. })
  1538. } else {
  1539. this.tablist.push({
  1540. name: String.fromCharCode(i + 64)
  1541. })
  1542. }
  1543. }
  1544. if (data.data.data.speaker == null) {
  1545. this.dshfkjsdkksodofydwfkhwdfkjh = 0;
  1546. } else {
  1547. if (data.data.data.viewNameFlag == 1) {
  1548. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  1549. .speaker].name;
  1550. } else {
  1551. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  1552. .speaker].name + "顾问";
  1553. }
  1554. this.roleindexbiaoji = data.data.data.speaker - 1;
  1555. this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
  1556. }
  1557. if (data.data.data.viewNameFlag == 1) {
  1558. let p = [{
  1559. name: '顾问'
  1560. }]
  1561. this.tablist = [...this.tablist, ...p]
  1562. this.isSw = true
  1563. } else {
  1564. this.isSw = false
  1565. }
  1566. this.speaker = data.data.data.speaker;
  1567. //上拉标记点
  1568. this.textindex = data.data.data.index;
  1569. //下拉标记点
  1570. this.toptextindex = data.data.data.index;
  1571. jsonInfo.forEach(item => {
  1572. item.message = JSON.parse(item.onebest)
  1573. item.backindex = this.csdFileindex;
  1574. if (info.onebest) {
  1575. item.message.forEach(che => {
  1576. if (che.onebest == info.onebest) {
  1577. che.onebest =
  1578. `<font style='color: red'>${che.onebest}</font>`;
  1579. }
  1580. })
  1581. }
  1582. })
  1583. this.newluyinList = jsonInfo;
  1584. console.log(this.newluyinList)
  1585. this.dialogList.push(jsonInfo[this.textindex]);
  1586. var itc = parseInt(info.bg / 1000)
  1587. this.adasdasdasd(itc)
  1588. }
  1589. })
  1590. },
  1591. getTime(time) {
  1592. return util.formatSecond(time)
  1593. },
  1594. //音频前进回退
  1595. sliderChangeComplate(currentTime) {
  1596. this.dialogList = []
  1597. for (let i = 0; i < this.newluyinList.length; i++) {
  1598. let message = this.newluyinList[i].message
  1599. if (!message) return
  1600. if (Math.floor(this.newluyinList[i].bg / 1000) <= currentTime && currentTime <= Math.floor(this
  1601. .newluyinList[i].ed / 1000)) {
  1602. for (let j = 0; j < message.length; j++) {
  1603. let item = message[j]
  1604. if (Math.floor(item.bg / 1000) <= currentTime && currentTime <= Math.floor(item.ed / 1000)) {
  1605. this.scrollId = "dialog" + this.csdFileindex + "text" + item.bg;
  1606. break;
  1607. }
  1608. if (j < message.length - 1 && Math.floor(item.ed / 1000) <= currentTime && currentTime <= Math
  1609. .floor(item.bg / 1000)) {
  1610. this.scrollId = "dialog" + this.csdFileindex + "text" + item.bg;
  1611. break;
  1612. }
  1613. }
  1614. this.textindex = i;
  1615. this.toptextindex = i;
  1616. this.dialogList.push(this.newluyinList[i])
  1617. }
  1618. }
  1619. },
  1620. //长按点击播放
  1621. clickbofang(dialog, item) {
  1622. this.dialogList.forEach(res => {
  1623. res.message.forEach(asd => {
  1624. asd.isshow = false;
  1625. })
  1626. })
  1627. this.$forceUpdate()
  1628. let platetime = item.bg;
  1629. let newtime = item.bg / 1000;
  1630. this.dialogList = []
  1631. uni.request({
  1632. url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  1633. "&bg=" + platetime || 0, //仅为示例,并非真实接口地址。
  1634. method: "GET",
  1635. header: {
  1636. 'content-type': 'application/json',
  1637. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  1638. },
  1639. success: (data) => {
  1640. this.textindex = data.data.data.index;
  1641. this.toptextindex = data.data.data.index;
  1642. this.dialogList.push(this.newluyinList[data.data.data.index])
  1643. console.log(newtime)
  1644. this.stepPlay(newtime);
  1645. }
  1646. })
  1647. },
  1648. formatTime(num) {
  1649. //格式化时间格式
  1650. num = num.toFixed(0);
  1651. let second = num % 60;
  1652. if (second < 10) second = '0' + second;
  1653. let min = Math.floor(num / 60);
  1654. if (min < 10) min = '0' + min;
  1655. return min + ":" + second;
  1656. },
  1657. changeEditing() {
  1658. this.dialogListres[0].message.forEach(asd => {
  1659. asd.isshow = false;
  1660. })
  1661. },
  1662. //录音实例
  1663. zyAudio() {
  1664. let data = [{
  1665. src: this.recordPath,
  1666. title: '录音音频',
  1667. singer: '',
  1668. coverImgUrl: ''
  1669. }]
  1670. this.$zaudio.setAudio(data)
  1671. //渲染第一首音频
  1672. this.$zaudio.setRender(0)
  1673. setTimeout(() => {
  1674. this.$zaudio.operate()
  1675. }, 150)
  1676. },
  1677. // 跳转指定位置播放
  1678. stepPlay(t) {
  1679. this.$zaudio.seek(t)
  1680. if (this.$zaudio.paused) {
  1681. this.$zaudio.operate()
  1682. }
  1683. }
  1684. },
  1685. }
  1686. </script>
  1687. <style lang="scss" scoped>
  1688. .box {
  1689. width: 100%;
  1690. height: 100vh;
  1691. display: flex;
  1692. flex-direction: column;
  1693. .pingfenbox {
  1694. width: 100%;
  1695. height: 60rpx;
  1696. line-height: 60rpx;
  1697. border-bottom: 1px solid #E0E0E0;
  1698. display: flex;
  1699. }
  1700. .pingfenbox view {
  1701. flex: 1;
  1702. text-align: center;
  1703. font-size: 28rpx;
  1704. text-indent: 20rpx;
  1705. }
  1706. .activecllasscet {
  1707. background: #2671E2;
  1708. color: #FFFFFF;
  1709. }
  1710. .title1-12 {
  1711. font-size: 28rpx;
  1712. color: #2671E2;
  1713. font-weight: 400;
  1714. text-indent: 30rpx;
  1715. margin-top: 18rpx;
  1716. }
  1717. .headbox {
  1718. width: 100%;
  1719. min-height: 173rpx;
  1720. border-bottom: 1px solid #E0E0E0;
  1721. }
  1722. .zhuti {
  1723. flex: 1;
  1724. overflow: auto;
  1725. }
  1726. .bottombox {
  1727. width: 100%;
  1728. height: 170rpx;
  1729. border-top: 1px solid #E0E0E0;
  1730. .bottomhead {
  1731. width: 100%;
  1732. height: 81rpx;
  1733. border-bottom: 1px solid #E0E0E0;
  1734. display: flex;
  1735. justify-content: space-between;
  1736. align-items: center;
  1737. .audio-slider {
  1738. width: 87%;
  1739. display: flex;
  1740. justify-content: space-between;
  1741. align-items: center;
  1742. padding-right: 30rpx;
  1743. }
  1744. .audio-slider .slider {
  1745. width: 100%;
  1746. padding: 0px 15rpx;
  1747. box-sizing: border-box;
  1748. }
  1749. .audio-time {
  1750. width: 110rpx;
  1751. text-align: right;
  1752. font-size: 26rpx;
  1753. line-height: 28rpx;
  1754. color: #70798D;
  1755. display: flex;
  1756. justify-content: space-between;
  1757. }
  1758. .audio-play {
  1759. width: 48rpx;
  1760. height: 48rpx;
  1761. flex-shrink: 0;
  1762. }
  1763. .audio-play .image {
  1764. width: 100%;
  1765. height: 100%;
  1766. margin-left: 30rpx;
  1767. }
  1768. }
  1769. .botbotmm {
  1770. width: 100%;
  1771. height: 88rpx;
  1772. display: flex;
  1773. align-items: center;
  1774. }
  1775. }
  1776. }
  1777. .headboxhead {
  1778. width: 100%;
  1779. height: 84rpx;
  1780. border-bottom: 1px solid #E0E0E0;
  1781. display: flex;
  1782. .boxhead1 {
  1783. width: 50%;
  1784. color: #303030;
  1785. height: 84rpx;
  1786. line-height: 84rpx;
  1787. font-size: 28rpx;
  1788. text-indent: 30rpx;
  1789. }
  1790. .boxhead2 {
  1791. width: 46%;
  1792. height: 84rpx;
  1793. text-align: right;
  1794. }
  1795. }
  1796. .boxhead2 image {
  1797. width: 36rpx;
  1798. height: 36rpx;
  1799. margin-top: 24rpx;
  1800. }
  1801. .headboxbott {
  1802. width: 100%;
  1803. height: 88rpx;
  1804. display: flex;
  1805. align-items: center;
  1806. .headovfu {
  1807. flex: 1;
  1808. height: 88rpx;
  1809. overflow: hidden;
  1810. }
  1811. .headpade {
  1812. width: 160rpx;
  1813. height: 60rpx;
  1814. display: flex;
  1815. justify-content: center;
  1816. align-items: center;
  1817. border-left: 1px solid #D6D6D6;
  1818. .biaoji {
  1819. min-width: 120rpx;
  1820. height: 48rpx;
  1821. background: #E6625B;
  1822. border-radius: 24rpx;
  1823. text-align: center;
  1824. line-height: 48rpx;
  1825. color: #FFFFFF;
  1826. font-size: 26rpx;
  1827. }
  1828. }
  1829. }
  1830. .fill {
  1831. width: 2rpx;
  1832. height: 41rpx;
  1833. background: #E0E0E0;
  1834. }
  1835. .tmmchen {
  1836. width: 25%;
  1837. height: 88rpx;
  1838. text-align: center;
  1839. color: #666666;
  1840. font-size: 18rpx;
  1841. position: relative;
  1842. .allimg {
  1843. position: absolute;
  1844. width: 168rpx;
  1845. top: -152rpx;
  1846. border: 1px solid #E0E0E0;
  1847. background: #FFFFFF;
  1848. font-size: 26rpx;
  1849. color: #333333;
  1850. text-align: center;
  1851. box-shadow: 10rpx 10rpx 5rpx #888888;
  1852. }
  1853. }
  1854. .tmmchen image {
  1855. width: 40rpx;
  1856. height: 40rpx;
  1857. margin-top: 10rpx;
  1858. margin-bottom: 2rpx;
  1859. }
  1860. .zhezhoa {
  1861. position: fixed;
  1862. top: 0;
  1863. left: 0;
  1864. z-index: 999;
  1865. width: 100%;
  1866. height: 100vh;
  1867. opacity: 0.5;
  1868. background-color: #666666;
  1869. }
  1870. .followingpop-up {
  1871. width: 100%;
  1872. height: 75vh;
  1873. background: #FFFFFF;
  1874. position: fixed;
  1875. background: #FFFFFF;
  1876. left: 0px;
  1877. bottom: 0px;
  1878. z-index: 1000;
  1879. display: flex;
  1880. flex-direction: column;
  1881. // position: absolute;
  1882. .calibration {
  1883. width: 90rpx;
  1884. height: 90rpx;
  1885. background: #2671E2;
  1886. text-align: center;
  1887. line-height: 90rpx;
  1888. border-radius: 50%;
  1889. color: #FFFFFF;
  1890. position: absolute;
  1891. right: 30rpx;
  1892. bottom: 100rpx;
  1893. }
  1894. .guanbibox {
  1895. width: 100%;
  1896. padding-bottom: 20rpx;
  1897. margin-top: 20rpx;
  1898. border-bottom: 1px solid #E0E0E0;
  1899. position: relative;
  1900. .guanbixen {
  1901. width: 30rpx;
  1902. height: 30rpx;
  1903. position: absolute;
  1904. right: 30rpx;
  1905. top: 6rpx;
  1906. }
  1907. .cenisboxtab {
  1908. width: 100%;
  1909. display: flex;
  1910. .cenisboxtabview {
  1911. flex: 1;
  1912. display: flex;
  1913. align-items: center;
  1914. justify-content: center;
  1915. color: #333333;
  1916. font-size: 30rpx;
  1917. font-weight: 600;
  1918. }
  1919. }
  1920. }
  1921. .cenisbox {
  1922. flex: 1;
  1923. overflow: auto;
  1924. .jianbox {
  1925. width: 100%;
  1926. border-bottom: 1px solid #E0E0E0;
  1927. padding-top: 24rpx;
  1928. padding-bottom: 24rpx;
  1929. .jianbox-cen {
  1930. width: 100%;
  1931. height: 78rpx;
  1932. // border-bottom: 1px solid #E0E0E0;
  1933. display: flex;
  1934. .jianboxtext {
  1935. flex: 1;
  1936. height: 100%;
  1937. font-size: 30rpx;
  1938. font-weight: 600;
  1939. line-height: 78rpx;
  1940. color: #333333;
  1941. text-indent: 30rpx;
  1942. }
  1943. .jianboxjian {
  1944. width: 80rpx;
  1945. height: 100%;
  1946. line-height: 78rpx;
  1947. text-align: center;
  1948. }
  1949. }
  1950. .bioqianwayl {
  1951. width: 690rpx;
  1952. margin: 0 auto;
  1953. display: flex;
  1954. flex-wrap: wrap;
  1955. }
  1956. .bioqianwayl view {
  1957. padding-left: 24rpx;
  1958. padding-right: 24rpx;
  1959. padding-top: 10rpx;
  1960. padding-bottom: 10rpx;
  1961. margin-right: 24rpx;
  1962. margin-top: 20rpx;
  1963. border-radius: 8rpx;
  1964. font-size: 26rpx;
  1965. }
  1966. }
  1967. }
  1968. }
  1969. .jiantop {
  1970. width: 14rpx;
  1971. height: 24rpx;
  1972. }
  1973. .jiantop1 {
  1974. width: 20rpx;
  1975. height: 14rpx;
  1976. }
  1977. .sdfsaf {
  1978. padding-left: 24rpx;
  1979. padding-right: 24rpx;
  1980. padding-top: 10rpx;
  1981. padding-bottom: 10rpx;
  1982. border-radius: 8rpx;
  1983. font-size: 26rpx;
  1984. }
  1985. .yixingindexclass {
  1986. border-bottom: 3px solid #2671E2;
  1987. }
  1988. .cenisboxdspl {
  1989. width: 94%;
  1990. margin: 0 auto;
  1991. padding-bottom: 24rpx;
  1992. display: flex;
  1993. flex-wrap: wrap;
  1994. .cenisboxdsplview {
  1995. padding-left: 24rpx;
  1996. padding-right: 24rpx;
  1997. padding-top: 10rpx;
  1998. padding-bottom: 10rpx;
  1999. background: #F4F8FD;
  2000. color: #2671E2;
  2001. font-size: 26rpx;
  2002. margin-right: 24rpx;
  2003. margin-top: 24rpx;
  2004. }
  2005. }
  2006. .bounced {
  2007. width: 570upx;
  2008. background: #FFFFFF;
  2009. z-index: 1000;
  2010. border-radius: 10upx;
  2011. position: fixed;
  2012. left: 50%;
  2013. top: 50%;
  2014. transform: translate(-50%, -50%);
  2015. .headpade {
  2016. margin-top: 10rpx;
  2017. padding: 8rpx 8rpx 8rpx 8rpx;
  2018. background: #108ee9;
  2019. color: #fff;
  2020. border-radius: 16rpx;
  2021. }
  2022. /* 50%为自身尺寸的一半 */
  2023. .jiajinghuatit {
  2024. width: 100%;
  2025. height: 68rpx;
  2026. font-size: 30rpx;
  2027. text-align: center;
  2028. line-height: 68rpx;
  2029. }
  2030. .jiajinghuaview {
  2031. padding: 18rpx 18rpx 18rpx 18rpx;
  2032. display: flex;
  2033. flex-wrap: wrap;
  2034. .jiajinghuaview1 {
  2035. padding: 8rpx 8rpx 8rpx 8rpx;
  2036. font-size: 26rpx;
  2037. border-radius: 12rpx;
  2038. border: 1px solid #979797;
  2039. margin-left: 8rpx;
  2040. }
  2041. .jighuaview2 {
  2042. padding: 8rpx 18rpx 8rpx 18rpx;
  2043. font-size: 26rpx;
  2044. border-radius: 12rpx;
  2045. border: 1px solid #979797;
  2046. margin-left: 20rpx;
  2047. margin-top: 10rpx;
  2048. display: flex;
  2049. .view1-text {
  2050. text-align: center;
  2051. }
  2052. .view1-img {
  2053. width: 50rpx;
  2054. }
  2055. }
  2056. }
  2057. .bounced3 {
  2058. height: 100upx;
  2059. width: 100%;
  2060. margin-top: 40upx;
  2061. border-top: 1px solid #dddddd;
  2062. display: flex;
  2063. }
  2064. .bounced3-1 {
  2065. width: 50%;
  2066. height: 100%;
  2067. text-align: center;
  2068. line-height: 100upx;
  2069. border-right: 1px solid #dddddd;
  2070. font-size: 36upx;
  2071. color: #999999;
  2072. }
  2073. .bounced3-2 {
  2074. width: 50%;
  2075. height: 100%;
  2076. text-align: center;
  2077. line-height: 100upx;
  2078. font-size: 36upx;
  2079. color: #108ee9;
  2080. }
  2081. }
  2082. .viewclace {
  2083. width: 100rpx;
  2084. height: 40rpx;
  2085. text-align: center;
  2086. line-height: 40rpx;
  2087. border-radius: 14rpx;
  2088. margin-right: 34rpx;
  2089. margin-top: 16rpx;
  2090. font-size: 24rpx;
  2091. }
  2092. .bosdttom {
  2093. color: #FFFFFF;
  2094. background-color: #2671E2;
  2095. }
  2096. .dialog-block {
  2097. margin: 20rpx 0;
  2098. border-bottom: 1px solid #ccc;
  2099. .fileName {
  2100. text-align: center;
  2101. margin: 10rpx auto;
  2102. width: 115rpx;
  2103. height: 42rpx;
  2104. line-height: 42rpx;
  2105. background: #EFEFEF;
  2106. border-radius: 4rpx;
  2107. font-size: 20rpx;
  2108. font-weight: 400;
  2109. color: #333333;
  2110. }
  2111. }
  2112. .scroll-Y {
  2113. font-size: 36upx;
  2114. color: #999999;
  2115. background: #FFFFFF;
  2116. margin-top: 30upx;
  2117. flex: 1;
  2118. overflow-y: scroll;
  2119. width: 100%;
  2120. }
  2121. .scroll-Y .text {
  2122. margin: 50upx 30upx;
  2123. line-height: 80upx;
  2124. display: flex;
  2125. align-items: center;
  2126. }
  2127. .scroll-Y .text[data-speaker="2"],
  2128. .scroll-Y .text[data-speaker="4"],
  2129. .scroll-Y .text[data-speaker="6"] {
  2130. flex-direction: row-reverse;
  2131. text-align: right;
  2132. .contentInfo {
  2133. .info {
  2134. color: #ccc;
  2135. font-size: 18rpx;
  2136. font-size: 30rpx;
  2137. padding: 0 28rpx;
  2138. }
  2139. .contentMain {
  2140. display: flex;
  2141. flex-direction: row-reverse;
  2142. align-items: center;
  2143. .content {
  2144. margin-left: 0;
  2145. margin-right: 30upx;
  2146. }
  2147. .play {
  2148. width: 50rpx;
  2149. height: 50rpx;
  2150. margin-right: 20rpx;
  2151. }
  2152. }
  2153. }
  2154. }
  2155. .scroll-Y .text[data-speaker="2"],
  2156. .scroll-Y .text[data-speaker="4"],
  2157. .scroll-Y .text[data-speaker="6"] {
  2158. .contentInfo {
  2159. .info {
  2160. .AudioUserName {
  2161. margin-left: 10rpx;
  2162. }
  2163. display: flex;
  2164. flex-direction: row-reverse;
  2165. }
  2166. }
  2167. }
  2168. .scroll-Y .text {
  2169. .contentInfo {
  2170. .info {
  2171. .AudioUserName {
  2172. margin-right: 10rpx;
  2173. }
  2174. }
  2175. }
  2176. }
  2177. .scroll-Y .text .avatar {
  2178. margin-top: 80rpx;
  2179. width: 64upx;
  2180. height: 64upx;
  2181. line-height: 64upx;
  2182. text-align: center;
  2183. font-size: 36rpx;
  2184. border-radius: 50%;
  2185. background: #F2F2F2;
  2186. color: #008EF2;
  2187. image {
  2188. width: 40upx;
  2189. }
  2190. }
  2191. .scroll-Y .text .contentInfo .info {
  2192. color: #ccc;
  2193. font-size: 18rpx;
  2194. font-size: 30rpx;
  2195. padding: 0 28rpx;
  2196. }
  2197. .scroll-Y .text .contentInfo .contentMain {
  2198. display: flex;
  2199. align-items: center;
  2200. }
  2201. .scroll-Y .text .contentInfo .contentMain .content {
  2202. margin-left: 30upx;
  2203. line-height: 60rpx;
  2204. text-align: left;
  2205. padding: 0 5px;
  2206. border-radius: 8upx;
  2207. max-width: 442rpx;
  2208. background: #F6F6F6;
  2209. color: #999999;
  2210. position: relative;
  2211. .tankuangcss {
  2212. position: absolute;
  2213. top: -140rpx;
  2214. left: -120rpx;
  2215. width: 308rpx;
  2216. height: 130rpx;
  2217. background-color: #333333;
  2218. font-size: 24rpx;
  2219. color: #FFFFFF;
  2220. padding-top: 4rpx;
  2221. padding-bottom: 4rpx;
  2222. display: flex;
  2223. flex-wrap: wrap;
  2224. border-radius: 15rpx;
  2225. z-index: 1000;
  2226. }
  2227. .bottoms {
  2228. top: unset;
  2229. bottom: -140rpx;
  2230. }
  2231. }
  2232. .scroll-Y .text .contentInfo .contentMain .play {
  2233. width: 50rpx;
  2234. height: 50rpx;
  2235. margin-left: 20rpx;
  2236. }
  2237. .backTop {
  2238. width: 60upx;
  2239. height: 60upx;
  2240. background: rgba(211, 235, 253, 1);
  2241. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  2242. border-radius: 50%;
  2243. position: fixed;
  2244. bottom: 200upx;
  2245. right: 8upx;
  2246. display: flex;
  2247. justify-content: center;
  2248. align-items: center;
  2249. image {
  2250. width: 26upx;
  2251. height: 34upx;
  2252. }
  2253. }
  2254. .jiangshang {
  2255. color: #fff;
  2256. background: #2671E2;
  2257. }
  2258. .jiangshang1 {
  2259. color: #FFFFFF;
  2260. background: #999999;
  2261. }
  2262. // 表单
  2263. .tian-view {
  2264. width: 570upx;
  2265. background-color: #FFFFFF;
  2266. border-bottom: 1px solid #ededee;
  2267. display: flex;
  2268. min-height: 96rpx;
  2269. .tian-view-t1 {
  2270. width: 20rpx;
  2271. font-size: 34rpx;
  2272. height: 34rpx;
  2273. line-height: 110rpx;
  2274. letter-spacing: 0px;
  2275. color: red;
  2276. }
  2277. .tian-view-t2 {
  2278. width: 30%;
  2279. min-height: 96rpx;
  2280. line-height: 96rpx;
  2281. font-size: 34rpx;
  2282. color: #333;
  2283. }
  2284. .tian-view-t3 {
  2285. width: 61%;
  2286. padding-top: 31rpx;
  2287. padding-bottom: 31rpx;
  2288. display: flex;
  2289. .tian-input {
  2290. width: 98%;
  2291. font-size: 34rpx;
  2292. border: none;
  2293. }
  2294. }
  2295. }
  2296. .inputbox {
  2297. width: 100%;
  2298. height: 100rpx;
  2299. display: flex;
  2300. align-items: center;
  2301. justify-content: center;
  2302. border-bottom: 1px solid #E0E0E0;
  2303. .thisinput {
  2304. width: 94%;
  2305. height: 52rpx;
  2306. background: #FFFFFF;
  2307. border-radius: 8rpx;
  2308. border: 1px solid #C9C9C9;
  2309. color: #333333;
  2310. font-size: 26rpx;
  2311. text-indent: 26rpx;
  2312. line-height: 52rpx;
  2313. }
  2314. }
  2315. .biaoqiantom {
  2316. background-color: #008EF2;
  2317. color: #FFFFFF;
  2318. border: none;
  2319. }
  2320. .Level-box {
  2321. padding-bottom: 2rpx;
  2322. .hhhbox {
  2323. width: 100%;
  2324. padding-left: 30rpx;
  2325. padding-right: 30rpx;
  2326. border-bottom: 1rpx solid #E0E0E0;
  2327. background: #FFFFFF;
  2328. // padding-bottom: 32rpx;
  2329. .hsnrtest {
  2330. height: 24rpx;
  2331. font-size: 24rpx;
  2332. font-weight: 400;
  2333. color: #666666;
  2334. line-height: 24rpx;
  2335. }
  2336. .Level3che {
  2337. width: 100%;
  2338. height: 28rpx;
  2339. display: flex;
  2340. line-height: 28rpx;
  2341. align-items: center;
  2342. margin-top: 30rpx;
  2343. .title1 {
  2344. flex: 1;
  2345. font-size: 28rpx;
  2346. color: #2671E2;
  2347. font-weight: 400;
  2348. }
  2349. .jiantobox {
  2350. width: 30rpx;
  2351. height: 30rpx;
  2352. display: flex;
  2353. align-items: center;
  2354. .arrow {
  2355. width: 28rpx;
  2356. height: 28rpx;
  2357. }
  2358. }
  2359. }
  2360. }
  2361. .Level2che {
  2362. width: 100%;
  2363. height: 88rpx;
  2364. display: flex;
  2365. line-height: 88rpx;
  2366. align-items: center;
  2367. .title1 {
  2368. flex: 2;
  2369. font-size: 28rpx;
  2370. color: #333333;
  2371. font-weight: 400;
  2372. }
  2373. .leve1-jindu {
  2374. flex: 3;
  2375. display: flex;
  2376. justify-content: center;
  2377. align-items: center;
  2378. .zhixing {
  2379. width: 108rpx;
  2380. height: 44rpx;
  2381. background: #2671E2;
  2382. border-radius: 4rpx;
  2383. font-size: 28rpx;
  2384. text-align: center;
  2385. line-height: 44rpx;
  2386. color: #FFFFFF;
  2387. }
  2388. .zhixing2 {
  2389. width: 108rpx;
  2390. height: 44rpx;
  2391. background: #F8F8F8;
  2392. border-radius: 4rpx;
  2393. font-size: 28rpx;
  2394. text-align: center;
  2395. line-height: 44rpx;
  2396. color: #999999;
  2397. }
  2398. }
  2399. .jiantobox {
  2400. width: 30rpx;
  2401. height: 30rpx;
  2402. display: flex;
  2403. align-items: center;
  2404. .arrow {
  2405. width: 30rpx;
  2406. height: 18rpx;
  2407. }
  2408. }
  2409. }
  2410. .Level1che {
  2411. width: 100%;
  2412. height: 94rpx;
  2413. background: #F5F5F5;
  2414. display: flex;
  2415. line-height: 94rpx;
  2416. align-items: center;
  2417. padding-left: 30rpx;
  2418. padding-right: 30rpx;
  2419. .title1 {
  2420. flex: 2;
  2421. font-size: 30rpx;
  2422. color: #333333;
  2423. font-weight: 400;
  2424. }
  2425. .leve1-jindu {
  2426. flex: 3;
  2427. .jindutiao {
  2428. width: 96%;
  2429. height: 28rpx;
  2430. background: #D5EEE2;
  2431. line-height: 28rpx;
  2432. border-radius: 14rpx;
  2433. position: relative;
  2434. .huanxing {
  2435. height: 100%;
  2436. background: #4FC78F;
  2437. border-radius: 14rpx;
  2438. }
  2439. .text {
  2440. position: absolute;
  2441. top: 0rpx;
  2442. right: 0rpx;
  2443. font-size: 28rpx;
  2444. font-weight: 400;
  2445. color: #333333;
  2446. }
  2447. }
  2448. }
  2449. .jiantobox {
  2450. width: 30rpx;
  2451. height: 30rpx;
  2452. display: flex;
  2453. align-items: center;
  2454. .arrow {
  2455. width: 30rpx;
  2456. height: 18rpx;
  2457. }
  2458. }
  2459. }
  2460. }
  2461. .rotatearrow {
  2462. transform: rotate(270deg);
  2463. }
  2464. .ffectivetext {
  2465. width: 85%;
  2466. margin: 10rpx auto;
  2467. height: 100rpx;
  2468. padding: 20rpx;
  2469. border: 1rpx solid #E4F0FF;
  2470. }
  2471. /deep/ .u-model-title{
  2472. padding: 34rpx 0 16rpx !important;
  2473. }
  2474. .scroll-Y .text.active .content {
  2475. color: #FF7538 !important;
  2476. position: relative;
  2477. }
  2478. .scroll-Y .text.active[data-speaker] .content,
  2479. .scroll-Y .text.active[data-speaker="2"] .content,
  2480. .scroll-Y .text.active[data-speaker="4"] .content,
  2481. .scroll-Y .text.active[data-speaker="6"] .content {
  2482. color: #FF7538 !important;
  2483. position: relative;
  2484. }
  2485. .scroll-Y .isGreen .contentInfo .contentMain .content {
  2486. background: #2BC805 !important;
  2487. color: #FFFFFF;
  2488. }
  2489. </style>