chat.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. <template>
  2. <view class="content">
  3. <!-- <view class="send-load" v-if="msgData.flag">数据加载中...</view> -->
  4. <view class="send-load" v-if="msgData.isSend">发送中...</view>
  5. <view class="chat-content" @touchmove="touchmove">
  6. <scroll-view class="chat-body" scroll-y scroll-with-animation :scroll-top="scrollTop" scroll-with-animation @scroll="scroll" @scrolltoupper="scrolltoupper" @scrolltolower="scrolltolower" upper-threshold="80" :scroll-into-view="scrollIntoViewId" refresher-background="transparent">
  7. <!-- <view class="msgLoading" v-if="msgData.flag">数据加载中...</view> -->
  8. <view class="scroll-view-msg" style="padding: 30rpx 30rpx;">
  9. <template v-for="(item, index) in msgData.list">
  10. <view class="msgContent" :id="'msg-' + item.messageId">
  11. <view class="text_26 color__ time">
  12. {{ renderMessageDate(item, index) }}
  13. </view>
  14. <view class="message" :class="[item.userType]">
  15. <image :src="chatData.service" v-if="item.userType === 'friend'" class="avatar" mode="widthFix"></image>
  16. <view class="message-con">
  17. <view v-if="item.msgType == 'text'" @click="clickText(item.content)">
  18. <view v-html="renderTextMessage(item.content)"></view>
  19. </view>
  20. <view class="m-address" v-if="item.msgType == 'address'">
  21. <view class="image"><image :src="item.content.img" mode="widthFix"></image></view>
  22. <view class="infos">
  23. <view class="title">{{item.content.name}}</view>
  24. <view class="desc">{{item.content.order?item.content.order:'-'}}</view>
  25. </view>
  26. </view>
  27. <view class="m-address" v-if="item.msgType == 'order'">
  28. <view class="image"><image :src="item.content.img" mode="widthFix"></image></view>
  29. <view class="infos">
  30. <view class="title">{{item.content.name}}</view>
  31. <view class="desc">{{item.content.order?item.content.order:'-'}}</view>
  32. </view>
  33. </view>
  34. <view class="m-image" v-if="item.msgType == 'image'">
  35. <image :src="item.content" mode="widthFix" @click="previewImg(item.content)"></image>
  36. </view>
  37. <view class="m-address" v-if="item.msgType == 'pay'">
  38. <view class="image"><image :src="item.content.img" mode="widthFix"></image></view>
  39. <view class="infos">
  40. <view class="title">{{item.content.name}}</view>
  41. <view class="price">¥ {{item.content.price?item.content.price:'-'}}</view>
  42. </view>
  43. </view>
  44. <view class="" v-if="item.msgType == 'quick'">
  45. <view class="quickCon">{{item.content}}</view>
  46. <view class="quickList" v-if="item.list.length > 0">
  47. <view class="list-items" v-for="(qItem,indx) in item.list" @click="quickQs(qItem)">
  48. {{qItem.question}}
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <image :src="chatData.self" v-if="item.userType === 'self'" class="avatar" mode="widthFix"></image>
  54. </view>
  55. </view>
  56. </template>
  57. </view>
  58. </scroll-view>
  59. <view class="tool">
  60. <view class="tool-option">
  61. <view class="input-text">
  62. <textarea class="input" placeholder="输入点什么呢..." auto-height="true" confirm-type="send" type="text"
  63. :maxlength="-1" :adjust-position="false" v-model="text" confirm-hold @focus="focus" :focus="isFocus" @blur="isFocus = false"
  64. :show-confirm-bar="false" @confirm="sendingText" @keyboardheightchange="keyboardheightchange" />
  65. </view>
  66. <view class="check-img">
  67. <view class="check-icon" @click="tapEmoji"><image src="@/static/image/face.svg" mode="aspectFill"></image></view>
  68. <view class="check-icon" @click="tapMore"><image src="@/static/image/more.svg" mode="aspectFill"></image></view>
  69. </view>
  70. </view>
  71. </view>
  72. <template v-if="keyboardHeight>0">
  73. <view class="keyboardheight" :style="{ height: keyboardHeight + 'px' }"></view>
  74. </template>
  75. <emoji v-model="isEmoji" @onEmoji="onEmoji" @deleteFn="deleteFn" @sendingText="sendingText" @sendingEmojiPack="sendingEmojiPack"></emoji>
  76. <more v-model="isMore" @onMore="sendingMore"></more>
  77. </view>
  78. </view>
  79. </template>
  80. <script>
  81. var app;
  82. let cursor = 0; //输入框光标
  83. let getSelectedTextRangeSetInterval = null;
  84. import { mapState } from 'vuex';
  85. import {
  86. show,
  87. formatDate,
  88. throttle,
  89. openimg,
  90. getLocation,
  91. to as tofn
  92. } from '@/utils/js/index.js';
  93. import { getHistoryMsg } from "@/utils/js/history-msg.js";
  94. var {Push} = require("@/static/js/push.js")
  95. import emoji from '@/components/chat/emoji';
  96. import more from '@/components/chat/more';
  97. import { EmojiDecoder, emojiMap } from '@/utils/js/EmojiDecoder.js';
  98. const emojiUrl = 'https://imgcache.qq.com/open/qcloud/tim/assets/emoji/';
  99. const decoder = new EmojiDecoder(emojiUrl, emojiMap);
  100. export default {
  101. components: {
  102. emoji,more
  103. },
  104. data() {
  105. return {
  106. scrollIntoViewId:"",
  107. keyboardHeight:0,
  108. isEmoji:false,
  109. isMore:false,
  110. isKeyboard:false,
  111. text:"",
  112. scrollTop:0,
  113. msgData: {
  114. list:[],
  115. allLoaded:false, // 请求开关
  116. rows:20, //每页数量
  117. page:1, //页码
  118. flag:true, // 请求开关
  119. isSend:false,
  120. last:0
  121. },
  122. screenWidth:0,
  123. pushData: {
  124. obj:null,
  125. auth:"http://192.168.3.16:9881/plugin/webman/push/auth",
  126. url: 'ws://192.168.3.16:3131',
  127. },
  128. isFocus:false,
  129. chatData:{
  130. userId:"",
  131. self:"",
  132. service:"",
  133. serviceId:0, // 客服ID
  134. },
  135. isServiceUser:0, // 1已转人工 0未转人工
  136. quickData:{}
  137. }
  138. },
  139. onLoad() {
  140. app = this;
  141. const systemInfo = uni.getSystemInfoSync();
  142. app.screenWidth = systemInfo.screenWidth;
  143. // this.getMessage()
  144. this.getServiceData();
  145. uni.setNavigationBarTitle({
  146. title:"加载中..."
  147. })
  148. },
  149. computed: mapState({
  150. //显示时间
  151. renderMessageDate() {
  152. return (message, index) => {
  153. if (message.timestamp - this.msgData.list[index + 1]?.timestamp > 3 * 60 * 1000) {
  154. return formatDate(message.timestamp, 'timestamp');
  155. }
  156. return '';
  157. };
  158. },
  159. }),
  160. beforeDestroy() {
  161. cursor = 0;
  162. this.pushData.obj.disconnect()
  163. clearInterval(getSelectedTextRangeSetInterval);
  164. },
  165. methods: {
  166. previewImg(data){
  167. return openimg(1,[data])
  168. },
  169. clickText(text){
  170. const regex = /(1[3-9]\d{9})|(\d{3,4}-\d{7,8})|(\d{7,12})/g;
  171. const matches = text.match(regex);
  172. if (!matches) return ;
  173. uni.makePhoneCall({
  174. phoneNumber:matches[0],
  175. success() {
  176. },
  177. fail(){
  178. }
  179. })
  180. },
  181. async getServiceData(){
  182. var formData = {};
  183. const tokenPoi = uni.getStorageSync("contact");
  184. formData.poi = tokenPoi.poi_id;
  185. formData.page = app.msgData.page;
  186. formData.size = app.msgData.rows;
  187. var resp = await this.$api.chat.service.get(formData);
  188. if (resp.code == 0) {
  189. show(resp.msg);
  190. uni.navigateBack();
  191. return ;
  192. }
  193. uni.setNavigationBarTitle({
  194. title:resp.data.store.shopName
  195. })
  196. app.chatData.userId = resp.data.userId;
  197. app.chatData.self = resp.data.avatar;
  198. app.chatData.service = resp.data.service;
  199. app.chatData.serviceId = resp.data.chat_id;
  200. var msgData = resp.data.msg.data;
  201. var pushData = [];
  202. var quickData = resp.data.quick;
  203. app.quickData = quickData
  204. pushData.push({
  205. content: quickData.star_msg,
  206. userType: 'friend',
  207. avatar: resp.data.service,
  208. msgType:"quick",
  209. list:quickData.quick,
  210. messageId: Date.now(),
  211. timestamp: Date.now(),
  212. })
  213. if (msgData.length > 0) {
  214. msgData.forEach(item => pushData.push(app.formatMsg(item)))
  215. }
  216. this.msgData.list = pushData;
  217. app.msgData.page = 2;
  218. setTimeout(()=>{
  219. this.scrollToBottom()
  220. }, 150)
  221. app.initPush();
  222. },
  223. initPush(){
  224. var _this = this;
  225. this.pushData.obj = new Push({
  226. "url":this.pushData.url,
  227. "app_key":"265c33b73d5c04f918978577df2c48d2",
  228. "auth":this.pushData.auth
  229. });
  230. var user_channel = this.pushData.obj.subscribe('user-' + this.chatData.userId);
  231. user_channel.on('message', function (data) {
  232. const pushData = _this.formatMsg(data);
  233. _this.msgData.list.unshift(pushData);
  234. _this.scrollToBottom()
  235. })
  236. },
  237. quickQs(data){
  238. if (!data.answer) return ;
  239. app.msgData.list.unshift({
  240. content: data.answer,
  241. userType: 'friend',
  242. avatar: app.chatData.service,
  243. msgType:"text",
  244. list:[],
  245. messageId: Date.now(),
  246. timestamp: Date.now(),
  247. })
  248. app.scrollToBottom()
  249. },
  250. focus(){
  251. this.setCursor();
  252. },
  253. setCursor() {},
  254. scroll(){},
  255. // 滚动到顶部
  256. scrolltoupper(){
  257. if (this.msgData.allLoaded) return;
  258. this.getMessage()
  259. },
  260. scrolltolower() {},
  261. keyboardheightchange(e){
  262. const height = e.detail.height;
  263. if (height > 0) {
  264. this.isEmoji = false;
  265. this.isMore = false;
  266. this.isKeyboard = true;
  267. } else {
  268. this.isKeyboard = false;
  269. }
  270. this.keyboardHeight = height;
  271. setTimeout(()=>{
  272. this.scrollToBottom()
  273. }, 150)
  274. },
  275. formatMsg(item){
  276. var payload = "";
  277. if (item.type == 'text') {
  278. payload = item.content
  279. }
  280. if (item.type == 'order') {
  281. payload = JSON.parse(item.content)
  282. }
  283. if (item.type == 'pay') {
  284. payload = JSON.parse(item.content)
  285. }
  286. if (item.type == 'address') {
  287. payload = JSON.parse(item.content)
  288. }
  289. if (item.type == 'image') {
  290. payload = item.content
  291. }
  292. const message = {
  293. content: payload,
  294. userType: item.userType,
  295. avatar: item.avatar,
  296. msgType:item.type,
  297. list:[],
  298. messageId: item.msgId,
  299. timestamp: item.time,
  300. };
  301. return message
  302. },
  303. tapEmoji() {
  304. this.isEmoji = !this.isEmoji;
  305. if (this.isEmoji) {
  306. this.isKeyboard = true;
  307. }
  308. this.isMore = false;
  309. setTimeout(()=>{
  310. this.scrollToBottom()
  311. }, 150)
  312. },
  313. tapMore(){
  314. this.isMore = !this.isMore;
  315. if (this.isMore) {
  316. this.isKeyboard = true;
  317. }
  318. this.isEmoji = false;
  319. setTimeout(()=>{
  320. this.scrollToBottom()
  321. }, 150)
  322. },
  323. sendingMore(data){
  324. switch (data.type) {
  325. case 'img':
  326. this.sendImageMessage();
  327. break;
  328. case 'video':
  329. show("暂未开通");
  330. break;
  331. case 'order':
  332. show("暂未开通");
  333. // this.showOrder(1);
  334. break;
  335. }
  336. },
  337. scrollToBottom() {
  338. if (this.isEmoji) {
  339. var px = 600 * (app.screenWidth / 750)
  340. this.scrollTop = (this.msgData.list.length + px) * 1000
  341. } else if (this.isMore) {
  342. var px = 430 * (app.screenWidth / 750)
  343. this.scrollTop = (this.msgData.list.length + px) * 1000
  344. } else {
  345. this.scrollTop = (this.msgData.list.length + parseInt(this.keyboardHeight)) * 1000
  346. }
  347. },
  348. touchmove(){
  349. this.isFocus = false;
  350. this.isFocisEmojius = false;
  351. this.isEmoji = false;
  352. this.isMore = false;
  353. this.isKeyboard = false;
  354. this.keyboardHeight = 0
  355. },
  356. onEmoji(key) {
  357. const text = `${this.text.slice(0, cursor)}${key}${this.text.slice(cursor)}`;
  358. this.text = text;
  359. },
  360. sendingEmojiPack(){},
  361. // 删除表情
  362. deleteFn() {
  363. const str = this.text.charAt(this.text.length - 1);
  364. if (str === ']') {
  365. let metaChars = /\[.*?(\u4e00*\u597d*)\]/g;
  366. let xstr = '';
  367. this.text.replace(metaChars, (match) => {
  368. xstr = match;
  369. });
  370. var text = this.text;
  371. function del(str) {
  372. return text.slice(0, text.length - str.length);
  373. }
  374. this.text = del(xstr);
  375. } else {
  376. this.text = this.text.substring(0, this.text.length - 1);
  377. }
  378. },
  379. async sendingText(){
  380. if (app.text === '') return ;
  381. console.log("app.chatData.serviceId",app.chatData.serviceId)
  382. if (app.chatData.serviceId == 0) {
  383. app.text = ''
  384. app.sendMessage(app.quickData.unline_msg,"text",'friend');
  385. app.scrollToBottom()
  386. return ;
  387. }
  388. app.msgData.isSend = true;
  389. const sendMsg = app.text;
  390. app.text = ''
  391. var formData = {};
  392. const tokenPoi = uni.getStorageSync("contact");
  393. formData.groupId = tokenPoi.poi_id;
  394. formData.type = "text";
  395. formData.content = sendMsg;
  396. formData.chatId = app.chatData.serviceId;
  397. var resp = await app.$api.chat.sendText.post(formData);
  398. app.msgData.isSend = false;
  399. if (resp.code == 0) {
  400. return show(resp.msg);
  401. }
  402. app.sendMessage(sendMsg,"text");
  403. app.scrollToBottom()
  404. },
  405. sendMessage(content,type,user = "self"){
  406. const message = {
  407. content: content,
  408. userType: user,
  409. avatar: "/static/logo.jpg",
  410. msgType:type,
  411. list:[],
  412. messageId: Date.now(),
  413. timestamp: Date.now(),
  414. };
  415. app.msgData.list.unshift(message);
  416. },
  417. // 创建发送照片内容
  418. sendImageMessage() {
  419. uni.chooseImage({
  420. count: 1,
  421. sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
  422. success: async (res) => {
  423. res.tempFiles.forEach((file) => {
  424. console.log(file);
  425. this.createImageMessage(file);
  426. });
  427. },
  428. fail(e) {
  429. console.log("选择失败",e)
  430. }
  431. });
  432. },
  433. // 创建发送照片内容
  434. async createImageMessage(file) {
  435. var formData = {};
  436. const tokenPoi = uni.getStorageSync("contact");
  437. formData.groupId = tokenPoi.poi_id;
  438. formData.type = "image";
  439. formData.chatId = app.chatData.serviceId;
  440. var resp = await app.$api.chat.sendImage.post({'path':file.path,"param":formData});
  441. var respData = JSON.parse(resp);
  442. app.msgData.isSend = false;
  443. if (respData.code !== 1) {
  444. return show(respData.msg);
  445. }
  446. app.sendMessage(respData.data.path,"image");
  447. app.scrollToBottom()
  448. },
  449. getMessage(){
  450. let get = async ()=>{
  451. this.msgData.allLoaded = true;
  452. var formData = {};
  453. const tokenPoi = uni.getStorageSync("contact");
  454. formData.poi = tokenPoi.poi_id;
  455. formData.page = app.msgData.page;
  456. formData.size = app.msgData.rows;
  457. let resp = await app.$api.chat.msg.get(formData);
  458. var msgData = resp.data.data.data;
  459. var pushData = [];
  460. if (msgData.length > 0) {
  461. msgData.forEach(item => pushData.push(app.formatMsg(item)))
  462. }
  463. const selector = `msg-${msgData?.[0]?.messageId}`;;
  464. this.msgData.list = this.msgData.list.concat(pushData);
  465. // 数据挂载后执行,不懂的请自行阅读 Vue.js 文档对 Vue.nextTick 函数说明。
  466. this.$nextTick(()=>{
  467. // 设置当前滚动的位置
  468. this.scrollIntoViewId = selector;
  469. if(msgData.length < this.msgData.rows){
  470. this.msgData.allLoaded = true;
  471. this.msgData.flag = false;
  472. // 当前消息数据条数小于请求要求条数时,则无更多消息,不再允许请求。
  473. // 可在此处编写无更多消息数据时的逻辑
  474. }else{
  475. this.msgData.flag = true;
  476. this.msgData.allLoaded = false;
  477. this.msgData.page ++;
  478. }
  479. })
  480. }
  481. get();
  482. },
  483. renderTextMessage(text) {
  484. if (!text) return "";
  485. text = text.replace(/\n/g, '');
  486. if (!text) return '<span>' + '[未知内容]' + '</span>';
  487. return '<span>' + decoder.decode(text) + '</span>';
  488. },
  489. }
  490. }
  491. </script>
  492. <style lang="scss" scoped>
  493. .chat-content{
  494. position: fixed;
  495. z-index: 1;
  496. top: 0;
  497. left: 0;
  498. bottom: 0;
  499. right: 0;
  500. background-color: #ededed;
  501. display: flex;
  502. flex-direction: column;
  503. z-index: 98;
  504. }
  505. .m-image {
  506. image {
  507. width: 140rpx;
  508. }
  509. }
  510. .m-address{
  511. display: flex;align-items: center;gap: 20rpx;min-width: 70vw;
  512. &.self{
  513. transform: rotate(180);
  514. }
  515. .image {
  516. image{width: 120upx;}
  517. }
  518. .infos{
  519. flex: 1;overflow: hidden;
  520. .title{font-size: 28upx;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}
  521. .desc{font-size: 20upx;color: #999;margin-top: 20rpx;}
  522. .price{font-size: 28upx;color: #f00;margin-top: 20rpx;}
  523. }
  524. }
  525. .send-load {
  526. position: fixed;
  527. top: 0;
  528. left: 0;
  529. right: 0;
  530. z-index: 99;
  531. text-align: center;
  532. font-size: 28rpx;
  533. color: $main-text-color;
  534. background-color: #f4f4f5;
  535. padding: 10rpx 0;
  536. }
  537. .msgLoading{
  538. text-align: center;
  539. padding: 10rpx 0;
  540. }
  541. .chat-body{
  542. height: 0;
  543. flex: 1;
  544. .scroll-view-msg{
  545. display: flex;
  546. flex-direction: column-reverse;
  547. flex-wrap: nowrap;
  548. align-content: flex-start;
  549. justify-content: flex-end;
  550. align-items: stretch;
  551. }
  552. .message {
  553. display: flex;
  554. align-items: flex-start;
  555. margin-bottom: 30rpx;
  556. .quickList{
  557. margin-top: 10upx;
  558. .list-items {
  559. color: blue;
  560. font-size: 28upx;
  561. line-height: 48upx;
  562. }
  563. }
  564. .avatar {
  565. width: 80rpx;
  566. height: 80rpx;
  567. border-radius: 10rpx;
  568. margin-right: 30rpx;
  569. }
  570. .message-con {
  571. min-height: 80rpx;
  572. max-width: 80vw;
  573. box-sizing: border-box;
  574. font-size: 28rpx;
  575. line-height: 1.3;
  576. padding: 20rpx;
  577. border-radius: 10rpx;
  578. background: #fff;
  579. image {
  580. // width: 200rpx;
  581. }
  582. }
  583. &.self {
  584. justify-content: flex-end;
  585. .avatar {
  586. margin: 0 0 0 30rpx;
  587. }
  588. .message-con {
  589. position: relative;
  590. &::after {
  591. position: absolute;
  592. content: '';
  593. width: 0;
  594. height: 0;
  595. border: 16rpx solid transparent;
  596. border-left: 16rpx solid #fff;
  597. right: -28rpx;
  598. top: 24rpx;
  599. }
  600. }
  601. }
  602. &.friend {
  603. .message-con {
  604. position: relative;
  605. &::after {
  606. position: absolute;
  607. content: '';
  608. width: 0;
  609. height: 0;
  610. border: 16rpx solid transparent;
  611. border-right: 16rpx solid #fff;
  612. left: -28rpx;
  613. top: 24rpx;
  614. }
  615. }
  616. }
  617. }
  618. }
  619. .tool {
  620. background: #fff;
  621. padding: 20rpx 0 20rpx 0;
  622. padding-bottom: calc(20rpx + constant(safe-area-inset-bottom)/2) !important;
  623. padding-bottom: calc(20rpx + env(safe-area-inset-bottom)/2) !important;
  624. .tool-option{
  625. display: flex;
  626. align-items: flex-start;
  627. box-sizing: border-box;
  628. padding: 0 20rpx;
  629. }
  630. .tool-bar {
  631. display: flex;
  632. align-items: center;
  633. gap: 20rpx;
  634. padding: 0 20rpx;
  635. .bar-item {
  636. display: flex;
  637. align-items: center;
  638. font-size: 28rpx;
  639. gap: 10rpx;
  640. color: #333;
  641. margin-bottom: 20rpx;
  642. image{
  643. width: 40rpx;
  644. height: 40rpx;
  645. }
  646. }
  647. }
  648. .input-text{
  649. flex: 1;width: 100%;
  650. box-sizing: border-box;
  651. padding: 10rpx 14rpx;
  652. min-height: 84rpx;
  653. max-height: 300rpx;
  654. overflow: auto;
  655. border-radius: 10rpx;
  656. background-color: #eee;
  657. .input{
  658. margin: 10rpx 0;
  659. width: 100%;
  660. font-size: 28upx;
  661. height: 100%;
  662. background-color: #eee;
  663. min-height: 48rpx;
  664. max-height: 300rpx;
  665. }
  666. }
  667. .check-img{
  668. display: flex;align-items: center;justify-content: center;
  669. .check-icon{width: 84rpx;height: 84rpx;display: flex;align-items: center;justify-content: center;}
  670. image{width: 75%;height: 75%;}
  671. }
  672. .thumb {
  673. width: 64rpx;
  674. }
  675. }
  676. .time {
  677. width: 100%;
  678. color: #a3a3a3;
  679. line-height: 100rpx;
  680. text-align: center;
  681. font-size: 24rpx;
  682. }
  683. .isrobot{
  684. color: blue;
  685. font-size: 28upx;
  686. line-height: 48upx;
  687. margin-top: 10rpx;
  688. }
  689. </style>