AI销管
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

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