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.
 
 
 
 

3430 lines
86 KiB

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