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

3364 lines
86 KiB

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