Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

3036 строки
80 KiB

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