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.
 
 
 

3119 lines
81 KiB

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