AI销管
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

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