AI销管
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.
 
 
 
 

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