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.
 
 
 
 

2903 regels
71 KiB

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