Bläddra i källkod

星图赠送时间

panhui 3 år sedan
förälder
incheckning
c8eb015d81
2 ändrade filer med 13 tillägg och 3 borttagningar
  1. 1 1
      .env.development
  2. 12 2
      src/views/asset/Detail.vue

+ 1 - 1
.env.development

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

+ 12 - 2
src/views/asset/Detail.vue

@@ -923,8 +923,18 @@ export default {
                             holdDays = Number(res.value);
                             return Promise.resolve();
                         });
-                    } else if (this.info.source === 'GIFT') {
-                        return this.$http.get('/sysConfig/get/gift_days').then(res => {
+                    } else if (_this.info.source === 'GIFT' && _this.info.type === 'PICTURE') {
+                        return _this.$http
+                            .get('/sysConfig/get/pic_gift_days')
+                            .catch(e => {
+                                return _this.$http.get('/sysConfig/get/gift_days');
+                            })
+                            .then(res => {
+                                holdDays = Number(res.value);
+                                return Promise.resolve();
+                            });
+                    } else if (_this.info.source === 'GIFT') {
+                        return _this.$http.get('/sysConfig/get/gift_days').then(res => {
                             holdDays = Number(res.value);
                             return Promise.resolve();
                         });