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

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