Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

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