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

2992 line
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. // 将数据筛选出来并排序并且翻转数据让后端获取第一条加精的数据在分点加精的学习列表使用
  1622. this.dialogList.forEach(items => {
  1623. if (items.message && items.message.length > 0) {
  1624. items.message.forEach(item => {
  1625. if (item.checked) {
  1626. objdata.toDigestList.push({
  1627. jjTransfer: item.onebest,
  1628. startTime: item.bg,
  1629. endTime: item.ed,
  1630. })
  1631. }
  1632. })
  1633. }
  1634. })
  1635. objdata.toDigestList.sort((a, b) => { return Number(a.startTime) - Number(b.startTime)}).reverse()
  1636. this.isshow3 = false;
  1637. this.$u.post(config.service.addATD, objdata).then(res => {
  1638. console.log(res)
  1639. if (res) {
  1640. uni.showToast({
  1641. title: '加精成功',
  1642. duration: 2000
  1643. });
  1644. } else {
  1645. uni.showToast({
  1646. title: '加精失败',
  1647. duration: 2000
  1648. });
  1649. }
  1650. this.cancelAllAdd()
  1651. }).catch(e => {
  1652. uni.showToast({
  1653. title: '网络异常,请稍候重试~',
  1654. duration: 2000
  1655. });
  1656. this.cancelAllAdd()
  1657. })
  1658. },
  1659. //长按对话
  1660. changanxiaoguo(item, index, i) {
  1661. this.messagelisy = [];
  1662. this.changanitem = {};
  1663. this.duihuawenjianid = "";
  1664. this.cancelBeast()
  1665. this.changanitem = item;
  1666. this.duihuawenjianid = this.luyinList[this.csdFileindex].id;
  1667. this.dialogList[i].message[index].isshow = !this.dialogList[i].message[index].isshow;
  1668. this.textItself = item.onebest;
  1669. let onebest = item.onebest;
  1670. this.thewrongword = onebest.replace(/<.*?>/ig, "");
  1671. this.messagelisy = this.dialogList[i].message
  1672. this.argtextindex1 = i;
  1673. this.argtextindex2 = index;
  1674. },
  1675. //回到顶部
  1676. gotoTop() {
  1677. this.scrollId = null;
  1678. this.$nextTick(() => {
  1679. this.scrollId = "top";
  1680. })
  1681. },
  1682. // 客户详情需求挖掘话术
  1683. getfindKeyWordsBycusId() {
  1684. this.$u.get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId).then(res => {
  1685. // console.log(res)
  1686. if (res.length) {
  1687. // this.KeyWordsfraction = 0
  1688. res.forEach(item => {
  1689. // if(item.selected==0){
  1690. // this.KeyWordsfraction += +item.fraction // 总执行率
  1691. // }
  1692. item.show = false
  1693. item.children.forEach(obj => {
  1694. obj.show = false
  1695. if (obj.questionList.length) {
  1696. obj.questionList.forEach(subobj => {
  1697. subobj.show = false
  1698. })
  1699. }
  1700. })
  1701. if (item.questionList.length) {
  1702. item.questionList.forEach(obj => {
  1703. obj.show = false
  1704. })
  1705. }
  1706. })
  1707. this.KeyWordsfractionList = res
  1708. } else {
  1709. this.KeyWordsfractionList = []
  1710. }
  1711. })
  1712. },
  1713. getRatelist() {
  1714. this.$u.get("/customer/findzkMByCusId", {
  1715. cusId: this.customerId
  1716. }).then(res => {
  1717. if (res.length) {
  1718. let level1 = []
  1719. let level2rate = 0
  1720. res.forEach(item => {
  1721. if (item.pid == 0) {
  1722. level1.push({
  1723. id: item.marketingId,
  1724. rate: item.fraction,
  1725. name: item.name,
  1726. sort: item.sort,
  1727. show: false,
  1728. ratepercent: 0,
  1729. children: [],
  1730. viewFlag: item.viewFlag
  1731. })
  1732. } else {
  1733. if (item.selected == 0) {
  1734. level2rate += item.fraction
  1735. }
  1736. }
  1737. })
  1738. this.totalRate = level2rate;
  1739. res.forEach(subitem => {
  1740. let subitempid = subitem.pid
  1741. level1.forEach(item => {
  1742. if (subitempid == item.id) {
  1743. if (subitem.selected == 0) {
  1744. item.ratepercent += subitem.fraction
  1745. }
  1746. item.children.push({
  1747. id: subitem.id,
  1748. rate: subitem.fraction,
  1749. selected: subitem.selected,
  1750. name: subitem.name,
  1751. show: false,
  1752. marketingId: subitem.marketingId,
  1753. children: [],
  1754. viewFlag: subitem.viewFlag,
  1755. })
  1756. }
  1757. })
  1758. })
  1759. res.forEach(subitem => {
  1760. let subitempid = subitem.pid
  1761. level1.forEach(chen => {
  1762. chen.children.forEach(zxc => {
  1763. if (subitempid == zxc.marketingId) {
  1764. zxc.children.push({
  1765. id: subitem.id,
  1766. rate: subitem.fraction,
  1767. selected: subitem.selected,
  1768. name: subitem.name,
  1769. marketingId: subitem.marketingId,
  1770. viewFlag: subitem.viewFlag,
  1771. })
  1772. }
  1773. })
  1774. })
  1775. })
  1776. level1[0].show = true;
  1777. level1[0].children[0].show = true;
  1778. this.ratelist = level1
  1779. }
  1780. setTimeout(function() {
  1781. uni.hideLoading();
  1782. }, 1000);
  1783. })
  1784. },
  1785. //--------------------------------- 获取转义后的对话结果
  1786. getCorpusAnalysis(info) {
  1787. this.dialogList = [];
  1788. this.newluyinList = []
  1789. uni.request({
  1790. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  1791. "&bg=" + info.bg + "&speaker=" + this.roleindex + '&voFlag=0' + '&num=50', //仅为示例,并非真实接口地址。
  1792. method: "GET",
  1793. header: {
  1794. 'content-type': 'application/json',
  1795. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  1796. },
  1797. success: (data) => {
  1798. this.LOADING = false
  1799. this.tablist = [];
  1800. this.roleindexbiaoji = 0;
  1801. let jsonInfo = JSON.parse(data.data.data.audioContent);
  1802. this.creatTabList(data.data.data.speakerNum)
  1803. this.tablist[0].select = true // 默认选中第一个
  1804. if (data.data.data.speaker == null) {
  1805. this.dshfkjsdkksodofydwfkhwdfkjh = 0;
  1806. } else {
  1807. if (data.data.data.viewNameFlag != 1) {
  1808. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  1809. .speaker].name + "顾问";
  1810. }
  1811. this.roleindexbiaoji = data.data.data.speaker - 1;
  1812. this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
  1813. }
  1814. //上拉标记点
  1815. this.textindex = data.data.data.index;
  1816. //下拉标记点
  1817. this.toptextindex = data.data.data.index;
  1818. jsonInfo.forEach(item => {
  1819. item.message = JSON.parse(item.onebest)
  1820. item.backindex = this.csdFileindex;
  1821. item.message.forEach(che => {
  1822. che.checked = false
  1823. if (che.onebest == info.onebest) {
  1824. che.onebest =
  1825. `<font style='color: red'>${che.onebest}</font>`;
  1826. }
  1827. })
  1828. })
  1829. this.newluyinList = jsonInfo;
  1830. console.log(this.newluyinList)
  1831. this.dialogList.push(jsonInfo[this.textindex]);
  1832. var itc = parseInt(info.bg / 1000)
  1833. this.adasdasdasd(itc)
  1834. },
  1835. fail: () => {
  1836. this.LOADING = false
  1837. }
  1838. })
  1839. },
  1840. getTime(time) {
  1841. return util.formatSecond(time)
  1842. },
  1843. //音频前进回退
  1844. sliderChangeComplate(currentTime) {
  1845. this.dialogList = []
  1846. for (let i = 0; i < this.newluyinList.length; i++) {
  1847. let message = this.newluyinList[i].message
  1848. if (!message) return
  1849. if (Math.floor(this.newluyinList[i].bg / 1000) <= currentTime && currentTime <= Math.floor(this
  1850. .newluyinList[i].ed / 1000)) {
  1851. for (let j = 0; j < message.length; j++) {
  1852. let item = message[j]
  1853. if (Math.floor(item.bg / 1000) <= currentTime && currentTime <= Math.floor(item.ed / 1000)) {
  1854. this.scrollId = "dialog" + this.csdFileindex + "text" + item.bg;
  1855. break;
  1856. }
  1857. if (j < message.length - 1 && Math.floor(item.ed / 1000) <= currentTime && currentTime <= Math
  1858. .floor(item.bg / 1000)) {
  1859. this.scrollId = "dialog" + this.csdFileindex + "text" + item.bg;
  1860. break;
  1861. }
  1862. }
  1863. this.textindex = i;
  1864. this.toptextindex = i;
  1865. this.dialogList.push(this.newluyinList[i])
  1866. }
  1867. }
  1868. },
  1869. //长按点击播放
  1870. clickbofang(dialog, item) {
  1871. this.cancelBeast()
  1872. this.$forceUpdate()
  1873. let platetime = item.bg;
  1874. let newtime = item.bg / 1000;
  1875. this.dialogList = []
  1876. uni.request({
  1877. url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  1878. "&bg=" + platetime || 0, //仅为示例,并非真实接口地址。
  1879. method: "GET",
  1880. header: {
  1881. 'content-type': 'application/json',
  1882. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  1883. },
  1884. success: (data) => {
  1885. this.textindex = data.data.data.index;
  1886. this.toptextindex = data.data.data.index;
  1887. this.dialogList.push(this.newluyinList[data.data.data.index])
  1888. console.log(newtime)
  1889. this.stepPlay(newtime);
  1890. }
  1891. })
  1892. },
  1893. formatTime(num) {
  1894. //格式化时间格式
  1895. num = num.toFixed(0);
  1896. let second = num % 60;
  1897. if (second < 10) second = '0' + second;
  1898. let min = Math.floor(num / 60);
  1899. if (min < 10) min = '0' + min;
  1900. return min + ":" + second;
  1901. },
  1902. changeEditing() {
  1903. this.dialogListres[0].message.forEach(asd => {
  1904. asd.isshow = false;
  1905. })
  1906. },
  1907. //录音实例
  1908. zyAudio() {
  1909. let data = [{
  1910. src: this.recordPath,
  1911. title: '录音音频',
  1912. singer: '',
  1913. coverImgUrl: ''
  1914. }]
  1915. this.$zaudio.setAudio(data)
  1916. //渲染第一首音频
  1917. this.$zaudio.setRender(0)
  1918. setTimeout(() => {
  1919. this.$zaudio.operate()
  1920. }, 150)
  1921. },
  1922. // 跳转指定位置播放
  1923. stepPlay(t) {
  1924. this.$zaudio.seek(t)
  1925. if (this.$zaudio.paused) {
  1926. this.$zaudio.operate()
  1927. }
  1928. }
  1929. },
  1930. }
  1931. </script>
  1932. <style lang="scss" scoped>
  1933. .box {
  1934. width: 100%;
  1935. height: 100vh;
  1936. display: flex;
  1937. flex-direction: column;
  1938. .pingfenbox {
  1939. width: 100%;
  1940. height: 60rpx;
  1941. line-height: 60rpx;
  1942. border-bottom: 1px solid #E0E0E0;
  1943. display: flex;
  1944. }
  1945. .pingfenbox view {
  1946. flex: 1;
  1947. text-align: center;
  1948. font-size: 28rpx;
  1949. text-indent: 20rpx;
  1950. }
  1951. .activecllasscet {
  1952. background: #2671E2;
  1953. color: #FFFFFF;
  1954. }
  1955. .title1-12 {
  1956. font-size: 28rpx;
  1957. color: #2671E2;
  1958. font-weight: 400;
  1959. text-indent: 30rpx;
  1960. margin-top: 18rpx;
  1961. }
  1962. .headbox {
  1963. width: 100%;
  1964. min-height: 173rpx;
  1965. border-bottom: 1px solid #E0E0E0;
  1966. }
  1967. .zhuti {
  1968. flex: 1;
  1969. overflow: auto;
  1970. }
  1971. .bottombox {
  1972. width: 100%;
  1973. height: 170rpx;
  1974. border-top: 1px solid #E0E0E0;
  1975. .bottomhead {
  1976. width: 100%;
  1977. height: 81rpx;
  1978. border-bottom: 1px solid #E0E0E0;
  1979. display: flex;
  1980. justify-content: space-between;
  1981. align-items: center;
  1982. .audio-slider {
  1983. width: 87%;
  1984. display: flex;
  1985. justify-content: space-between;
  1986. align-items: center;
  1987. padding-right: 30rpx;
  1988. }
  1989. .audio-slider .slider {
  1990. width: 100%;
  1991. padding: 0px 15rpx;
  1992. box-sizing: border-box;
  1993. }
  1994. .audio-time {
  1995. width: 110rpx;
  1996. text-align: right;
  1997. font-size: 26rpx;
  1998. line-height: 28rpx;
  1999. color: #70798D;
  2000. display: flex;
  2001. justify-content: space-between;
  2002. }
  2003. .audio-play {
  2004. width: 48rpx;
  2005. height: 48rpx;
  2006. flex-shrink: 0;
  2007. }
  2008. .audio-play .image {
  2009. width: 100%;
  2010. height: 100%;
  2011. margin-left: 30rpx;
  2012. }
  2013. }
  2014. .botbotmm {
  2015. width: 100%;
  2016. height: 88rpx;
  2017. display: flex;
  2018. align-items: center;
  2019. }
  2020. }
  2021. .bottomboxs {
  2022. width: 100%;
  2023. height: 90rpx;
  2024. display: flex;
  2025. justify-content: space-around;
  2026. .bottomboxs-item {
  2027. width: 45%;
  2028. height: 100%;
  2029. display: flex;
  2030. justify-content: center;
  2031. align-items: center;
  2032. color: #fff;
  2033. background: #008EF2;
  2034. font-size: 36rpx;
  2035. font-weight: bold;
  2036. }
  2037. }
  2038. }
  2039. .headboxhead {
  2040. width: 100%;
  2041. height: 84rpx;
  2042. border-bottom: 1px solid #E0E0E0;
  2043. display: flex;
  2044. .boxhead1 {
  2045. width: 50%;
  2046. color: #303030;
  2047. height: 84rpx;
  2048. line-height: 84rpx;
  2049. font-size: 28rpx;
  2050. text-indent: 30rpx;
  2051. }
  2052. .boxhead2 {
  2053. width: 46%;
  2054. height: 84rpx;
  2055. text-align: right;
  2056. }
  2057. }
  2058. .boxhead2 image {
  2059. width: 36rpx;
  2060. height: 36rpx;
  2061. margin-top: 24rpx;
  2062. }
  2063. .headboxbott {
  2064. width: 100%;
  2065. height: 88rpx;
  2066. display: flex;
  2067. align-items: center;
  2068. .headovfu {
  2069. flex: 1;
  2070. height: 88rpx;
  2071. overflow: hidden;
  2072. display: flex;
  2073. align-items: center;
  2074. .mytab {
  2075. margin-left: 20rpx;
  2076. .tab-item {
  2077. padding: 0 20rpx;
  2078. height: 52rpx;
  2079. line-height: 52rpx;
  2080. background: #FFFFFF;
  2081. border-radius: 8rpx;
  2082. border: 1rpx solid #E0E0E0;
  2083. font-size: 26rpx;
  2084. font-family: PingFangSC-Regular, PingFang SC;
  2085. font-weight: 400;
  2086. color: #999999;
  2087. }
  2088. .tabActive {
  2089. background: #2671E2;
  2090. color: #fff;
  2091. }
  2092. }
  2093. }
  2094. .headpade {
  2095. width: 160rpx;
  2096. height: 60rpx;
  2097. display: flex;
  2098. justify-content: center;
  2099. align-items: center;
  2100. border-left: 1px solid #D6D6D6;
  2101. .biaoji {
  2102. min-width: 120rpx;
  2103. height: 48rpx;
  2104. background: #E6625B;
  2105. border-radius: 24rpx;
  2106. text-align: center;
  2107. line-height: 48rpx;
  2108. color: #FFFFFF;
  2109. font-size: 26rpx;
  2110. }
  2111. }
  2112. }
  2113. .fill {
  2114. width: 2rpx;
  2115. height: 41rpx;
  2116. background: #E0E0E0;
  2117. }
  2118. .tmmchen {
  2119. width: 25%;
  2120. height: 88rpx;
  2121. text-align: center;
  2122. color: #666666;
  2123. font-size: 18rpx;
  2124. position: relative;
  2125. .allimg {
  2126. position: absolute;
  2127. width: 168rpx;
  2128. min-height: 210rpx;
  2129. top: -240rpx;
  2130. border: 1px solid #E0E0E0;
  2131. background: #FFFFFF;
  2132. font-size: 26rpx;
  2133. color: #333333;
  2134. text-align: center;
  2135. box-shadow: 10rpx 10rpx 5rpx #888888;
  2136. }
  2137. }
  2138. .tmmchen image {
  2139. width: 40rpx;
  2140. height: 40rpx;
  2141. margin-top: 10rpx;
  2142. margin-bottom: 2rpx;
  2143. }
  2144. .zhezhao {
  2145. position: fixed;
  2146. top: 0;
  2147. left: 0;
  2148. z-index: 999;
  2149. width: 100%;
  2150. height: 100vh;
  2151. opacity: 0.5;
  2152. background-color: #666666;
  2153. }
  2154. .followingpop-up {
  2155. width: 100%;
  2156. height: 75vh;
  2157. background: #FFFFFF;
  2158. position: fixed;
  2159. background: #FFFFFF;
  2160. left: 0px;
  2161. bottom: 0px;
  2162. z-index: 1000;
  2163. display: flex;
  2164. flex-direction: column;
  2165. // position: absolute;
  2166. .calibration {
  2167. width: 90rpx;
  2168. height: 90rpx;
  2169. background: #2671E2;
  2170. text-align: center;
  2171. line-height: 90rpx;
  2172. border-radius: 50%;
  2173. color: #FFFFFF;
  2174. position: absolute;
  2175. right: 30rpx;
  2176. bottom: 100rpx;
  2177. }
  2178. .guanbibox {
  2179. width: 100%;
  2180. padding-bottom: 20rpx;
  2181. margin-top: 20rpx;
  2182. border-bottom: 1px solid #E0E0E0;
  2183. position: relative;
  2184. .guanbixen {
  2185. width: 30rpx;
  2186. height: 30rpx;
  2187. position: absolute;
  2188. right: 30rpx;
  2189. top: 6rpx;
  2190. }
  2191. .cenisboxtab {
  2192. width: 100%;
  2193. display: flex;
  2194. .cenisboxtabview {
  2195. flex: 1;
  2196. display: flex;
  2197. align-items: center;
  2198. justify-content: center;
  2199. color: #333333;
  2200. font-size: 30rpx;
  2201. font-weight: 600;
  2202. }
  2203. }
  2204. }
  2205. .cenisbox {
  2206. flex: 1;
  2207. overflow: auto;
  2208. .jianbox {
  2209. width: 100%;
  2210. border-bottom: 1px solid #E0E0E0;
  2211. padding-top: 24rpx;
  2212. padding-bottom: 24rpx;
  2213. .jianbox-cen {
  2214. width: 100%;
  2215. height: 78rpx;
  2216. // border-bottom: 1px solid #E0E0E0;
  2217. display: flex;
  2218. .jianboxtext {
  2219. flex: 1;
  2220. height: 100%;
  2221. font-size: 30rpx;
  2222. font-weight: 600;
  2223. line-height: 78rpx;
  2224. color: #333333;
  2225. text-indent: 30rpx;
  2226. }
  2227. .jianboxjian {
  2228. width: 80rpx;
  2229. height: 100%;
  2230. line-height: 78rpx;
  2231. text-align: center;
  2232. }
  2233. }
  2234. .bioqianwayl {
  2235. width: 690rpx;
  2236. margin: 0 auto;
  2237. display: flex;
  2238. flex-wrap: wrap;
  2239. }
  2240. .bioqianwayl view {
  2241. padding-left: 24rpx;
  2242. padding-right: 24rpx;
  2243. padding-top: 10rpx;
  2244. padding-bottom: 10rpx;
  2245. margin-right: 24rpx;
  2246. margin-top: 20rpx;
  2247. border-radius: 8rpx;
  2248. font-size: 26rpx;
  2249. }
  2250. }
  2251. }
  2252. }
  2253. .jiantop {
  2254. width: 14rpx;
  2255. height: 24rpx;
  2256. }
  2257. .jiantop1 {
  2258. width: 20rpx;
  2259. height: 14rpx;
  2260. }
  2261. .sdfsaf {
  2262. padding-left: 24rpx;
  2263. padding-right: 24rpx;
  2264. padding-top: 10rpx;
  2265. padding-bottom: 10rpx;
  2266. border-radius: 8rpx;
  2267. font-size: 26rpx;
  2268. }
  2269. .yixingindexclass {
  2270. border-bottom: 3px solid #2671E2;
  2271. }
  2272. .cenisboxdspl {
  2273. width: 94%;
  2274. margin: 0 auto;
  2275. padding-bottom: 24rpx;
  2276. display: flex;
  2277. flex-wrap: wrap;
  2278. .cenisboxdsplview {
  2279. padding-left: 24rpx;
  2280. padding-right: 24rpx;
  2281. padding-top: 10rpx;
  2282. padding-bottom: 10rpx;
  2283. background: #F4F8FD;
  2284. color: #2671E2;
  2285. font-size: 26rpx;
  2286. margin-right: 24rpx;
  2287. margin-top: 24rpx;
  2288. }
  2289. }
  2290. .bounced {
  2291. width: 570upx;
  2292. background: #FFFFFF;
  2293. z-index: 1000;
  2294. border-radius: 10upx;
  2295. position: fixed;
  2296. left: 50%;
  2297. top: 50%;
  2298. transform: translate(-50%, -50%);
  2299. .headpade {
  2300. margin-top: 10rpx;
  2301. padding: 8rpx 8rpx 8rpx 8rpx;
  2302. background: #108ee9;
  2303. color: #fff;
  2304. border-radius: 16rpx;
  2305. }
  2306. /* 50%为自身尺寸的一半 */
  2307. .jiajinghuatit {
  2308. width: 100%;
  2309. height: 68rpx;
  2310. font-size: 30rpx;
  2311. text-align: center;
  2312. line-height: 68rpx;
  2313. }
  2314. .jiajinghuaview {
  2315. padding: 18rpx 18rpx 18rpx 18rpx;
  2316. display: flex;
  2317. flex-wrap: wrap;
  2318. .jiajinghuaview1 {
  2319. padding: 8rpx 8rpx 8rpx 8rpx;
  2320. font-size: 26rpx;
  2321. border-radius: 12rpx;
  2322. border: 1px solid #979797;
  2323. margin-left: 8rpx;
  2324. }
  2325. .jighuaview2 {
  2326. padding: 8rpx 18rpx 8rpx 18rpx;
  2327. font-size: 26rpx;
  2328. border-radius: 12rpx;
  2329. border: 1px solid #979797;
  2330. margin-left: 20rpx;
  2331. margin-top: 10rpx;
  2332. display: flex;
  2333. .view1-text {
  2334. text-align: center;
  2335. }
  2336. .view1-img {
  2337. width: 50rpx;
  2338. }
  2339. }
  2340. }
  2341. .bounced3 {
  2342. height: 100upx;
  2343. width: 100%;
  2344. margin-top: 40upx;
  2345. border-top: 1px solid #dddddd;
  2346. display: flex;
  2347. }
  2348. .bounced3-1 {
  2349. width: 50%;
  2350. height: 100%;
  2351. text-align: center;
  2352. line-height: 100upx;
  2353. border-right: 1px solid #dddddd;
  2354. font-size: 36upx;
  2355. color: #999999;
  2356. }
  2357. .bounced3-2 {
  2358. width: 50%;
  2359. height: 100%;
  2360. text-align: center;
  2361. line-height: 100upx;
  2362. font-size: 36upx;
  2363. color: #108ee9;
  2364. }
  2365. }
  2366. .viewclace {
  2367. width: 100rpx;
  2368. height: 40rpx;
  2369. text-align: center;
  2370. line-height: 40rpx;
  2371. border-radius: 14rpx;
  2372. margin-right: 34rpx;
  2373. margin-top: 16rpx;
  2374. font-size: 24rpx;
  2375. }
  2376. .bosdttom {
  2377. color: #FFFFFF;
  2378. background-color: #2671E2;
  2379. }
  2380. .dialog-block {
  2381. margin: 20rpx 0;
  2382. border-bottom: 1px solid #ccc;
  2383. .fileName {
  2384. text-align: center;
  2385. margin: 10rpx auto;
  2386. width: 115rpx;
  2387. height: 42rpx;
  2388. line-height: 42rpx;
  2389. background: #EFEFEF;
  2390. border-radius: 4rpx;
  2391. font-size: 20rpx;
  2392. font-weight: 400;
  2393. color: #333333;
  2394. }
  2395. }
  2396. .scroll-Y {
  2397. font-size: 36upx;
  2398. color: #999999;
  2399. background: #FFFFFF;
  2400. margin-top: 30upx;
  2401. flex: 1;
  2402. overflow-y: scroll;
  2403. width: 100%;
  2404. }
  2405. .scroll-Y .text {
  2406. margin: 50upx 30upx;
  2407. line-height: 80upx;
  2408. display: flex;
  2409. align-items: center;
  2410. }
  2411. .scroll-Y .text[data-speaker="2"],
  2412. .scroll-Y .text[data-speaker="4"],
  2413. .scroll-Y .text[data-speaker="6"] {
  2414. flex-direction: row-reverse;
  2415. text-align: right;
  2416. .contentInfo {
  2417. .info {
  2418. color: #ccc;
  2419. font-size: 18rpx;
  2420. font-size: 30rpx;
  2421. padding: 0 28rpx;
  2422. }
  2423. .contentMain {
  2424. display: flex;
  2425. flex-direction: row-reverse;
  2426. align-items: center;
  2427. .content {
  2428. margin-left: 0;
  2429. margin-right: 30upx;
  2430. }
  2431. .play {
  2432. width: 50rpx;
  2433. height: 50rpx;
  2434. margin-right: 20rpx;
  2435. }
  2436. }
  2437. }
  2438. }
  2439. .scroll-Y .text[data-speaker="2"],
  2440. .scroll-Y .text[data-speaker="4"],
  2441. .scroll-Y .text[data-speaker="6"] {
  2442. .contentInfo {
  2443. .info {
  2444. .AudioUserName {
  2445. margin-left: 10rpx;
  2446. }
  2447. display: flex;
  2448. flex-direction: row-reverse;
  2449. }
  2450. }
  2451. }
  2452. .scroll-Y .text {
  2453. .contentInfo {
  2454. .info {
  2455. .AudioUserName {
  2456. margin-right: 10rpx;
  2457. }
  2458. }
  2459. }
  2460. }
  2461. .scroll-Y .text .avatar {
  2462. margin-top: 80rpx;
  2463. width: 64upx;
  2464. height: 64upx;
  2465. line-height: 64upx;
  2466. text-align: center;
  2467. font-size: 36rpx;
  2468. border-radius: 50%;
  2469. background: #F2F2F2;
  2470. color: #008EF2;
  2471. image {
  2472. width: 40upx;
  2473. }
  2474. }
  2475. .checkbox {
  2476. margin: 80rpx 20rpx 0;
  2477. width: 48rpx;
  2478. height: 48rpx;
  2479. display: flex;
  2480. justify-content: center;
  2481. align-items: center;
  2482. border-radius: 50%;
  2483. border: 1rpx solid #70798D;
  2484. &.select {
  2485. border-color: #008EF2;
  2486. background: #008EF2;
  2487. color: #fff;
  2488. }
  2489. }
  2490. .scroll-Y .text .contentInfo .info {
  2491. color: #ccc;
  2492. font-size: 18rpx;
  2493. font-size: 30rpx;
  2494. padding: 0 28rpx;
  2495. }
  2496. .scroll-Y .text .contentInfo .contentMain {
  2497. display: flex;
  2498. align-items: center;
  2499. }
  2500. .scroll-Y .text .contentInfo .contentMain .content {
  2501. margin-left: 30upx;
  2502. line-height: 60rpx;
  2503. text-align: left;
  2504. padding: 0 5px;
  2505. border-radius: 8upx;
  2506. max-width: 442rpx;
  2507. background: #F6F6F6;
  2508. color: #999999;
  2509. position: relative;
  2510. .tankuangcss {
  2511. position: absolute;
  2512. top: -140rpx;
  2513. left: -120rpx;
  2514. width: 308rpx;
  2515. height: 130rpx;
  2516. background-color: #333333;
  2517. font-size: 24rpx;
  2518. color: #FFFFFF;
  2519. padding-top: 4rpx;
  2520. padding-bottom: 4rpx;
  2521. display: flex;
  2522. flex-wrap: wrap;
  2523. border-radius: 15rpx;
  2524. z-index: 1000;
  2525. }
  2526. .bottoms {
  2527. top: unset;
  2528. bottom: -140rpx;
  2529. }
  2530. }
  2531. .scroll-Y .text .contentInfo .contentMain .play {
  2532. width: 50rpx;
  2533. height: 50rpx;
  2534. margin-left: 20rpx;
  2535. }
  2536. .backTop {
  2537. width: 60upx;
  2538. height: 60upx;
  2539. background: rgba(211, 235, 253, 1);
  2540. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  2541. border-radius: 50%;
  2542. position: fixed;
  2543. bottom: 200upx;
  2544. right: 8upx;
  2545. display: flex;
  2546. justify-content: center;
  2547. align-items: center;
  2548. image {
  2549. width: 26upx;
  2550. height: 34upx;
  2551. }
  2552. }
  2553. .jiangshang {
  2554. color: #fff;
  2555. background: #2671E2;
  2556. }
  2557. .jiangshang1 {
  2558. color: #FFFFFF;
  2559. background: #999999;
  2560. }
  2561. // 表单
  2562. .tian-view {
  2563. width: 570rpx;
  2564. background-color: #FFFFFF;
  2565. display: flex;
  2566. margin-bottom:30rpx;
  2567. .tian-view-t2 {
  2568. width: 100%;
  2569. font-size: 34rpx;
  2570. display: flex;
  2571. color: #333;
  2572. .word{
  2573. flex: 1;
  2574. border-bottom: 1px solid #ccc;
  2575. }
  2576. .word1{
  2577. height: 80rpx;
  2578. flex: 1;
  2579. /deep/ textarea{
  2580. max-height: 80rpx !important;
  2581. }
  2582. }
  2583. }
  2584. }
  2585. .inputbox {
  2586. width: 100%;
  2587. height: 100rpx;
  2588. display: flex;
  2589. align-items: center;
  2590. justify-content: center;
  2591. border-bottom: 1px solid #E0E0E0;
  2592. .thisinput {
  2593. width: 94%;
  2594. height: 52rpx;
  2595. background: #FFFFFF;
  2596. border-radius: 8rpx;
  2597. border: 1px solid #C9C9C9;
  2598. color: #333333;
  2599. font-size: 26rpx;
  2600. text-indent: 26rpx;
  2601. line-height: 52rpx;
  2602. }
  2603. }
  2604. .biaoqiantom {
  2605. background-color: #008EF2;
  2606. color: #FFFFFF;
  2607. border: none;
  2608. }
  2609. .Level-box {
  2610. padding-bottom: 2rpx;
  2611. .hhhbox {
  2612. width: 100%;
  2613. padding-left: 30rpx;
  2614. padding-right: 30rpx;
  2615. border-bottom: 1rpx solid #E0E0E0;
  2616. background: #FFFFFF;
  2617. // padding-bottom: 32rpx;
  2618. .hsnrtest {
  2619. height: 24rpx;
  2620. font-size: 24rpx;
  2621. font-weight: 400;
  2622. color: #666666;
  2623. line-height: 24rpx;
  2624. }
  2625. .Level3che {
  2626. width: 100%;
  2627. height: 28rpx;
  2628. display: flex;
  2629. line-height: 28rpx;
  2630. align-items: center;
  2631. margin-top: 30rpx;
  2632. .title1 {
  2633. flex: 1;
  2634. font-size: 28rpx;
  2635. color: #2671E2;
  2636. font-weight: 400;
  2637. }
  2638. .jiantobox {
  2639. width: 30rpx;
  2640. height: 30rpx;
  2641. display: flex;
  2642. align-items: center;
  2643. .arrow {
  2644. width: 28rpx;
  2645. height: 28rpx;
  2646. }
  2647. }
  2648. }
  2649. }
  2650. .Level2che {
  2651. width: 100%;
  2652. height: 88rpx;
  2653. display: flex;
  2654. line-height: 88rpx;
  2655. align-items: center;
  2656. .title1 {
  2657. flex: 2;
  2658. font-size: 28rpx;
  2659. color: #333333;
  2660. font-weight: 400;
  2661. }
  2662. .leve1-jindu {
  2663. flex: 3;
  2664. display: flex;
  2665. justify-content: center;
  2666. align-items: center;
  2667. .zhixing {
  2668. width: 108rpx;
  2669. height: 44rpx;
  2670. background: #2671E2;
  2671. border-radius: 4rpx;
  2672. font-size: 28rpx;
  2673. text-align: center;
  2674. line-height: 44rpx;
  2675. color: #FFFFFF;
  2676. }
  2677. .zhixing2 {
  2678. width: 108rpx;
  2679. height: 44rpx;
  2680. background: #F8F8F8;
  2681. border-radius: 4rpx;
  2682. font-size: 28rpx;
  2683. text-align: center;
  2684. line-height: 44rpx;
  2685. color: #999999;
  2686. }
  2687. }
  2688. .jiantobox {
  2689. width: 30rpx;
  2690. height: 30rpx;
  2691. display: flex;
  2692. align-items: center;
  2693. .arrow {
  2694. width: 30rpx;
  2695. height: 18rpx;
  2696. }
  2697. }
  2698. }
  2699. .Level1che {
  2700. width: 100%;
  2701. height: 94rpx;
  2702. background: #F5F5F5;
  2703. display: flex;
  2704. line-height: 94rpx;
  2705. align-items: center;
  2706. padding-left: 30rpx;
  2707. padding-right: 30rpx;
  2708. .title1 {
  2709. flex: 2;
  2710. font-size: 30rpx;
  2711. color: #333333;
  2712. font-weight: 400;
  2713. }
  2714. .leve1-jindu {
  2715. flex: 3;
  2716. .jindutiao {
  2717. width: 96%;
  2718. height: 28rpx;
  2719. background: #D5EEE2;
  2720. line-height: 28rpx;
  2721. border-radius: 14rpx;
  2722. position: relative;
  2723. .huanxing {
  2724. height: 100%;
  2725. background: #4FC78F;
  2726. border-radius: 14rpx;
  2727. }
  2728. .text {
  2729. position: absolute;
  2730. top: 0rpx;
  2731. right: 0rpx;
  2732. font-size: 28rpx;
  2733. font-weight: 400;
  2734. color: #333333;
  2735. }
  2736. }
  2737. }
  2738. .jiantobox {
  2739. width: 30rpx;
  2740. height: 30rpx;
  2741. display: flex;
  2742. align-items: center;
  2743. .arrow {
  2744. width: 30rpx;
  2745. height: 18rpx;
  2746. }
  2747. }
  2748. }
  2749. }
  2750. .rotatearrow {
  2751. transform: rotate(270deg);
  2752. }
  2753. .ffectivetext {
  2754. width: 85%;
  2755. margin: 10rpx auto;
  2756. height: 100rpx;
  2757. padding: 20rpx;
  2758. border: 1rpx solid #E4F0FF;
  2759. }
  2760. /deep/ .u-model-title {
  2761. padding: 34rpx 0 16rpx !important;
  2762. }
  2763. .scroll-Y .text.active .content {
  2764. color: #FF7538 !important;
  2765. position: relative;
  2766. }
  2767. .scroll-Y .text.active[data-speaker] .content,
  2768. .scroll-Y .text.active[data-speaker="2"] .content,
  2769. .scroll-Y .text.active[data-speaker="4"] .content,
  2770. .scroll-Y .text.active[data-speaker="6"] .content {
  2771. color: #FF7538 !important;
  2772. position: relative;
  2773. }
  2774. .scroll-Y .isGreen .contentInfo .contentMain .content {
  2775. background: #2BC805 !important;
  2776. color: #FFFFFF;
  2777. }
  2778. </style>