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.
 
 
 

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