Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

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