Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

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