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.
 
 
 
 

3551 lines
89 KiB

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