You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

3300 lines
85 KiB

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