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

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