No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

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