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.
 
 
 

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