AI销管
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

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