選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

1573 行
41 KiB

  1. <template>
  2. <view class="details">
  3. <!-- 头部违禁信息 -->
  4. <view class="header">
  5. <view class="h-box">
  6. <view class="h-b-top">
  7. <text class="name">{{ userlistobj.agentName || '' }}</text>
  8. <view class="status">
  9. <text class="pointer"></text>
  10. <text class="item">{{ userlistobj.violatedStatus | ViolatedStatus }}</text>
  11. </view>
  12. </view>
  13. <!-- 详细信息 -->
  14. <view class="h-b-btm" style="margin: 19rpx 0 30rpx;">
  15. <view class="item">
  16. <image class="item-imgs" src="@/static/images/img/time.png" mode=""></image>
  17. {{ userlistobj.createTime || '' }}
  18. </view>
  19. </view>
  20. <view class="h-b-btm">
  21. <view class="item">
  22. <image class="item-imgs" src="@/static/images/img/voice.png" mode=""></image>
  23. {{ userlistobj.mm || '' }}m
  24. </view>
  25. <view class="item hit">
  26. <image class="item-imgs" src="@/static/images/img/hit.png" mode=""></image>
  27. {{ userlistobj.violatedFrequency || '0' }}
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- tab选择框 -->
  33. <template v-if="isShowMerge">
  34. <u-tabs :activeItemStyle="{background: '#2979ff', color: '#fff'}" :list="list" :is-scroll="false"
  35. bg-color="transparent" :show-bar="false" :current="current" @change="change"></u-tabs>
  36. </template>
  37. <template v-if="current == 0">
  38. <scroll-view :scroll-top="scrollTop" lower-threshold='100px' @scrolltolower="ltolower()"
  39. upper-threshold='40px' @scrolltoupper="rolltoupper()" :scroll-into-view="scrollId" scroll-y="true"
  40. class="zhuti text scroll-Y">
  41. <!-- 聊天记录-->
  42. <view class="dialog-block" style="border-bottom: none;">
  43. <block v-for="(item,index) in findTabooWordsList" :key="index">
  44. <view class="text">
  45. <view class="avatar">
  46. <view :style="[SPEAKERSTYLE(item.speaker)]">
  47. <!-- <image v-if="item.isShow && item.isShow == 0" :src="Aimg" mode="widthFix"></image> -->
  48. <text v-if="item.isShow == 0">顾</text>
  49. <text v-else>{{ item.speaker | toCapital }}</text>
  50. </view>
  51. </view>
  52. <view class="contentInfo">
  53. <view class="info">
  54. <!-- <text class="AudioUserName">{{ item.speaker | toCapital }}</text> -->
  55. <text class="AudioUserName" v-if="item.isShow == 0">{{item.username}}</text>
  56. <text class="AudioUserName" v-else>{{ item.speaker | toCapital }}</text>
  57. <text>{{conversionTiame(item.bg/1000)}}</text>
  58. </view>
  59. <view class="contentMain">
  60. <view class="content">
  61. <view v-html="item.onebest"></view>
  62. </view>
  63. <template v-if="isShowMerge">
  64. <image @click="clickbofang(0,item, 'show')" class="play"
  65. src="@/static/images/recordingManagement/play.png"></image>
  66. </template>
  67. </view>
  68. </view>
  69. </view>
  70. <!-- 1 客户画像 2销讲词 3违禁 4 需求挖掘 -->
  71. <view class="newmark" v-if="item.types">
  72. <view class="mark-item" v-for="(subitem,i) in dealTypes(item.types)" :key="i">
  73. <!-- <image v-if="dealword(subitem)[0]==1" class="markicon"
  74. src="https://static.quhouse.com/37e0de3f8d1c421dac8bf699d5e7992d.png"></image>
  75. <image v-if="dealword(subitem)[0]==2" class="markicon"
  76. src="https://static.quhouse.com/b106e8e75db24a59a579a15a78830a76.png"></image> -->
  77. <image v-if="dealword(subitem)[0]==3" class="markicon"
  78. src="https://static.quhouse.com/8443a2ecb81d4639991ab29c422e9949.png"></image>
  79. <!-- <image v-if="dealword(subitem)[0]==4" class="markicon"
  80. src="https://static.quhouse.com/1cd794cb6c974d9dad948a6dd444518b.png"></image> -->
  81. <view class="marktext" v-if="dealword(subitem)[0]==3" :style="dealword(subitem)[0]==3?'color:#E7483C':'color:#3E50E8'">
  82. {{dealword(subitem)[1]}}
  83. </view>
  84. </view>
  85. </view>
  86. </block>
  87. </view>
  88. </scroll-view>
  89. </template>
  90. <template v-if="current == 1">
  91. <!-- 音频 -->
  92. <view class="audio">
  93. <!-- 标记顾问 -->
  94. <view class="headboxbott">
  95. <view class="headovfu">
  96. <u-tabs-swiper ref="tabs" font-size="30" :bold="true" swiper-width="600" :current="roleindex"
  97. @change="tapspagek()" inactive-color="#b1b1b1" active-color="#008ef2" :list="tablist"
  98. :is-scroll="true">
  99. </u-tabs-swiper>
  100. </view>
  101. <view v-if="permissions.bjgw" class="headpade">
  102. <view class="biaoji" @tap="tagtap()">标记</view>
  103. </view>
  104. </view>
  105. </view>
  106. <scroll-view :scroll-top="scrollTop" lower-threshold='100px' @scrolltolower="ltolower()"
  107. upper-threshold='40px' @scrolltoupper="rolltoupper()" :scroll-into-view="scrollId" scroll-y="true"
  108. class="zhuti text scroll-Y">
  109. <!-- 聊天记录-->
  110. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  111. <view :id="'dialog'+i" class="fileName">录音文件</view>
  112. <block v-for="(item,index) in dialog.message" :key="index">
  113. <view class="text" style="margin: 50rpx 30rpx" :id="'dialog'+csdFileindex+'text'+item.bg"
  114. :class="{active: item.bg < playNow && item.ed > playNow, reverse: Number(item.speaker) % 2 == 0}"
  115. :data-speaker="item.speaker">
  116. <view class="avatar">
  117. <view :style="[SPEAKERSTYLE(item.speaker)]">
  118. <!-- <image v-if="item.isShow == 0" :src="Aimg" mode="widthFix"></image> -->
  119. <text v-if="item.isShow == 0">顾</text>
  120. <text v-else>{{ item.speaker | toCapital }}</text>
  121. </view>
  122. </view>
  123. <view class="contentInfo">
  124. <view class="info">
  125. <!-- <text class="AudioUserName">{{ item.speaker | toCapital }}</text> -->
  126. <text class="AudioUserName" v-if="item.isShow == 0">{{ item.username }}</text>
  127. <text class="AudioUserName" v-else>{{ item.speaker | toCapital }}</text>
  128. <text>{{conversionTiame(item.bg/1000)}}</text>
  129. </view>
  130. <view class="contentMain">
  131. <view class="content">
  132. <view v-html="item.onebest"></view>
  133. </view>
  134. <image @click="clickbofang(dialog.backindex,item)" class="play"
  135. src="@/static/images/recordingManagement/play.png"></image>
  136. </view>
  137. </view>
  138. </view>
  139. </block>
  140. </view>
  141. </scroll-view>
  142. </template>
  143. <view class="bottombox">
  144. <!-- 播放块 -->
  145. <template v-if="current == 1">
  146. <zaudio :duration="duration" theme="theme4"></zaudio>
  147. </template>
  148. <template v-if="userlistobj.invalidViolatedCause">
  149. <view class="bottomtips">
  150. 无效原因:{{ userlistobj.invalidViolatedCause }}
  151. </view>
  152. </template>
  153. <view class="botbotmm">
  154. <view class="item" @click="preValid">上一条</view>
  155. <template v-if="isShowMerge">
  156. <template v-if="userlistobj.disposeStatus == 0">
  157. <view class="item" @click="setViolated(1)">确认有效</view>
  158. <view class="item" @tap="showTagValid">确认无效</view>
  159. </template>
  160. <template v-if="userlistobj.disposeStatus == 1 && userlistobj.violatedStatus == 1">
  161. <view class="item" @tap="showTagValid">无效</view>
  162. </template>
  163. <template v-if="userlistobj.disposeStatus == 1 && userlistobj.violatedStatus == 2">
  164. <view class="item" @click="setViolated(1)">确认有效</view>
  165. </template>
  166. </template>
  167. <view class="item" @click="nextValid">下一条</view>
  168. </view>
  169. </view>
  170. <!-- 标记顾问 -->
  171. <u-popup v-model="biojiisshow" mode="center">
  172. <view class="bounced">
  173. <view class="jiajinghuatit">标记为顾问</view>
  174. <view
  175. style="width: 95%;display: flex;flex-wrap: wrap;margin: 0 auto;padding-top: 30rpx;padding-bottom: 30rpx;">
  176. <view class="viewclace" :class="roleindexbiaoji == index ? 'bosdttom' : ''"
  177. @click="biaojixuanze(index)" v-for="(item,index) in tablist.slice(1,tablist.length)"
  178. :key="index">
  179. <view>{{item.name}}</view>
  180. </view>
  181. </view>
  182. <view class="bounced3" style="margin-top: 20rpx;">
  183. <view class="bounced3-1" @tap="unmarktap">取消</view>
  184. <view class="bounced3-2" @tap="Confirmthetag">确认</view>
  185. </view>
  186. </view>
  187. </u-popup>
  188. <!-- 标记无效原因 border-radius="16" -->
  189. <u-popup v-model="tagValidShow" mode="center">
  190. <view class="reason">
  191. <text class="resaon-title">无效原因</text>
  192. <view class="resaon-textbox">
  193. <textarea v-model="reasonSrc" placeholder="请输入无效原因" maxlength="60" />
  194. <text class="lastlength">{{ reasonSrc.length }}/60</text>
  195. </view>
  196. <view class="button">
  197. <text @click="inputDone">完成</text>
  198. </view>
  199. </view>
  200. </u-popup>
  201. </view>
  202. </template>
  203. <script>
  204. var util = require("@/utils/util.js");
  205. var config = require("@/config");
  206. import zaudio from '@/components/uniapp-zaudio/zaudio';
  207. export default {
  208. components: {
  209. zaudio
  210. },
  211. data() {
  212. return {
  213. 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",
  214. list: [{
  215. name: '违禁话术'
  216. }, {
  217. name: '音频识别'
  218. }],
  219. current: 0, // tab下表
  220. tablist: [], // 顾问标记列表
  221. roleindex: 0, // 选中顾问下标
  222. luyinList: [], // 录音文件
  223. newluyinList: [],
  224. dialogList: [], // 录音识别列表渲染数据
  225. permissions: {}, // 权限菜单
  226. biojiisshow: false, // 标记顾问弹窗
  227. textindex: 0, //下拉 转写文件下标
  228. toptextindex: 0, //上拉 转写文件下标
  229. dshfkjsdkksodofydwfkhwdfkjh: 0, // 顾问的id之类的
  230. status: 0, // 状态(不明白是什么状态)
  231. speaker: '', // 角色身份
  232. customerId: '', // 楼盘id吧(猜)
  233. infos: {}, // 音频内容
  234. stateisshow: '', //
  235. itemobj: {}, // 本地缓存的音频信息
  236. userlistobj: {}, // 获取到的顾问信息
  237. csdFileindex: 0, // 当前使用录音转写的下标
  238. // 录音信息
  239. recordPath: "", // 录音地址
  240. playNow: 0, // 当前播放时间
  241. audioType: false, // 音频是否自动播放状态
  242. scrollId: "", // 当前播放滚动到的位置
  243. tagValidShow: false, // 标记弹窗
  244. reasonSrc: '', // 标记无效的原因
  245. findTabooWordsList: [], // 违禁词列表
  246. nextPageObj: JSON.parse(uni.getStorageSync('nextPageObj')), // 当前页面筛选内容
  247. isMerge: 0, // 默认合并
  248. isSw: false,
  249. ACTION: Symbol('zaudio'), // 唯一值区分每个页面的方法
  250. isPageHide: false, // 是否息屏
  251. duration: '', // 总时长
  252. allTextList: [], // 所有话术列表
  253. isFirstWords: 0, // 第一个违禁词出现的时间
  254. }
  255. },
  256. computed: {
  257. conversionTiame() {
  258. return (e) => {
  259. return this.getTime(e);
  260. }
  261. },
  262. // 是否为合并录音
  263. isShowMerge() {
  264. return this.isMerge == 0 ? true : false
  265. }
  266. },
  267. onLoad(option) {
  268. this.status = option.status;
  269. this.customerId = option.customerId;
  270. this.stateisshow = option.stateisshow;
  271. this.itemobj = uni.getStorageSync('searchobj');
  272. if (option.isMerge) this.isMerge = option.isMerge
  273. this.$zaudio.autoPlay = true
  274. //注意: 不同的回调方法, 相同的业务函数方法名, 不会相互影响;
  275. this.$zaudio.on('stop', this.ACTION, () => {
  276. console.log('我是强制暂停或关闭小程序音频浮窗触发的')
  277. })
  278. this.$zaudio.on('seek', this.ACTION, (time) => {
  279. this.sliderChangeComplate(this.TIMEEVENT(time))
  280. })
  281. this.$zaudio.on('playing', this.ACTION, (obj) => {
  282. this.duration = obj.duration
  283. this.TimeUpdate(this.TIMEEVENT(obj.current))
  284. })
  285. this.$zaudio.on('error', this.ACTION, e => {
  286. console.log(e, '加载失败')
  287. })
  288. this.$zaudio.on('ended', this.ACTION, e => {
  289. this.$zaudio.stop()
  290. this.init({
  291. bg: 0,
  292. customerId: this.customerId
  293. })
  294. })
  295. },
  296. onShow() {
  297. this.scrollId = ''
  298. //实时渲染当前的播放状态
  299. if (this.current == 1) {
  300. this.$zaudio.syncRender()
  301. }
  302. this.permissions = uni.getStorageSync('weapp_session_Menu_data') // 权限
  303. this.roleindex = 0;
  304. if (this.stateisshow == 2) {
  305. this.infos = this.itemobj;
  306. } else {
  307. var pages = getCurrentPages();
  308. var currPage = pages[pages.length - 1]; //当前页面
  309. this.infos = currPage.data.info;
  310. }
  311. !this.isPageHide && this.init(this.infos);
  312. this.gituserlist()
  313. this.findTabooWords()
  314. },
  315. onHide() {
  316. this.isPageHide = true
  317. },
  318. onUnload() {
  319. //卸载不需要的业务和获取播放状态的业务,提高页面性能
  320. this.$zaudio.off('seek', this.ACTION);
  321. this.$zaudio.off('stop', this.ACTION);
  322. this.$zaudio.off('playing', this.ACTION);
  323. // this.$zaudio.setAudio([])
  324. },
  325. methods: {
  326. // 对话加命中标签
  327. dealTypes(type) {
  328. if (type) {
  329. let tem = type.split(',')
  330. return tem
  331. } else {
  332. return []
  333. }
  334. },
  335. // 对话加命中标签
  336. dealword(type) {
  337. if (type) {
  338. let a = type.split('-')
  339. let rest = type.substring(2).split('-').join(',')
  340. let arr = [a[0], rest]
  341. return arr
  342. } else {
  343. return []
  344. }
  345. },
  346. // 获取违禁词
  347. findTabooWords() {
  348. this.$u.get('/customer/findTabooWords', {
  349. customerId: this.customerId
  350. }).then(res => {
  351. let arr = []
  352. res.map(item => {
  353. if (item.transferContent) {
  354. item.transferContents = JSON.parse(item.transferContent)
  355. arr.push(item.transferContents)
  356. }
  357. })
  358. this.findTabooWordsList = arr
  359. this.isFirstWords = arr[0].bg
  360. console.log(this.findTabooWordsList, 'findTabooWordsList')
  361. })
  362. },
  363. // 确认无效标记 setViolatedStatus = 2
  364. inputDone() {
  365. if (!this.reasonSrc) {
  366. uni.showToast({
  367. title: '请输入标记无效的原因',
  368. icon: 'none',
  369. duration: 2000
  370. })
  371. return
  372. }
  373. this.setViolated(2)
  374. },
  375. // 下一条
  376. nextValid() {
  377. console.log(this.$zaudio)
  378. if (this.nextPageObj.pageSize < this.nextPageObj.num) {
  379. this.$zaudio.stop()
  380. this.nextPageObj.pageSize++
  381. this.keyWordsMatching(this.nextPageObj)
  382. } else {
  383. uni.showToast({
  384. title: '已经是最后一条了~',
  385. icon: 'none'
  386. })
  387. }
  388. },
  389. // 上一条
  390. preValid() {
  391. if (this.nextPageObj.pageSize == 1) {
  392. uni.showToast({
  393. title: '没有更早的了~'
  394. })
  395. } else {
  396. this.$zaudio.stop()
  397. this.nextPageObj.pageSize--
  398. this.keyWordsMatching(this.nextPageObj)
  399. }
  400. },
  401. // 获取违禁话术详情
  402. keyWordsMatching(params) {
  403. this.$u.post('/customer/findbynum', params).then(res => {
  404. this.customerId = res.results[0].id;
  405. this.current = 0
  406. uni.setStorageSync('nextPageObj', JSON.stringify(this.nextPageObj))
  407. this.resetAudioParams()
  408. this.prohibitedMatch()
  409. }).catch(e => {
  410. this.nextPageObj = JSON.parse(uni.getStorageSync('nextPageObj')), // 当前页面筛选内容
  411. uni.showToast({
  412. title: e.message,
  413. icon: 'none',
  414. duration: 2000
  415. })
  416. })
  417. },
  418. // 违禁词播放位置
  419. prohibitedMatch() {
  420. this.$u.post('/customer/prohibitedMatch', {
  421. customerId: this.customerId
  422. }).then(res => {
  423. let newweijin = res[0];
  424. newweijin.transferContent = JSON.parse(newweijin.transferContent)
  425. var item = {
  426. bg: newweijin.transferContent.bg,
  427. customerId: newweijin.corpusId,
  428. }
  429. // 获取是否有转写的音频
  430. this.$u.post("/corpus/findByPage", {
  431. pageNum: 1,
  432. pageSize: 100,
  433. query: {
  434. customerId: this.customerId,
  435. }
  436. }).then(res => {
  437. if (res == null) {
  438. uni.showToast({
  439. icon: "none",
  440. title: "暂无音频"
  441. })
  442. return
  443. } else {
  444. let newobj = res[0];
  445. this.isMerge = res[0].merge
  446. if (res[0].merge == 0) {
  447. this.infos = item
  448. this.itemobj = item
  449. this.recordPath = res[0].recordPath
  450. uni.setStorageSync("searchobj", item); //写入缓存
  451. console.log('在这里调用的', item)
  452. this.roleindex = 0;
  453. this.gituserlist()
  454. this.findTabooWords()
  455. // this.zyAudio()
  456. } else {
  457. uni.showToast({
  458. icon: "none",
  459. title: "暂无音频"
  460. })
  461. }
  462. }
  463. })
  464. })
  465. },
  466. // 设置违禁状态
  467. setViolated(status) {
  468. let params = {
  469. customerId: this.customerId,
  470. violatedStatus: status,
  471. invalidViolatedCause: this.reasonSrc,
  472. }
  473. this.$u.post('/customer/setViolatedStatus', params).then(res => {
  474. this.tagValidShow = false
  475. uni.showToast({
  476. title: '标记成功',
  477. duration: 2000
  478. });
  479. this.gituserlist()
  480. setTimeout(() => {
  481. this.reasonSrc = ''
  482. }, 2000)
  483. }).catch(e => {
  484. this.tagValidShow = false
  485. uni.showToast({
  486. title: e.message,
  487. duration: 2000
  488. });
  489. })
  490. },
  491. // 展示确认无效原因输入框
  492. showTagValid() {
  493. this.tagValidShow = true
  494. },
  495. //获取用户信息
  496. gituserlist() {
  497. this.$u.get("/matchKeywords/personalReceptionRecord", {
  498. customerId: this.customerId
  499. }).then(res => {
  500. res.endTime1 = res.endTime.substring(0, 19);
  501. this.userlistobj = res;
  502. })
  503. },
  504. //标记顾问
  505. tagtap() {
  506. this.biojiisshow = !this.biojiisshow;
  507. },
  508. //取消标记
  509. unmarktap() {
  510. this.roleindexbiaoji = this.dshfkjsdkksodofydwfkhwdfkjh;
  511. },
  512. //确认标记
  513. Confirmthetag() {
  514. var num = this.roleindexbiaoji + 1;
  515. let params = {
  516. id: this.luyinList[this.csdFileindex].id,
  517. speaker: num,
  518. customerId: this.customerId
  519. }
  520. this.$u.get(config.service.markConsultant, params).then((data) => {
  521. this.biojiisshow = false;
  522. this.biaojiyuyi()
  523. this.fenjiaoseunfo()
  524. uni.showToast({
  525. title: '标记成功',
  526. duration: 2000
  527. });
  528. })
  529. },
  530. // 切换角色展示
  531. tapspagek(index) {
  532. this.roleindex = index;
  533. this.newluyinList = [];
  534. this.fenjiaoseunfo()
  535. this.$forceUpdate()
  536. },
  537. // 初始化音频以及页面数据
  538. init(info, type) {
  539. this.sliderMax = 0; //进度条最大值
  540. this.timeStr = "00:00"; //总的时间
  541. const parames = {
  542. pageNum: 1,
  543. pageSize: 100,
  544. query: {
  545. customerId: this.customerId
  546. }
  547. }
  548. this.$u.post("/corpus/findByPage", parames).then(res => {
  549. if (res && res.length) {
  550. let alltime = 1 + res[0].recordDuration;
  551. this.calibration = res[0].calibration;
  552. if (this.calibration == 0) {
  553. this.kehuyixiangcenterindex = 0;
  554. } else {
  555. this.kehuyixiangcenterindex = 1;
  556. }
  557. if (info.bg != 0) {
  558. this.luyinList = res;
  559. this.recordPath = res[0].recordPath
  560. this.sliderMax = this.getTime(res[0].recordDuration)
  561. this.timeStr = this.getTime(res[0].recordDuration)
  562. this.date = res[0].receptionTime;
  563. this.getCorpusAnalysis(info, type);
  564. } else {
  565. this.luyinList = res;
  566. this.recordPath = res[0].recordPath
  567. this.sliderMax = this.getTime(res[0].recordDuration)
  568. this.timeStr = this.getTime(res[0].recordDuration)
  569. this.date = res[0].receptionTime;
  570. this.getCorpusAnalysis(info, type);
  571. }
  572. }
  573. })
  574. },
  575. // 重置进度条
  576. resetAudioParams() {
  577. this.scrollId = "" // 当前播放滚动到的位置
  578. },
  579. // 获取转义后的对话结果
  580. getCorpusAnalysis(info, type) {
  581. this.dialogList = [];
  582. this.newluyinList = []
  583. uni.request({
  584. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  585. "&bg=" + info.bg + "&speaker=" + this.roleindex + '&num=50', //仅为示例,并非真实接口地址。
  586. method: "GET",
  587. header: {
  588. 'content-type': 'application/json',
  589. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  590. },
  591. success: (data) => {
  592. this.tablist = [];
  593. this.roleindexbiaoji = 0;
  594. let jsonInfo = JSON.parse(data.data.data.audioContent);
  595. for (var i = 0; i <= data.data.data.speakerNum; i++) {
  596. if (i === 0) {
  597. this.tablist.push({
  598. name: '全部'
  599. })
  600. } else {
  601. this.tablist.push({
  602. name: String.fromCharCode(i + 64)
  603. })
  604. }
  605. }
  606. if (data.data.data.speaker == null) {
  607. this.dshfkjsdkksodofydwfkhwdfkjh = 0;
  608. } else {
  609. if (data.data.data.viewNameFlag == 1) {
  610. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  611. .speaker]
  612. .name;
  613. } else {
  614. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  615. .speaker]
  616. .name + "顾问";
  617. }
  618. this.roleindexbiaoji = data.data.data.speaker - 1;
  619. this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
  620. }
  621. if (data.data.data.viewNameFlag == 1) {
  622. let p = [{
  623. name: '顾问'
  624. }]
  625. this.tablist = [...this.tablist, ...p]
  626. this.isSw = true
  627. } else {
  628. this.isSw = false
  629. }
  630. this.speaker = data.data.data.speaker;
  631. //上拉标记点
  632. this.textindex = data.data.data.index;
  633. //下拉标记点
  634. this.toptextindex = data.data.data.index;
  635. jsonInfo.forEach(item => {
  636. item.message = JSON.parse(item.onebest)
  637. item.backindex = this.csdFileindex;
  638. if (info.onebest) {
  639. item.message.forEach(che => {
  640. if (che.onebest == info.onebest) {
  641. che.onebest =
  642. `<font style='color: red'>${che.onebest}</font>`;
  643. }
  644. })
  645. }
  646. })
  647. this.newluyinList = jsonInfo;
  648. this.dialogList.push(jsonInfo[0]);
  649. console.log(this.dialogList, '12312321')
  650. if (type == 'show') {
  651. var itc = parseInt(info.bg / 1000)
  652. this.adasdasdasd(itc)
  653. }
  654. this.$forceUpdate()
  655. }
  656. })
  657. },
  658. //下一页
  659. ltolower() {
  660. var lengthcz = this.newluyinList.length - 1;
  661. if (this.textindex >= lengthcz) {
  662. uni.showToast({
  663. title: '到底了',
  664. duration: 2000
  665. });
  666. return
  667. } else {
  668. this.textindex = this.textindex + 1;
  669. this.newluyinList[this.textindex].message.forEach(item => {
  670. this.dialogList[0].message.push(item)
  671. })
  672. }
  673. },
  674. //上一页
  675. rolltoupper() {
  676. if (this.toptextindex == 0) {
  677. return
  678. } else {
  679. if (this.dialogList[0] == undefined) {
  680. return
  681. } else {
  682. this.toptextindex = this.toptextindex - 1;
  683. let reverselist = this.newluyinList[this.toptextindex].message;
  684. let runlist = reverselist.reverse();
  685. runlist.forEach(item => {
  686. this.dialogList[0].message.unshift(item)
  687. })
  688. }
  689. }
  690. },
  691. //搜索跳转
  692. adasdasdasd(e) {
  693. this.stepPlay(e)
  694. },
  695. //分角色标记刷新
  696. fenjiaoseunfo() {
  697. var bgcd = this.playNow * 1000;
  698. this.newluyinList = [];
  699. this.dialogList = [];
  700. let voFlagValue;
  701. if (this.roleindex == 0) {
  702. voFlagValue = 0
  703. } else {
  704. voFlagValue = 1
  705. }
  706. let tempRoleIndex;
  707. if (this.isSw) {
  708. if (this.roleindex == this.tablist.length - 1) {
  709. tempRoleIndex = 0
  710. } else {
  711. tempRoleIndex = this.roleindex
  712. }
  713. } else {
  714. tempRoleIndex = this.roleindex
  715. }
  716. uni.request({
  717. url: config.service.getCorpusAnal + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  718. "&bg=" + bgcd + "&speaker=" + tempRoleIndex + "&voFlag=" + voFlagValue +
  719. '&num=50', //仅为示例,并非真实接口地址。
  720. method: "GET",
  721. header: {
  722. 'content-type': 'application/json',
  723. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  724. },
  725. success: (data) => {
  726. this.tablist = [];
  727. let jsonInfo = JSON.parse(data.data.data.audioContent);
  728. for (var i = 0; i <= data.data.data.speakerNum; i++) {
  729. if (i === 0) {
  730. this.tablist.push({
  731. name: '全部'
  732. })
  733. } else {
  734. this.tablist.push({
  735. name: String.fromCharCode(i + 64)
  736. })
  737. }
  738. }
  739. if (data.data.data.speaker == null) {
  740. this.roleindexbiaoji = 0;
  741. this.dshfkjsdkksodofydwfkhwdfkjh = 0;
  742. } else {
  743. if (data.data.data.viewNameFlag == 1) {
  744. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  745. .speaker]
  746. .name;
  747. } else {
  748. this.tablist[data.data.data.speaker].name = this.tablist[data.data.data
  749. .speaker]
  750. .name + "顾问";
  751. }
  752. this.roleindexbiaoji = data.data.data.speaker - 1;
  753. this.dshfkjsdkksodofydwfkhwdfkjh = data.data.data.speaker - 1;
  754. }
  755. if (data.data.data.viewNameFlag == 1) {
  756. let p = [{
  757. name: '顾问'
  758. }]
  759. this.tablist = [...this.tablist, ...p]
  760. }
  761. if (this.roleindex > this.tablist.length - 1) {
  762. this.roleindex = this.tablist.length - 1
  763. this.fenjiaoseunfo()
  764. }
  765. this.speaker = data.data.data.speaker;
  766. //上拉标记点
  767. this.textindex = data.data.data.index;
  768. //下拉标记点
  769. this.toptextindex = data.data.data.index;
  770. jsonInfo.forEach(item => {
  771. item.message = JSON.parse(item.onebest)
  772. item.backindex = this.csdFileindex
  773. })
  774. console.log(jsonInfo)
  775. this.newluyinList = jsonInfo;
  776. if (this.textindex == null) {
  777. return
  778. } else {
  779. this.dialogList.push(jsonInfo[this.textindex]);
  780. }
  781. }
  782. })
  783. },
  784. // 选中下标
  785. change(index) {
  786. this.current = index;
  787. this.scrollId = ''
  788. if (index == 1) {
  789. this.zyAudio()
  790. }
  791. },
  792. //长按点击播放
  793. clickbofang(dialog, item, type) {
  794. if (type == 'show') {
  795. this.isFirstWords = 0 // 重置为零
  796. this.current = 1
  797. this.infos = item
  798. this.audioType = true
  799. this.init(this.infos, type)
  800. let data = [{
  801. src: this.recordPath,
  802. title: '录音音频',
  803. singer: '',
  804. coverImgUrl: ''
  805. }]
  806. this.$zaudio.setAudio(data)
  807. //渲染第一首音频
  808. this.$zaudio.setRender(0)
  809. setTimeout(() => {
  810. this.adasdasdasd(parseInt(item.bg / 1000))
  811. }, 1500)
  812. return
  813. } else {
  814. this.audioType = false
  815. }
  816. this.dialogList.forEach(res => {
  817. res.message.forEach(asd => {
  818. asd.isshow = false;
  819. })
  820. })
  821. this.$forceUpdate()
  822. let platetime = item.bg;
  823. let newtime = item.bg / 1000;
  824. console.log(newtime, 'newTime')
  825. this.dialogList = []
  826. uni.request({
  827. url: config.service.fastForward + '?corpusId=' + this.luyinList[this.csdFileindex].id +
  828. "&bg=" + platetime, //仅为示例,并非真实接口地址。
  829. method: "GET",
  830. header: {
  831. 'content-type': 'application/json',
  832. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  833. },
  834. success: (data) => {
  835. this.textindex = data.data.data.index;
  836. this.toptextindex = data.data.data.index;
  837. this.dialogList.push(this.newluyinList[data.data.data.index])
  838. const currTimeStr = this.formatTime(newtime)
  839. console.log(currTimeStr, 'currTimeStr')
  840. this.stepPlay(newtime);
  841. }
  842. })
  843. },
  844. TimeUpdate(currentTime) {
  845. this.playNow = Number(currentTime)
  846. if (this.dialogList.length == 0) {
  847. return
  848. } else {
  849. const message = this.dialogList[0].message;
  850. if (!message) return
  851. for (let i = 0; i < message.length; i++) {
  852. if (Math.floor(message[i].bg / 1000) <= this.playNow && this.playNow < Math.floor(message[i].ed /
  853. 1000)) {
  854. console.log(message[i].bg, '我是active', message[i].ed, '我是currentTime', this.playNow)
  855. console.log(message[i].onebest)
  856. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  857. break;
  858. }
  859. if (i < message.length - 1 && Math.floor(message[i].ed / 1000) <= this.playNow && this.playNow <=
  860. Math.floor(message[i + 1].bg / 1000)) {
  861. this.scrollId = "dialog" + this.csdFileindex + "text" + message[i].bg;
  862. break;
  863. }
  864. }
  865. }
  866. this.$forceUpdate()
  867. },
  868. //音频前进回退
  869. sliderChangeComplate(currentTime) {
  870. this.dialogList = []
  871. for (let i = 0; i < this.newluyinList.length; i++) {
  872. let message = this.newluyinList[i].message
  873. if (!message) return
  874. if (Math.floor(this.newluyinList[i].bg / 1000) <= currentTime && currentTime <= Math.floor(this
  875. .newluyinList[i].ed / 1000)) {
  876. for (let j = 0; j < message.length; j++) {
  877. let item = message[j]
  878. if (Math.floor(item.bg / 1000) <= currentTime && currentTime <= Math.floor(item.ed / 1000)) {
  879. this.scrollId = "dialog" + this.csdFileindex + "text" + item.bg;
  880. break;
  881. }
  882. if (j < message.length - 1 && Math.floor(item.ed / 1000) <= currentTime && currentTime <= Math
  883. .floor(item.bg / 1000)) {
  884. this.scrollId = "dialog" + this.csdFileindex + "text" + item.bg;
  885. break;
  886. }
  887. }
  888. this.textindex = i;
  889. this.toptextindex = i;
  890. this.dialogList.push(this.newluyinList[i])
  891. }
  892. }
  893. },
  894. // 格式化时间
  895. getTime(time) {
  896. return util.formatSecond(time)
  897. },
  898. // 格式化时间
  899. formatTime(num) {
  900. //格式化时间格式
  901. num = num.toFixed(0);
  902. let second = num % 60;
  903. if (second < 10) second = '0' + second;
  904. let min = Math.floor(num / 60);
  905. if (min < 10) min = '0' + min;
  906. return min + ":" + second;
  907. },
  908. //录音实例
  909. zyAudio(times) {
  910. let data = [{
  911. src: this.recordPath,
  912. title: '录音音频',
  913. singer: '',
  914. coverImgUrl: ''
  915. }]
  916. if (this.current == 1) {
  917. this.$zaudio.setAudio(data)
  918. //渲染第一首音频
  919. this.$zaudio.setRender(0)
  920. console.log(this.$zaudio)
  921. if (this.isFirstWords != 0) {
  922. setTimeout(() => {
  923. this.stepPlay(Math.floor(this.isFirstWords/1000))
  924. this.isFirstWords = 0
  925. }, 2000)
  926. }
  927. setTimeout(() => {
  928. this.$zaudio.operate()
  929. }, 150)
  930. }
  931. },
  932. // 跳转指定位置播放
  933. stepPlay(t) {
  934. this.$zaudio.seek(t)
  935. if (this.$zaudio.paused) {
  936. this.$zaudio.operate()
  937. }
  938. }
  939. },
  940. filters: {
  941. // violatedStatus
  942. ViolatedStatus(status) {
  943. let str = '';
  944. switch (status) {
  945. case 0:
  946. str = '待处理'
  947. break;
  948. case 1:
  949. str = '有效违禁'
  950. break;
  951. case 2:
  952. str = '无效违禁'
  953. break;
  954. }
  955. return str
  956. },
  957. // 处理状态
  958. DisposeStatus(status) {
  959. let str = '';
  960. switch (status) {
  961. case 0:
  962. str = '待处理'
  963. break;
  964. case 1:
  965. str = '有效违禁'
  966. break;
  967. case 2:
  968. str = '无效违禁'
  969. break;
  970. }
  971. return str
  972. },
  973. }
  974. }
  975. </script>
  976. <style lang="scss" scoped>
  977. .details {
  978. width: 100vw;
  979. height: calc(100vh - var(--window-top));
  980. display: flex;
  981. flex-direction: column;
  982. .header {
  983. padding: 19rpx 30rpx 0;
  984. width: 100%;
  985. height: 210rpx;
  986. .h-box {
  987. width: 100%;
  988. height: 100%;
  989. background: #fff;
  990. border-radius: 16rpx;
  991. .h-b-top {
  992. display: flex;
  993. align-items: center;
  994. justify-content: space-between;
  995. .name {
  996. font-size: 30rpx;
  997. font-weight: bold;
  998. }
  999. .status {
  1000. display: flex;
  1001. align-items: center;
  1002. .pointer {
  1003. margin: 0 .5em;
  1004. width: 12rpx;
  1005. height: 12rpx;
  1006. border-radius: 50%;
  1007. background: #2671E2;
  1008. }
  1009. }
  1010. }
  1011. .h-b-btm {
  1012. display: flex;
  1013. justify-content: space-between;
  1014. .item {
  1015. flex-shrink: 0;
  1016. display: flex;
  1017. align-items: center;
  1018. &.hit {
  1019. color: #E7483C;
  1020. font-size: bold;
  1021. }
  1022. .item-imgs {
  1023. margin-right: .5em;
  1024. width: 32rpx;
  1025. height: 32rpx;
  1026. }
  1027. }
  1028. }
  1029. }
  1030. }
  1031. .audio {
  1032. .headboxbott {
  1033. width: 100%;
  1034. height: 88rpx;
  1035. display: flex;
  1036. align-items: center;
  1037. .headovfu {
  1038. flex: 1;
  1039. height: 88rpx;
  1040. overflow: hidden;
  1041. }
  1042. .headpade {
  1043. width: 160rpx;
  1044. height: 60rpx;
  1045. display: flex;
  1046. justify-content: center;
  1047. align-items: center;
  1048. border-left: 1px solid #D6D6D6;
  1049. .biaoji {
  1050. min-width: 120rpx;
  1051. height: 48rpx;
  1052. background: #E6625B;
  1053. border-radius: 24rpx;
  1054. text-align: center;
  1055. line-height: 48rpx;
  1056. color: #FFFFFF;
  1057. font-size: 26rpx;
  1058. }
  1059. }
  1060. }
  1061. }
  1062. .scroll-Y {
  1063. flex: 1;
  1064. overflow: auto;
  1065. font-size: 36upx;
  1066. color: #999999;
  1067. background: #FFFFFF;
  1068. overflow-y: scroll;
  1069. width: 100%;
  1070. .dialog-block {
  1071. margin: 20rpx 0;
  1072. border-bottom: 1px solid #ccc;
  1073. .fileName {
  1074. text-align: center;
  1075. margin: 10rpx auto;
  1076. width: 115rpx;
  1077. height: 42rpx;
  1078. line-height: 42rpx;
  1079. background: #EFEFEF;
  1080. border-radius: 4rpx;
  1081. font-size: 20rpx;
  1082. font-weight: 400;
  1083. color: #333333;
  1084. }
  1085. }
  1086. // 违禁正则标签
  1087. .newmark {
  1088. margin: 30rpx 0 10rpx 120rpx;
  1089. .mark-item {
  1090. display: flex;
  1091. flex-wrap: wrap;
  1092. margin-bottom: 12rpx;
  1093. .markicon {
  1094. width: 30rpx;
  1095. height: 30rpx;
  1096. margin-right: 12rpx;
  1097. }
  1098. .marktext {
  1099. font-size: 24rpx;
  1100. font-family: PingFangSC-Regular, PingFang SC;
  1101. font-weight: 400;
  1102. color: #3E50E8;
  1103. min-height: 30rpx;
  1104. line-height: 30rpx;
  1105. max-width: 420rpx;
  1106. text-align: left;
  1107. word-break: break-all;
  1108. }
  1109. }
  1110. }
  1111. .text {
  1112. margin: 0 30upx;
  1113. display: flex;
  1114. align-items: center;
  1115. .avatar {
  1116. margin-right: 24rpx;
  1117. width: 64upx;
  1118. height: 64upx;
  1119. line-height: 64upx;
  1120. text-align: center;
  1121. font-size: 36rpx;
  1122. border-radius: 50%;
  1123. background: #F2F2F2;
  1124. color: #008EF2;
  1125. image {
  1126. width: 40upx;
  1127. }
  1128. }
  1129. .content {
  1130. margin-left: 30upx;
  1131. line-height: 60rpx;
  1132. text-align: left;
  1133. padding: 0 5px;
  1134. background: #2BC805;
  1135. border-radius: 8upx;
  1136. max-width: 442rpx;
  1137. color: #FFFFFF;
  1138. position: relative;
  1139. .tankuangcss {
  1140. position: absolute;
  1141. top: -140rpx;
  1142. left: -120rpx;
  1143. width: 308rpx;
  1144. height: 130rpx;
  1145. background-color: #333333;
  1146. font-size: 24rpx;
  1147. color: #FFFFFF;
  1148. padding-top: 4rpx;
  1149. padding-bottom: 4rpx;
  1150. display: flex;
  1151. flex-wrap: wrap;
  1152. border-radius: 15rpx;
  1153. z-index: 1000;
  1154. }
  1155. .bottoms {
  1156. top: unset;
  1157. bottom: -140rpx;
  1158. }
  1159. }
  1160. .contentInfo {
  1161. .info {
  1162. color: #ccc;
  1163. font-size: 18rpx;
  1164. font-size: 30rpx;
  1165. .AudioUserName {
  1166. margin-right: 20rpx;
  1167. }
  1168. }
  1169. }
  1170. .contentMain {
  1171. display: flex;
  1172. .content {
  1173. margin-left: 0;
  1174. margin-right: 30upx;
  1175. // margin: 0 30upx;
  1176. }
  1177. .play {
  1178. width: 50rpx;
  1179. height: 50rpx;
  1180. margin-right: 20rpx;
  1181. }
  1182. }
  1183. &.active {
  1184. .content {
  1185. color: #FF7538 !important;
  1186. position: relative;
  1187. }
  1188. }
  1189. &.reverse {
  1190. flex-direction: row-reverse;
  1191. text-align: right;
  1192. .avatar {
  1193. margin-left: 24rpx;
  1194. }
  1195. .content {
  1196. margin-left: 0;
  1197. margin-right: 30upx;
  1198. background: #F6F6F6;
  1199. color: #999999;
  1200. }
  1201. .contentInfo {
  1202. .info {
  1203. color: #ccc;
  1204. font-size: 18rpx;
  1205. font-size: 30rpx;
  1206. padding: 0 28rpx;
  1207. display: flex;
  1208. flex-direction: row-reverse;
  1209. .AudioUserName {
  1210. margin-left: 10rpx;
  1211. }
  1212. }
  1213. .contentMain {
  1214. display: flex;
  1215. flex-direction: row-reverse;
  1216. align-items: center;
  1217. .content {
  1218. margin-left: 0;
  1219. margin-right: 30upx;
  1220. }
  1221. .play {
  1222. width: 50rpx;
  1223. height: 50rpx;
  1224. margin-right: 20rpx;
  1225. }
  1226. }
  1227. }
  1228. }
  1229. }
  1230. }
  1231. .bottombox {
  1232. width: 100%;
  1233. min-height: 88rpx;
  1234. .bottomhead {
  1235. width: 100%;
  1236. height: 81rpx;
  1237. border-top: 1px solid #E0E0E0;
  1238. border-bottom: 1px solid #E0E0E0;
  1239. display: flex;
  1240. justify-content: space-between;
  1241. align-items: center;
  1242. .audio-slider {
  1243. width: 87%;
  1244. display: flex;
  1245. justify-content: space-between;
  1246. align-items: center;
  1247. padding-right: 30rpx;
  1248. }
  1249. .audio-slider .slider {
  1250. width: 100%;
  1251. padding: 0px 15rpx;
  1252. box-sizing: border-box;
  1253. }
  1254. .audio-time {
  1255. width: 110rpx;
  1256. text-align: right;
  1257. font-size: 26rpx;
  1258. line-height: 28rpx;
  1259. color: #70798D;
  1260. display: flex;
  1261. justify-content: space-between;
  1262. }
  1263. .audio-play {
  1264. width: 48rpx;
  1265. height: 48rpx;
  1266. flex-shrink: 0;
  1267. }
  1268. .audio-play .image {
  1269. width: 100%;
  1270. height: 100%;
  1271. margin-left: 30rpx;
  1272. }
  1273. }
  1274. .bottomtips {
  1275. padding: 0 32rpx;
  1276. min-height: 70rpx;
  1277. display: flex;
  1278. align-items: center;
  1279. background: #FDEBC6;
  1280. }
  1281. .botbotmm {
  1282. width: 100%;
  1283. height: 88rpx;
  1284. display: flex;
  1285. align-items: center;
  1286. .item {
  1287. flex: 1;
  1288. height: 100%;
  1289. display: flex;
  1290. align-items: center;
  1291. justify-content: center;
  1292. border: 1rpx solid #E0E0E0;
  1293. border-top: none;
  1294. }
  1295. }
  1296. }
  1297. .bounced {
  1298. width: 570rpx;
  1299. background: #FFFFFF;
  1300. z-index: 1000;
  1301. border-radius: 10rpx;
  1302. position: fixed;
  1303. left: 50%;
  1304. top: 50%;
  1305. transform: translate(-50%, -50%);
  1306. .headpade {
  1307. margin-top: 10rpx;
  1308. padding: 8rpx 8rpx 8rpx 8rpx;
  1309. background: #108ee9;
  1310. color: #fff;
  1311. border-radius: 16rpx;
  1312. }
  1313. /* 50%为自身尺寸的一半 */
  1314. .jiajinghuatit {
  1315. width: 100%;
  1316. height: 68rpx;
  1317. font-size: 30rpx;
  1318. text-align: center;
  1319. line-height: 68rpx;
  1320. }
  1321. .jiajinghuaview {
  1322. padding: 18rpx 18rpx 18rpx 18rpx;
  1323. display: flex;
  1324. flex-wrap: wrap;
  1325. .jiajinghuaview1 {
  1326. padding: 8rpx 8rpx 8rpx 8rpx;
  1327. font-size: 26rpx;
  1328. border-radius: 12rpx;
  1329. border: 1px solid #979797;
  1330. margin-left: 8rpx;
  1331. }
  1332. .jighuaview2 {
  1333. padding: 8rpx 18rpx 8rpx 18rpx;
  1334. font-size: 26rpx;
  1335. border-radius: 12rpx;
  1336. border: 1px solid #979797;
  1337. margin-left: 20rpx;
  1338. margin-top: 10rpx;
  1339. display: flex;
  1340. .view1-text {
  1341. text-align: center;
  1342. }
  1343. .view1-img {
  1344. width: 50rpx;
  1345. }
  1346. }
  1347. }
  1348. .bounced3 {
  1349. height: 100rpx;
  1350. width: 100%;
  1351. margin-top: 40rpx;
  1352. border-top: 1px solid #dddddd;
  1353. display: flex;
  1354. }
  1355. .bounced3-1 {
  1356. width: 50%;
  1357. height: 100%;
  1358. text-align: center;
  1359. line-height: 100rpx;
  1360. border-right: 1px solid #dddddd;
  1361. font-size: 36rpx;
  1362. color: #999999;
  1363. }
  1364. .bounced3-2 {
  1365. width: 50%;
  1366. height: 100%;
  1367. text-align: center;
  1368. line-height: 100rpx;
  1369. font-size: 36rpx;
  1370. color: #108ee9;
  1371. }
  1372. }
  1373. .reason {
  1374. padding: 0 32rpx 32rpx;
  1375. width: 686rpx;
  1376. min-height: 350rpx;
  1377. display: flex;
  1378. flex-direction: column;
  1379. box-sizing: border-box;
  1380. .resaon-title {
  1381. padding: 24rpx 0;
  1382. flex-shrink: 0;
  1383. line-height: 32rpx;
  1384. font-size: 32rpx;
  1385. box-sizing: border-box;
  1386. }
  1387. .resaon-textbox {
  1388. padding: 12rpx 16rpx 36rpx;
  1389. position: relative;
  1390. flex-grow: 1;
  1391. box-sizing: border-box;
  1392. border: 1rpx solid #979797;
  1393. // border-radius: 16rpx;
  1394. display: flex;
  1395. textarea {
  1396. flex-grow: 1;
  1397. box-sizing: border-box;
  1398. }
  1399. .lastlength {
  1400. position: absolute;
  1401. right: 32rpx;
  1402. bottom: 12rpx;
  1403. font-size: 24rpx;
  1404. box-sizing: border-box;
  1405. }
  1406. }
  1407. .button {
  1408. margin-top: 24rpx;
  1409. width: 100%;
  1410. display: flex;
  1411. justify-content: flex-end;
  1412. text {
  1413. padding: 10rpx 35rpx;
  1414. color: #fff;
  1415. background: #008EF2;
  1416. border-radius: 16rpx;
  1417. }
  1418. }
  1419. }
  1420. }
  1421. /deep/.u-tab-item {
  1422. border: 1rpx solid #dedede;
  1423. }
  1424. </style>