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.
 
 
 

2445 lines
63 KiB

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