Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

2525 Zeilen
71 KiB

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