panhui %!s(int64=3) %!d(string=hai) anos
pai
achega
944ead11c0
Modificáronse 2 ficheiros con 5 adicións e 2 borrados
  1. 1 1
      .env.development
  2. 4 1
      src/components/product/ActivityRecord.vue

+ 1 - 1
.env.development

@@ -1,4 +1,4 @@
-VUE_APP_BASE_URL=https://test.raex.vip/
+VUE_APP_BASE_URL=https://www.raex.vip/
 NODE_ENV=development
 VUE_APP_PUBLIC_PATH=/
 ASSETS_PATH=raex

+ 4 - 1
src/components/product/ActivityRecord.vue

@@ -47,6 +47,9 @@ export default {
     },
     computed: {
         time() {
+            if (this.info.startTime) {
+                return this.dayjs(this.info.startTime).format('YYYY-MM-DD HH:mm');
+            }
             if (this.info.createdAt) {
                 return this.dayjs(this.info.createdAt).format('YYYY-MM-DD HH:mm');
             }
@@ -55,7 +58,7 @@ export default {
         },
         isNew() {
             if (this.info.createdAt) {
-                let time = this.dayjs(this.info.createdAt).add(1, 'day');
+                let time = this.dayjs(this.info.startTime || this.info.createdAt).add(1, 'day');
                 return this.dayjs().isBefore(time);
             } else {
                 return false;