AI销管
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

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