25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

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