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

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