AI销管
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.
 
 
 
 

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