AI销管
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

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