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.
 
 
 

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