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.
 
 
 

2652 lines
71 KiB

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