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

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