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.
 
 
 
 

3529 lines
89 KiB

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