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.
 
 
 

1655 lines
37 KiB

  1. <template>
  2. <view class="translation" @click="changeEditing(false)">
  3. <view style="width: 690rpx;height: 64rpx;margin: 0 auto;margin-top: 30rpx;background: #F2F2F2;border-radius: 32rpx;
  4. display: flex;align-items: center;" @tap="toKeywordsearch()">
  5. <image style="width: 28rpx;height: 28rpx;margin-left: 30rpx;" src="/static/images/search.png" mode=""></image>
  6. <text style="margin-left: 10rpx;color: #999999;font-size: 24rpx;">请输入关键字</text>
  7. </view>
  8. <view class="top" style="margin-top: 30rpx;">
  9. <view class="title">
  10. <view class="call_record_time">{{date}}</view>
  11. <view class="hash" @click="gotoChat" v-if="commentList.length != 0">
  12. 查看全部评论
  13. </view>
  14. </view>
  15. <view class="call_record_time_one" >接待时长 {{alltimeStr}}
  16. <u-icon name="list-dot" color="#333" size="48" @click="showFile"></u-icon>
  17. <view class="file-change" v-if="isshowFile">
  18. <view class="file-item" @click="filechange(item,index)"
  19. :class="csdFileindex == index ? 'fileactive' : ''"
  20. v-for="(item,index) in luyinList"
  21. :key="index">录音文件{{index+1}}</view>
  22. </view>
  23. </view>
  24. <view class="audio-container">
  25. <view class="audio-play" @tap="changePlayState">
  26. <image class="image" mode="widthFix" :src="audioPlay ? 'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/pause.png' : 'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/play.png'"></image>
  27. </view>
  28. <view class="audio-slider">
  29. <view class="audio-time">
  30. <text>{{currentTimeStr}}</text>
  31. </view>
  32. <slider class="slider" min="0" :max="sliderMax" @change="sliderChangeComplate" block-size="14"
  33. :value="sliderValue" activeColor="blue"></slider>
  34. <view class="audio-time">
  35. <text>{{timeStr}}</text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <scroll-view :scroll-top="scrollTop"
  41. lower-threshold='20px' @scrolltolower="ltolower()" :scroll-into-view="scrollId" scroll-y="true"
  42. class="text scroll-Y">
  43. <!-- 音频识别模块 -->
  44. <view>
  45. <!-- 聊天记录-->
  46. <view class="dialog-block" v-for="(dialog,i) in dialogList" :key="i">
  47. <view :id="'dialog'+i" class="fileName">录音文件</view>
  48. <view class="text" :id="'dialog'+csdFileindex+'text'+index"
  49. :class="{active: item.bg < playNow && item.ed > playNow && i== 0}"
  50. v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker"
  51. >
  52. <view class="avatar">
  53. <text v-if="item.speaker == 1" style="color: #60CBEC;">A</text>
  54. <text v-if="item.speaker == 2" style="color: #EC8B47;">B</text>
  55. <text v-if="item.speaker == 3" style="color: #4F861E;">C</text>
  56. <text v-if="item.speaker == 4" style="color: #9F61C8;">D</text>
  57. <text v-if="item.speaker == 5" style="color: #4980C8;">E</text>
  58. <text v-if="item.speaker == 6" style="color: #60CBEC;">F</text>
  59. <text v-if="item.speaker == 7" style="color: #EC8B47;">G</text>
  60. <text v-if="item.speaker == 8" style="color: #4F861E;">H</text>
  61. <text v-if="item.speaker == 9" style="color: #9F61C8;">I</text>
  62. </view>
  63. <view class="content">
  64. <view v-html="item.onebest"></view>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 点赞 -->
  69. <view class="likeArea" :class="{'liked':isLiked}">
  70. <image :src="isLiked?'/static/images/recordingManagement/likeActive.png':'/static/images/recordingManagement/like_gray.png'"
  71. mode=""></image>
  72. </view>
  73. <view class="hash" id="hash">
  74. </view>
  75. <!-- 评语列表 -->
  76. <view class="chat" v-if="commentList.length != 0">
  77. <view class="total">
  78. 全部评论(共{{commentList.length}}条)
  79. </view>
  80. <view class="list">
  81. <view class="message" v-for="(item,index) in commentList" :key="index">
  82. <u-avatar class="avator" size="72" :src="item.commentPic ||'https://qufang.oss-cn-beijing.aliyuncs.com/upload/icon/xcx/jjycrm/my/headPicture.png'"></u-avatar>
  83. <view class="right">
  84. <view class="name">
  85. {{item.commentName||"未知昵称"}}
  86. </view>
  87. <view class="subtitle" v-if="item.commentAutoGraph">
  88. {{item.commentAutoGraph}}
  89. </view>
  90. <view class="answer" v-if="item.replyName">
  91. 回复@{{item.replyName}}
  92. </view>
  93. <view class="content" v-if="item.content">
  94. {{item.content}}
  95. </view>
  96. <view class="pic" v-if="item.picUrl">
  97. <image style="width: 100%;max-width: 240px;" :src="item.picUrl" mode="widthFix"></image>
  98. </view>
  99. <view class="bottom">
  100. <view class="time">
  101. {{item.createTime}}
  102. </view>
  103. <view class="button" v-if="myId != item.commentUser" @click.stop="answer(item.commentUser,item.id)">
  104. 回复
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. </scroll-view>
  113. <!-- 写评价 -->
  114. <view class="bottomArea">
  115. <image class="voice" @click.stop="changeVoiceShow" src="/static/images/recordingManagement/voice.png" mode=""></image>
  116. <view class="inputArea">
  117. <textarea :value="content" :focus="textareaFocus" type="text" @input="changeContent" :auto-height="true" class="editor"
  118. :class="{'active':editing}" @click.stop="changeEditing(true)" @confirm="sendComment">
  119. </textarea>
  120. <view class="placeholder" :class="{'editing':editing}" v-if="!content">写评价</view>
  121. <image class="edit" v-if="!editing && content == ''" src="/static/images/recordingManagement/edit.png" mode=""></image>
  122. </view>
  123. <image class="like" v-if="myId != createUser && !editing" @click="changeLike" src="/static/images/recordingManagement/like.png"
  124. mode=""></image>
  125. <image class="add" @click.stop="uploadImage" v-if="!editing && content == ''" src="/static/images/recordingManagement/add.png"
  126. mode=""></image>
  127. <view class="send" @click="sendComment" v-if="content!=''">
  128. 发送
  129. </view>
  130. </view>
  131. <!-- 回到顶部 -->
  132. <!-- <view class="backTop" @click="gotoTop">
  133. <image src="/static/images/backTop.png" mode=""></image>
  134. </view> -->
  135. <!-- 语音输入 -->
  136. <cover-view class="voiceContent" v-if="voiceShow" @click="changeVoiceShow">
  137. <cover-view class="box" @click.stop="" @touchstart="voiceStart" @touchend="voiceEnd">
  138. <cover-view class="center">
  139. <cover-image class="voice" src="/static/images/voice.png" mode="widthFix"></cover-image>
  140. <cover-view class="text">
  141. {{isRecording?'正在输入':'长按语音输入'}}
  142. </cover-view>
  143. </cover-view>
  144. </cover-view>
  145. </cover-view>
  146. </view>
  147. </template>
  148. <script>
  149. var app = getApp();
  150. var util = require("../../../utils/util.js");
  151. var config = require("../../../config");
  152. var plugin = requirePlugin("WechatSI")
  153. let manager = plugin.getRecordRecognitionManager();
  154. export default {
  155. data() {
  156. return {
  157. dialogList: [], // 录音对话转移列表
  158. isshowFile: false, // 录音文件默认隐藏
  159. luyinList: [], //录音文件列表
  160. id: "",
  161. customerId: '',
  162. message: "", //聊天记录表
  163. durationTimeStr: "",
  164. autoLoad: true,
  165. playNow: 0,
  166. scrollTop: 0,
  167. scrollId: "",
  168. editing: false,
  169. isLiked: null,
  170. createUser: null,
  171. commentList: [], //评论列表
  172. content: "",
  173. voiceShow: false,
  174. isRecording: false,
  175. answerUserId: null,
  176. answerId: null,
  177. textareaFocus: false,
  178. myId: uni.getStorageSync("weapp_session_userInfo_data").accountId,
  179. audioPlay: false, //当前的播放状态控制
  180. sliderValue: 0, //进度条最小值
  181. end: false,
  182. sliderMax: 0, //进度条最大值
  183. innerAudioContext: "", //播放实例
  184. currentTimeStr: "00:00", //当前进度的时间
  185. timeStr: "00:00", //总的时间
  186. recordPath: "",
  187. csdFileindex:0,
  188. date: "", //年月日
  189. alltimeStr:"00:00",
  190. num: 0, //上拉 转写文件下标
  191. Bnum: 0, //下拉 转写文件下标
  192. status:0,
  193. timer:null
  194. };
  195. },
  196. onLoad: function(options) {
  197. this.customerId=options.customerId,
  198. this.getdianzan()
  199. this.getCommentList();
  200. // 当进入页面时调一次接口添加浏览量
  201. this.getView()
  202. let that=this
  203. this.timer=setTimeout(function(){
  204. that.addHot()
  205. },30000)
  206. },
  207. onShow: function() {
  208. this.initRecord();
  209. let pages = getCurrentPages();
  210. let currPage = pages[pages.length - 1]; //当前页面
  211. let info = currPage.data.info
  212. this.innerAudioContext = uni.createInnerAudioContext();
  213. this.innerAudioContext.autoplay = false;
  214. this.innerAudioContext.title = '音频';
  215. this.onPlay()
  216. this.onPause()
  217. this.onCanplay()
  218. this.onEnded()
  219. this.onSeeking()
  220. this.onSeeked()
  221. this.TimeUpdate()
  222. this.getluyinList(info);
  223. },
  224. // 在组件实例被从页面节点树移除时执行
  225. destroyed: function() {
  226. clearTimeout(this.timer)
  227. if (this.innerAudioContext) {
  228. this.innerAudioContext.destroy();
  229. }
  230. },
  231. onUnload:function(){
  232. this.innerAudioContext.destroy();
  233. },
  234. methods: {
  235. toKeywordsearch(){
  236. this.innerAudioContext.destroy();
  237. uni.navigateTo({
  238. url: '/pages/learning/Keywordsearch?customerId='+this.customerId +"&status="+this.status
  239. })
  240. },
  241. getView(){
  242. this.$u.get('/addtodigest/addPageviews',{
  243. id:this.customerId
  244. })
  245. .then(res=>{
  246. // console.log(res)
  247. })
  248. },
  249. addHot(){
  250. // console.log('30')
  251. this.$u.get('/addtodigest/addHeat',{
  252. id:this.customerId
  253. })
  254. .then(res=>{
  255. // console.log(res)
  256. })
  257. },
  258. onPlay(){
  259. this.innerAudioContext.onPlay(() => {
  260. // 播放监听
  261. console.log('播放!');
  262. this.audioPlay = true;
  263. });
  264. },
  265. onPause(){
  266. this.innerAudioContext.onPause(() => {
  267. // 暂停监听
  268. console.log('暂停播放!');
  269. this.audioPlay = false
  270. });
  271. },
  272. onCanplay() {
  273. this.innerAudioContext.onCanplay((callback) => {
  274. console.log("缓冲回调",this.innerAudioContext.duration);
  275. })
  276. },
  277. onEnded(){
  278. this.innerAudioContext.onEnded(() => {
  279. // 结束播放监听
  280. console.log('播放结束!');
  281. this.audioPlay = false;
  282. this.qeihuanwenjian()
  283. });
  284. },
  285. onSeeking(){
  286. this.innerAudioContext.onSeeking((res) => {
  287. console.log("进行跳转", res);
  288. })
  289. },
  290. onSeeked(){
  291. this.innerAudioContext.onSeeked((res) => {
  292. console.log("结束跳转", res);
  293. this.$forceUpdate()
  294. });
  295. },
  296. TimeUpdate(){
  297. this.innerAudioContext.onTimeUpdate(() => {
  298. const {
  299. currentTime,
  300. duration
  301. } = this.innerAudioContext;
  302. this.playNow = parseInt(currentTime * 1000)
  303. if (this.dialogList.length == 0) {
  304. } else {
  305. const message = this.dialogList[0].message
  306. for (let i = 0; i < message.length; i++) {
  307. if (Number(message[i].bg) < this.playNow && Number(message[i].ed) > this.playNow) {
  308. this.scrollId = "dialog" + this.csdFileindex + "text" + i;
  309. break;
  310. }
  311. }
  312. }
  313. const currTimeStr = this.formatTime(currentTime);
  314. this.sliderValue = parseInt(currentTime);
  315. // 变动的时间
  316. this.currentTimeStr = currTimeStr;
  317. //进度条最大值
  318. this.sliderMax = this.luyinList[this.csdFileindex].recordDuration;
  319. this.$forceUpdate()
  320. });
  321. },
  322. //下一页
  323. ltolower() {
  324. var lengthcz=this.luyinList.length-1;
  325. if (this.num >= lengthcz) {
  326. uni.showToast({
  327. title: '到底了',
  328. duration: 2000
  329. });
  330. return
  331. }else {
  332. this.num=this.num+1;
  333. uni.showLoading({
  334. title: '加载中'
  335. });
  336. setTimeout(function() {
  337. uni.hideLoading();
  338. }, 2000);
  339. uni.request({
  340. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.num].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  341. method: "GET",
  342. header: {
  343. 'content-type': 'application/json',
  344. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  345. },
  346. success: (data) => {
  347. if (data.data.code == 10000) {
  348. if (data.data.data.audioContent.length == 0) {
  349. setTimeout(function() {
  350. uni.hideLoading();
  351. }, 2000);
  352. } else {
  353. const jsonInfo = JSON.parse(data.data.data.audioContent);
  354. this.dialogList.push({
  355. message: jsonInfo
  356. });
  357. this.dialogList.forEach((asd, idx) => {
  358. asd.message.forEach((qwe, inde) => {
  359. qwe.isshow = false;
  360. })
  361. })
  362. }
  363. }
  364. },
  365. })
  366. }
  367. },
  368. //上一页
  369. rolltoupper() {
  370. if (this.csdFileindex == 0) {
  371. uni.showToast({
  372. title: '到头了',
  373. duration: 2000
  374. });
  375. return
  376. } else if(this.Bnum == 0){
  377. uni.showToast({
  378. title: '到头了',
  379. duration: 2000
  380. });
  381. return
  382. }else {
  383. this.Bnum=this.Bnum-1;
  384. uni.showLoading({
  385. title: '加载中'
  386. });
  387. setTimeout(function() {
  388. uni.hideLoading();
  389. }, 2000);
  390. uni.request({
  391. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.Bnum].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  392. method: "GET",
  393. header: {
  394. 'content-type': 'application/json',
  395. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  396. },
  397. success: (data) => {
  398. if (data.data.code == 10000) {
  399. if (data.data.data.audioContent.length == 0) {
  400. setTimeout(function() {
  401. uni.hideLoading();
  402. }, 2000);
  403. } else {
  404. const jsonInfo = JSON.parse(data.data.data.audioContent);
  405. this.dialogList.unshift({
  406. message: jsonInfo
  407. });
  408. this.dialogList.forEach((asd, idx) => {
  409. asd.message.forEach((qwe, inde) => {
  410. qwe.isshow = false;
  411. })
  412. })
  413. }
  414. }
  415. },
  416. })
  417. }
  418. },
  419. //获取点赞列表isLiked likegetLike
  420. getdianzan(){
  421. uni.request({
  422. url: config.service.likegetLike + '?targetId=' + this.customerId, //仅为示例,并非真实接口地址。
  423. method:"GET",
  424. header: {
  425. 'content-type': 'application/json',
  426. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  427. },
  428. success: (data) => {
  429. if(data.data.code==10000){
  430. this.isLiked=data.data.data.like;
  431. }else{
  432. uni.hideLoading();
  433. uni.showModal({
  434. title: '提示',
  435. content: '请求数据失败,请重新尝试',
  436. showCancel: false
  437. });
  438. }
  439. },
  440. fail(error) {
  441. uni.hideLoading();
  442. uni.showModal({
  443. title: '提示',
  444. content: '网络异常,请重新尝试',
  445. showCancel: false
  446. });
  447. return false;
  448. }
  449. });
  450. },
  451. // 获取评论列表
  452. getCommentList() {
  453. const that = this;
  454. util.getRequestPromise(config.service.cmmentList + '?targetId=' + this.customerId, {}, false, "GET").then(data => {
  455. let tmp = data;
  456. tmp.reverse();
  457. that.commentList = tmp;
  458. });
  459. },
  460. // 获取录音记录列表
  461. getluyinList(info) {
  462. this.sliderMax = 0; //进度条最大值
  463. this.timeStr = "00:00"; //总的时间
  464. const parames = {
  465. pageNum: 1,
  466. pageSize: 100,
  467. query: {
  468. customerId: this.customerId
  469. }
  470. }
  471. this.$u.post("/corpus/findByPage", parames).then(res => {
  472. if (res && res.length) {
  473. let alltime = 1;
  474. res.forEach(item => {
  475. alltime += item.recordDuration
  476. })
  477. this.alltimeStr = this.getTime(alltime)
  478. if(info){
  479. res.forEach((item,index) => {
  480. if(item.id==info.id){
  481. this.csdFileindex=index;
  482. this.recordPath = res[index].recordPath
  483. this.sliderMax = this.getTime(res[index].recordDuration)
  484. this.timeStr = this.getTime(res[index].recordDuration)
  485. this.date = res[index].receptionTime;
  486. this.isshowFile = false;
  487. this.getCorpusAnalysis(info);
  488. this.creatAudio()
  489. var itc=parseInt(info.bg/1000)
  490. this.adasdasdasd(itc)
  491. }
  492. })
  493. }else{
  494. this.recordPath = res[0].recordPath
  495. this.sliderMax = this.getTime(res[0].recordDuration)
  496. this.timeStr = this.getTime(res[0].recordDuration)
  497. this.date = res[0].receptionTime
  498. this.innerAudioContext.src = this.recordPath;
  499. this.changePlayState()
  500. this.luyinList = res;
  501. this.getCorpusAnalysis()
  502. }
  503. }
  504. })
  505. },
  506. //搜索跳转
  507. adasdasdasd(e) {
  508. const currTimeStr = this.formatTime(e)
  509. this.currentTimeStr = currTimeStr
  510. this.innerAudioContext.seek(e);
  511. this.innerAudioContext.play();
  512. },
  513. // 获取转义后的对话结果
  514. getCorpusAnalysis(info){
  515. this.dialogList = [];
  516. uni.showLoading({
  517. title: '加载中'
  518. });
  519. uni.request({
  520. url: config.service.getCorpusAnalysis + '?corpusId=' + this.luyinList[this.csdFileindex].id+"&customerId="+this.customerId, //仅为示例,并非真实接口地址。
  521. method:"GET",
  522. header: {
  523. 'content-type': 'application/json',
  524. 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
  525. },
  526. success: (data) => {
  527. if(data.data.code==10000){
  528. if(data.data.data.audioContent.length==0){
  529. setTimeout(function () {
  530. uni.hideLoading();
  531. }, 2000);
  532. }else{
  533. const jsonInfo = JSON.parse(data.data.data.audioContent);
  534. this.dialogList.push({
  535. message: jsonInfo
  536. });
  537. setTimeout(function () {
  538. uni.hideLoading();
  539. }, 2000);
  540. }
  541. }else{
  542. uni.hideLoading();
  543. uni.showModal({
  544. title: '提示',
  545. content: '请求数据失败,请重新尝试',
  546. showCancel: false
  547. });
  548. }
  549. },
  550. fail(error) {
  551. uni.hideLoading();
  552. uni.showModal({
  553. title: '提示',
  554. content: '网络异常,请重新尝试',
  555. showCancel: false
  556. });
  557. return false;
  558. }
  559. });
  560. },
  561. getTime(time) {
  562. return util.formatSecond(time)
  563. },
  564. // 文件切换播放
  565. filechange(item, i) {
  566. this.num=i;//下拉起始位置
  567. this.Bnum=i;
  568. this.innerAudioContext.destroy()
  569. this.csdFileindex=i;
  570. this.recordPath = item.recordPath;
  571. this.sliderMax = this.getTime(item.recordDuration);
  572. this.timeStr = this.getTime(item.recordDuration);
  573. this.date=item.receptionTime;
  574. this.isshowFile=false;
  575. this.creatAudio()
  576. this.getCorpusAnalysis()
  577. },
  578. //录音实例
  579. creatAudio() {
  580. this.innerAudioContext = uni.createInnerAudioContext();
  581. this.innerAudioContext.autoplay = true;
  582. this.innerAudioContext.src = this.recordPath;
  583. this.innerAudioContext.title = '音频';
  584. this.onPlay()
  585. this.onPause()
  586. this.onCanplay()
  587. this.onEnded()
  588. this.onSeeking()
  589. this.onSeeked()
  590. this.TimeUpdate()
  591. },
  592. // 自动播放下一个文件
  593. qeihuanwenjian(){
  594. let index=this.csdFileindex+1;
  595. if(index<this.luyinList.length){
  596. this.csdFileindex=index;
  597. this.getCorpusAnalysis()
  598. let item=this.luyinList[this.csdFileindex];
  599. let i=this.csdFileindex;
  600. this.filechange(item,i)
  601. }
  602. },
  603. // 录音暂停播放
  604. changePlayState() {
  605. if (this.audioPlay == false) {
  606. this.innerAudioContext.play();
  607. } else {
  608. this.innerAudioContext.pause()
  609. }
  610. },
  611. sliderChange() {
  612. },
  613. //音频前进回退
  614. sliderChangeComplate(e) {
  615. const currTimeStr = this.formatTime(e.detail.value)
  616. this.currentTimeStr = currTimeStr
  617. this.innerAudioContext.seek(e.detail.value);
  618. this.innerAudioContext.play();
  619. },
  620. formatTime(num) {
  621. //格式化时间格式
  622. num = num.toFixed(0);
  623. let second = num % 60;
  624. if (second < 10) second = '0' + second;
  625. let min = Math.floor(num / 60);
  626. if (min < 10) min = '0' + min;
  627. return min + ":" + second;
  628. },
  629. //录音文件切换隐藏
  630. showFile() {
  631. this.isshowFile = !this.isshowFile
  632. },
  633. changeVoiceShow() {
  634. this.voiceShow = !this.voiceShow;
  635. },
  636. voiceStart: function() {
  637. manager.start({
  638. lang: "zh_CN"
  639. });
  640. },
  641. voiceEnd: function() {
  642. // uni.showToast();
  643. if (this.isRecording) {
  644. uni.showLoading({
  645. title: "识别中"
  646. })
  647. }
  648. this.voiceShow = false;
  649. this.isRecording = false;
  650. manager.stop();
  651. },
  652. // 语音初始化
  653. initRecord() {
  654. const that = this;
  655. manager.onStart = function(res) {
  656. that.isRecording = true;
  657. // this.voiceState = "onStart:" + res.msg + "正在录音"
  658. };
  659. //有新的识别内容返回,则会调用此事件
  660. manager.onRecognize = (res) => {
  661. console.log('ing' + res.result);
  662. }
  663. // 识别结束事件
  664. manager.onStop = (res) => {
  665. uni.hideLoading();
  666. let newText = that.content + res.result;
  667. if (newText.length > 140) {
  668. newText = newText.substring(0, 140)
  669. }
  670. that.content = newText;
  671. that.textareaFocus = true;
  672. }
  673. // 识别错误事件
  674. manager.onError = (res) => {
  675. uni.hideLoading();
  676. }
  677. },
  678. changeContent(e) {
  679. this.content = e.detail.value;
  680. },
  681. answer(userId, tid) {
  682. this.answerId = tid;
  683. this.answerUserId = userId;
  684. this.editing = true;
  685. this.textareaFocus = true;
  686. },
  687. // 保存评论
  688. sendComment() {
  689. if (this.content == "") {
  690. uni.showToast({
  691. icon: "none",
  692. title: "请输入标题"
  693. })
  694. return;
  695. }
  696. let parames = {
  697. targetId: this.customerId,
  698. content: this.content,
  699. commentType: 1
  700. };
  701. if (this.answerUserId) {
  702. parames.replyCommentId = this.answerId;
  703. parames.replyUser = this.answerUserId;
  704. }
  705. const that = this;
  706. util.getRequestPromise(config.service.saveCmment, parames, false).then(data => {
  707. that.getCommentList();
  708. uni.showToast({
  709. title: "评论成功",
  710. icon: "none"
  711. })
  712. that.textareaFocus = false;
  713. that.content = "";
  714. });
  715. },
  716. uploadImage() {
  717. const that = this;
  718. var parames = {
  719. targetId: that.id,
  720. commentType: 1
  721. };
  722. if (this.answerUserId) {
  723. parames.replyCommentId = this.answerId;
  724. parames.replyUser = this.answerUserId;
  725. }
  726. uni.chooseImage({
  727. count: 1, //默认9
  728. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  729. sourceType: ['album', 'camera'],
  730. success: function(res) {
  731. uni.showLoading({
  732. title: "上传中"
  733. })
  734. uni.uploadFile({
  735. url: config.service.saveCmmentUpload,
  736. filePath: res.tempFilePaths[0],
  737. name: 'file',
  738. header: {
  739. "Access-Token": uni.getStorageSync('weapp_session_login_data').token
  740. },
  741. formData: parames,
  742. success: (uploadFileRes) => {
  743. that.getCommentList();
  744. uni.hideLoading();
  745. uni.showToast({
  746. icon: "none",
  747. title: "上传成功"
  748. })
  749. console.log(uploadFileRes.data);
  750. }
  751. });
  752. }
  753. });
  754. },
  755. uploadAudio() {
  756. },
  757. changeLike() {
  758. uni.showLoading({
  759. title: "请求中",
  760. mask: true
  761. })
  762. if (this.isLiked) {
  763. this.cancelLike();
  764. } else {
  765. this.saveLike();
  766. }
  767. },
  768. // 点赞
  769. saveLike() {
  770. const that = this;
  771. util.getRequestPromise(config.service.saveLike, {
  772. targetId: this.customerId
  773. }, false).then(data => {
  774. that.isLiked = true;
  775. uni.hideLoading();
  776. uni.showToast({
  777. icon: "none",
  778. title: "点赞成功"
  779. })
  780. });
  781. },
  782. // 取消点赞
  783. cancelLike() {
  784. const that = this;
  785. util.getRequestPromise(config.service.cancelLike, {
  786. targetId: this.customerId
  787. }, false).then(data => {
  788. that.isLiked = false;
  789. uni.hideLoading();
  790. uni.showToast({
  791. icon: "none",
  792. title: "取消点赞成功"
  793. })
  794. });
  795. },
  796. gotoChat() {
  797. this.scrollId = null;
  798. this.$nextTick(() => {
  799. this.scrollId = "hash";
  800. })
  801. },
  802. gotoTop() {
  803. this.scrollId = null;
  804. this.$nextTick(() => {
  805. this.scrollId = "top";
  806. })
  807. },
  808. changeEditing(type) {
  809. this.editing = type;
  810. this.answerId = null;
  811. this.answerUserId = null;
  812. this.textareaFocus = false;
  813. this.dialogList.forEach(res=>{
  814. res.message.forEach(asd=>{
  815. asd.isshow=false;
  816. })
  817. })
  818. }
  819. }
  820. };
  821. </script>
  822. <style lang="scss" scoped>
  823. .biaoqiantom{
  824. background-color: #008EF2;
  825. color: #FFFFFF;
  826. border: none;
  827. }
  828. // 表单
  829. .tian-view{
  830. width: 570upx;
  831. background-color: #FFFFFF;
  832. border-bottom: 1px solid #ededee;
  833. display: flex;
  834. min-height: 96rpx;
  835. .tian-view-t1{
  836. width: 20rpx;
  837. font-size: 34rpx;
  838. height: 34rpx;
  839. line-height: 110rpx;
  840. letter-spacing: 0px;
  841. color: red;
  842. }
  843. .tian-view-t2{
  844. width:30%;
  845. min-height: 96rpx;
  846. line-height: 96rpx;
  847. font-size: 34rpx;
  848. color: #333;
  849. }
  850. .tian-view-t3{
  851. width: 61%;
  852. padding-top: 31rpx;
  853. padding-bottom:31rpx;
  854. display:flex;
  855. .tian-input{
  856. width:98%;
  857. font-size: 34rpx;
  858. border: none;
  859. }
  860. }
  861. }
  862. .zhezhoa {
  863. position: fixed;
  864. top: 0;
  865. left: 0;
  866. z-index: 999;
  867. width: 100%;
  868. height: 100vh;
  869. opacity: 0.5;
  870. background-color: #666666;
  871. }
  872. .bounced {
  873. width: 570upx;
  874. background: #FFFFFF;
  875. z-index: 1000;
  876. border-radius: 10upx;
  877. position: fixed;
  878. left: 50%;
  879. top: 50%;
  880. transform: translate(-50%, -50%);
  881. /* 50%为自身尺寸的一半 */
  882. .jiajinghuatit{
  883. width: 100%;
  884. height: 68rpx;
  885. font-size: 30rpx;
  886. text-align: center;
  887. line-height: 68rpx;
  888. }
  889. .jiajinghuaview{
  890. padding: 18rpx 18rpx 18rpx 18rpx;
  891. display: flex;
  892. flex-wrap:wrap;
  893. .jiajinghuaview1{
  894. padding: 8rpx 8rpx 8rpx 8rpx;
  895. font-size: 26rpx;
  896. border-radius: 12rpx;
  897. border: 1px solid #979797;
  898. margin-left: 8rpx;
  899. }
  900. .jighuaview2{
  901. padding: 8rpx 8rpx 8rpx 8rpx;
  902. font-size: 26rpx;
  903. border-radius: 12rpx;
  904. border: 1px solid #979797;
  905. margin-left: 8rpx;
  906. display: flex;
  907. .view1-text{
  908. text-align: center;
  909. // border-right: 1rpx solid red;
  910. }
  911. .view1-img{
  912. width: 50rpx;
  913. }
  914. }
  915. }
  916. .bounced3 {
  917. height: 100upx;
  918. width: 100%;
  919. margin-top: 40upx;
  920. border-top: 1px solid #dddddd;
  921. display: flex;
  922. }
  923. .bounced3-1 {
  924. width: 50%;
  925. height: 100%;
  926. text-align: center;
  927. line-height: 100upx;
  928. border-right: 1px solid #dddddd;
  929. font-size: 36upx;
  930. color: #999999;
  931. }
  932. .bounced3-2 {
  933. width: 50%;
  934. height: 100%;
  935. text-align: center;
  936. line-height: 100upx;
  937. font-size: 36upx;
  938. color: #108ee9;
  939. }
  940. }
  941. .bosdttom{
  942. color: #008EF2;
  943. }
  944. .tab-box {
  945. width: 100%;
  946. display: flex;
  947. justify-content: center;
  948. align-items: center;
  949. .yinpinshibie {
  950. width: 156rpx;
  951. height: 50rpx;
  952. font-size: 36rpx;
  953. font-weight: 400;
  954. color: #333333;
  955. text-align: center;
  956. line-height: 50rpx;
  957. letter-spacing: 2rpx;
  958. margin-right: 188rpx;
  959. &.active {
  960. position: relative;
  961. &::after {
  962. position: absolute;
  963. content: '';
  964. width: 119rpx;
  965. height: 8rpx;
  966. background: #008EF2;
  967. border-radius: 4rpx;
  968. top: 50rpx;
  969. right: 0;
  970. left: 0;
  971. margin: 0 auto;
  972. }
  973. }
  974. }
  975. .rate {
  976. width: 156rpx;
  977. height: 50rpx;
  978. font-size: 36rpx;
  979. font-weight: 400;
  980. color: #333333;
  981. line-height: 50rpx;
  982. letter-spacing: 2rpx;
  983. text-align: center;
  984. &.active {
  985. position: relative;
  986. &::after {
  987. position: absolute;
  988. content: '';
  989. width: 119rpx;
  990. height: 8rpx;
  991. background: #008EF2;
  992. border-radius: 4rpx;
  993. top: 50rpx;
  994. right: 0;
  995. left: 0;
  996. margin: 0 auto;
  997. }
  998. }
  999. }
  1000. }
  1001. .dialog-block {
  1002. margin: 20rpx 0;
  1003. border-bottom: 1px solid #ccc;
  1004. .fileName {
  1005. text-align: center;
  1006. margin: 10rpx auto;
  1007. width: 115rpx;
  1008. height: 42rpx;
  1009. line-height: 42rpx;
  1010. background: #EFEFEF;
  1011. border-radius: 4rpx;
  1012. font-size: 20rpx;
  1013. font-weight: 400;
  1014. color: #333333;
  1015. }
  1016. }
  1017. // 评分
  1018. .rate-box {
  1019. padding: 10rpx 20rpx;
  1020. .date {
  1021. width: 300rpx;
  1022. height: 33rpx;
  1023. font-size: 24rpx;
  1024. font-weight: 400;
  1025. color: #333333;
  1026. line-height: 33rpx;
  1027. letter-spacing: 1rpx;
  1028. margin-bottom: 8rpx;
  1029. }
  1030. .title {
  1031. width: 100%;
  1032. height: 42rpx;
  1033. font-size: 30rpx;
  1034. font-weight: 500;
  1035. color: #333333;
  1036. line-height: 42rpx;
  1037. letter-spacing: 2rpx;
  1038. margin-bottom: 20rpx;
  1039. }
  1040. .level1 {
  1041. display: flex;
  1042. align-items: center;
  1043. .level-name {
  1044. width: 104rpx;
  1045. height: 33rpx;
  1046. font-size: 24rpx;
  1047. font-weight: 500;
  1048. color: #333333;
  1049. line-height: 33rpx;
  1050. letter-spacing: 1rpx;
  1051. margin-right: 10rpx;
  1052. }
  1053. .level-progress {
  1054. flex: 1;
  1055. border-radius: 11rpx;
  1056. height: 21rpx;
  1057. background-color: #BEE4FF;
  1058. position: relative;
  1059. .color {
  1060. width: 0;
  1061. position: absolute;
  1062. top: 0;
  1063. left: 0;
  1064. height: 21rpx;
  1065. border-radius: 11rpx 0 0 11rpx;
  1066. background-color: #008EF2;
  1067. }
  1068. }
  1069. .level-rate {
  1070. width: 65rpx;
  1071. height: 33rpx;
  1072. font-size: 24rpx;
  1073. font-weight: 500;
  1074. color: #333333;
  1075. line-height: 33rpx;
  1076. letter-spacing: 1rpx;
  1077. margin: 0 20rpx 0 15rpx;
  1078. }
  1079. .arrow {
  1080. width: 37rpx;
  1081. height: 21rpx;
  1082. padding: 5rpx 20rpx;
  1083. }
  1084. .rotatearrow {
  1085. transform: rotate(270deg);
  1086. }
  1087. }
  1088. .level1-subbox {
  1089. display: flex;
  1090. margin-top: 20rpx;
  1091. flex-wrap: wrap;
  1092. .sub-name {
  1093. width: 50%;
  1094. display: flex;
  1095. margin-bottom: 18rpx;
  1096. .subitem-name {
  1097. width: 104rpx;
  1098. height: 33rpx;
  1099. font-size: 24rpx;
  1100. font-weight: 400;
  1101. color: #999999;
  1102. line-height: 33rpx;
  1103. letter-spacing: 1rpx;
  1104. margin-right: 12rpx;
  1105. }
  1106. .checkimg {
  1107. width: 27rpx;
  1108. height: 27rpx;
  1109. }
  1110. }
  1111. }
  1112. }
  1113. .luyin {
  1114. height: 100rpx;
  1115. width: 100%;
  1116. }
  1117. .translation {
  1118. padding-left: 30rpx;
  1119. padding-right: 30rpx;
  1120. background: #FFFFFF;
  1121. display: flex;
  1122. flex-direction: column;
  1123. height: 100vh;
  1124. }
  1125. .translation .top {
  1126. margin: 0 -30upx;
  1127. padding: 0 30upx;
  1128. background: #ffffff;
  1129. border-bottom: 1rpx solid #F2F2F2;
  1130. padding-bottom: 10rpx;
  1131. }
  1132. .translation .top .title {
  1133. display: flex;
  1134. justify-content: space-between;
  1135. .hash {
  1136. color: rgba(21, 144, 233, 1);
  1137. font-size: 24upx;
  1138. }
  1139. }
  1140. .call_record_time {
  1141. height: 44rpx;
  1142. font-size: 28rpx;
  1143. font-weight: 600;
  1144. color: #008EF2;
  1145. line-height: 44rpx;
  1146. }
  1147. .call_record_time_one {
  1148. height: 48rpx;
  1149. font-size: 24rpx;
  1150. font-weight: 500;
  1151. color: #70798d;
  1152. line-height: 48rpx;
  1153. display: flex;
  1154. justify-content: space-between;
  1155. position: relative;
  1156. .diangweitupian{
  1157. width: 46rpx;
  1158. height: 46rpx;
  1159. // border: 1px solid red;
  1160. position: absolute;
  1161. top: 0rpx;
  1162. right: 75rpx;
  1163. }
  1164. .file-change {
  1165. position: absolute;
  1166. top: 50rpx;
  1167. right: 0rpx;
  1168. width: 184rpx;
  1169. background: #FFFFFF;
  1170. box-shadow: 0rpx 0rpx 6rpx 2rpx rgba(230, 230, 230, 0.5);
  1171. border-radius: 4rpx;
  1172. z-index: 99;
  1173. height: auto;
  1174. max-height: 600rpx;
  1175. overflow: auto;
  1176. }
  1177. .file-item {
  1178. width: 184rpx;
  1179. height: 60rpx;
  1180. line-height: 60rpx;
  1181. text-align: center;
  1182. font-size: 30rpx;
  1183. font-weight: 400;
  1184. color: #333333;
  1185. border-bottom: 1rpx solid #E2E2E2;
  1186. }
  1187. .file-item:last-child {
  1188. border: 0
  1189. }
  1190. .fileactive {
  1191. color: #008EF2
  1192. }
  1193. }
  1194. .scroll-Y {
  1195. font-size: 36upx;
  1196. color: #999999;
  1197. background: #FFFFFF;
  1198. margin-top: 30upx;
  1199. flex: 1;
  1200. overflow-y: scroll;
  1201. width: 100%;
  1202. }
  1203. .scroll-Y .text {
  1204. margin: 50upx 30upx;
  1205. line-height: 80upx;
  1206. display: flex;
  1207. align-items: center;
  1208. }
  1209. .scroll-Y .text[data-speaker="2"],
  1210. .scroll-Y .text[data-speaker="4"],
  1211. .scroll-Y .text[data-speaker="6"] {
  1212. flex-direction: row-reverse;
  1213. text-align: right;
  1214. .content {
  1215. margin-left: 0;
  1216. margin-right: 30upx;
  1217. background: #F6F6F6;
  1218. color: #999999;
  1219. }
  1220. }
  1221. .scroll-Y .text .avatar {
  1222. width: 64upx;
  1223. height: 64upx;
  1224. line-height: 64upx;
  1225. text-align: center;
  1226. // border: 1rpx solid red;
  1227. font-size: 36rpx;
  1228. border-radius: 50%;
  1229. background: #F2F2F2;
  1230. color: #008EF2;
  1231. // display: flex;
  1232. // justify-content: center;
  1233. // align-items: center;
  1234. // image {
  1235. // width: 40upx;
  1236. // }
  1237. }
  1238. .scroll-Y .text .content {
  1239. margin-left: 30upx;
  1240. line-height: 60rpx;
  1241. text-align: left;
  1242. padding: 0 5px;
  1243. background: #2BC805;
  1244. border-radius: 8upx;
  1245. max-width: 442rpx;
  1246. color: #FFFFFF;
  1247. position: relative;
  1248. .tankuangcss{
  1249. position: absolute;
  1250. top: -53rpx;
  1251. left: -80rpx;
  1252. width: 318rpx;
  1253. height: 68rpx;
  1254. background-color: #333333;
  1255. font-size: 24rpx;
  1256. color: #FFFFFF;
  1257. padding-top: 4rpx;
  1258. padding-bottom:4rpx;
  1259. display: flex;
  1260. align-items: center;
  1261. border-radius: 15rpx;
  1262. }
  1263. }
  1264. .scroll-Y .text.active .content {
  1265. color: #38FFF1;
  1266. position: relative;
  1267. }
  1268. .scroll-Y .text.active[data-speaker="2"] .content,
  1269. .scroll-Y .text.active[data-speaker="4"] .content,
  1270. .scroll-Y .text.active[data-speaker="6"] .content {
  1271. color: #FF7538;
  1272. position: relative;
  1273. }
  1274. .likeArea {
  1275. width: 86upx;
  1276. height: 84upx;
  1277. margin: 20upx auto 38upx auto;
  1278. border-radius: 50%;
  1279. display: flex;
  1280. justify-content: center;
  1281. align-items: center;
  1282. border: 1upx solid #C1C2C1;
  1283. &.liked {
  1284. border: 1upx solid rgba(21, 144, 233, 1);
  1285. }
  1286. image {
  1287. width: 38upx;
  1288. height: 39upx;
  1289. }
  1290. }
  1291. .chat {
  1292. display: flex;
  1293. flex-direction: column;
  1294. border-top: 1upx solid rgba(151, 151, 151, 0.4);
  1295. padding-top: 20upx;
  1296. .total {
  1297. color: rgba(21, 144, 233, 1);
  1298. font-size: 24upx;
  1299. }
  1300. .list {
  1301. display: flex;
  1302. flex-direction: column;
  1303. .message {
  1304. display: flex;
  1305. margin-top: 20upx;
  1306. border-bottom: 1upx solid rgba(151, 151, 151, 0.4);
  1307. padding-bottom: 20upx;
  1308. &:last-child {
  1309. border-bottom: 0;
  1310. }
  1311. .avator {
  1312. margin-left: 120upx;
  1313. }
  1314. &:first-child {
  1315. .avator {
  1316. margin-left: 0;
  1317. }
  1318. }
  1319. .right {
  1320. display: flex;
  1321. flex-direction: column;
  1322. margin-left: 20upx;
  1323. flex: 1;
  1324. .name {
  1325. color: rgba(16, 16, 16, 1);
  1326. font-size: 30upx;
  1327. }
  1328. .subtitle {
  1329. color: rgba(120, 120, 120, 1);
  1330. font-size: 24upx;
  1331. margin-top: 16upx;
  1332. }
  1333. .answer {
  1334. font-size: 24upx;
  1335. color: #787878;
  1336. }
  1337. .content {
  1338. color: rgba(49, 48, 48, 1);
  1339. font-size: 30upx;
  1340. margin-top: 20upx;
  1341. position: relative;
  1342. }
  1343. .bottom {
  1344. margin-top: 16upx;
  1345. display: flex;
  1346. justify-content: space-between;
  1347. .time {
  1348. color: rgba(185, 185, 185, 1);
  1349. font-size: 20upx;
  1350. }
  1351. .button {
  1352. color: rgba(144, 144, 144, 1);
  1353. font-size: 30upx;
  1354. width: 111upx;
  1355. height: 44upx;
  1356. border-radius: 22upx;
  1357. border: 1upx solid rgba(151, 151, 151, 1);
  1358. text-align: center;
  1359. }
  1360. }
  1361. }
  1362. }
  1363. }
  1364. }
  1365. .bottomArea {
  1366. min-height: 90upx;
  1367. background: #F0F2F5;
  1368. width: 100vw;
  1369. margin: 0 -30rpx;
  1370. display: flex;
  1371. align-items: center;
  1372. border-top: 1upx solid rgba(151, 151, 151, 0.25);
  1373. .voice {
  1374. width: 44upx;
  1375. height: 44upx;
  1376. margin-left: 38upx;
  1377. }
  1378. .inputArea {
  1379. margin-left: 38upx;
  1380. margin-right: 38upx;
  1381. flex: 1;
  1382. display: flex;
  1383. position: relative;
  1384. .edit {
  1385. width: 30upx;
  1386. height: 28upx;
  1387. position: absolute;
  1388. top: 31upx;
  1389. left: 27upx;
  1390. }
  1391. .editor {
  1392. background: rgba(0, 139, 245, 0.17);
  1393. border-radius: 29upx;
  1394. flex: 1;
  1395. min-height: 58upx;
  1396. width: unset;
  1397. padding: 0 32upx;
  1398. font-size: 30upx;
  1399. margin: 16rpx 0;
  1400. line-height: 29px;
  1401. }
  1402. .placeholder {
  1403. position: absolute;
  1404. left: 70rpx;
  1405. top: 22rpx;
  1406. color: #26A2FF;
  1407. &.editing {
  1408. left: 36rpx;
  1409. }
  1410. }
  1411. }
  1412. .download {
  1413. width: 41upx;
  1414. height: 35upx;
  1415. margin-right: 36upx;
  1416. }
  1417. .like {
  1418. width: 38upx;
  1419. height: 39upx;
  1420. margin-right: 38upx;
  1421. }
  1422. .add {
  1423. width: 50upx;
  1424. height: 50upx;
  1425. margin-right: 38upx;
  1426. }
  1427. .send {
  1428. background: #1590e9;
  1429. color: white;
  1430. padding: 10rpx 20rpx;
  1431. margin: 5px;
  1432. border-radius: 8rpx;
  1433. }
  1434. }
  1435. .backTop {
  1436. width: 60upx;
  1437. height: 60upx;
  1438. background: rgba(211, 235, 253, 1);
  1439. box-shadow: 0upx 0upx 2upx 4upx rgba(38, 161, 255, 0.04);
  1440. border-radius: 50%;
  1441. position: fixed;
  1442. bottom: 200upx;
  1443. right: 8upx;
  1444. display: flex;
  1445. justify-content: center;
  1446. align-items: center;
  1447. image {
  1448. width: 26upx;
  1449. height: 34upx;
  1450. }
  1451. }
  1452. .voiceContent {
  1453. position: fixed;
  1454. top: 0;
  1455. bottom: 0;
  1456. left: 0;
  1457. right: 0;
  1458. width: 100vw;
  1459. height: 100vh;
  1460. display: flex;
  1461. justify-content: center;
  1462. align-items: center;
  1463. background: rgba(30, 30, 30, 0.4592);
  1464. z-index: 10001;
  1465. }
  1466. .box {
  1467. background: rgba(21, 144, 233, 0.299);
  1468. width: 524upx;
  1469. height: 524upx;
  1470. border-radius: 50%;
  1471. display: flex;
  1472. align-items: center;
  1473. justify-content: center;
  1474. .center {
  1475. width: 412upx;
  1476. height: 412upx;
  1477. background: #1590E9;
  1478. border-radius: 50%;
  1479. display: flex;
  1480. align-items: center;
  1481. justify-content: center;
  1482. flex-direction: column;
  1483. .voice {
  1484. width: 110upx;
  1485. height: 133upx;
  1486. }
  1487. .text {
  1488. color: #FFFFFF;
  1489. font-size: 36upx;
  1490. margin-top: 24upx;
  1491. }
  1492. }
  1493. }
  1494. .audio-container {
  1495. width: 100%;
  1496. display: flex;
  1497. justify-content: space-between;
  1498. align-items: center;
  1499. .audio-head {
  1500. width: 60rpx;
  1501. height: 60rpx;
  1502. flex-shrink: 0;
  1503. }
  1504. .audio-head .image {
  1505. width: 100%;
  1506. height: 100%;
  1507. }
  1508. .audio-slider {
  1509. width: 96%;
  1510. position: relative;
  1511. padding: 2px 0rpx 0px 20px;
  1512. display: flex;
  1513. justify-content: space-between;
  1514. align-items: center;
  1515. }
  1516. .audio-slider .slider {
  1517. width: 100%;
  1518. padding: 0px 15rpx;
  1519. box-sizing: border-box;
  1520. }
  1521. .audio-time {
  1522. width: 110rpx;
  1523. text-align: right;
  1524. font-size: 24rpx;
  1525. line-height: 28rpx;
  1526. color: #70798D;
  1527. display: flex;
  1528. justify-content: space-between;
  1529. }
  1530. .audio-play {
  1531. width: 40rpx;
  1532. height: 40rpx;
  1533. flex-shrink: 0;
  1534. }
  1535. .audio-play .image {
  1536. width: 100%;
  1537. height: 100%;
  1538. }
  1539. }
  1540. </style>