AI销管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

3457 lines
86 KiB

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