AI销管
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

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