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.
 
 
 

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