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.
 
 
 

1574 lines
41 KiB

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