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.
 
 
 

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