Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

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