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