No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

3229 líneas
83 KiB

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