You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

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