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.
 
 
 

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