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.
 
 
 
 

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