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.
 
 
 

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