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.
 
 
 
 

3618 lines
90 KiB

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