Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

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