panhui 3 rokov pred
rodič
commit
a7a265b500
3 zmenil súbory, kde vykonal 19 pridanie a 6 odobranie
  1. 1 1
      .env.development
  2. 1 2
      src/views/Discover.vue
  3. 17 3
      src/views/Mine.vue

+ 1 - 1
.env.development

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

+ 1 - 2
src/views/Discover.vue

@@ -426,7 +426,6 @@ export default {
                 });
                 });
         },
         },
         goAuction() {
         goAuction() {
-            // this.$toast('升级改版中');
             this.$http
             this.$http
                 .get('/sysConfig/get/auction_show')
                 .get('/sysConfig/get/auction_show')
                 .then(res => {
                 .then(res => {
@@ -437,7 +436,7 @@ export default {
                     }
                     }
                 })
                 })
                 .catch(() => {
                 .catch(() => {
-                    this.wait();
+                    this.$toast('升级改版中');
                 });
                 });
         }
         }
     },
     },

+ 17 - 3
src/views/Mine.vue

@@ -143,7 +143,7 @@
                 <img src="@assets/info_icon_zhuzaodingdan.png" alt="" />
                 <img src="@assets/info_icon_zhuzaodingdan.png" alt="" />
                 <span>铸造订单</span>
                 <span>铸造订单</span>
             </div>
             </div>
-            <div class="order-info" @click="$router.push('/auctionOrders')">
+            <div class="order-info" @click="goAuction">
                 <img src="@assets/info_icon_paimaidingdan.png" alt="" />
                 <img src="@assets/info_icon_paimaidingdan.png" alt="" />
                 <span>拍卖订单</span>
                 <span>拍卖订单</span>
             </div>
             </div>
@@ -479,6 +479,20 @@ export default {
             //     .then(() => {
             //     .then(() => {
 
 
             //     });
             //     });
+        },
+        goAuction() {
+            this.$http
+                .get('/sysConfig/get/auction_show')
+                .then(res => {
+                    if (res.value === true || res.value === '1') {
+                        this.$router.push('/auctionOrders');
+                    } else {
+                        return Promise.reject();
+                    }
+                })
+                .catch(() => {
+                    this.$toast('升级改版中');
+                });
         }
         }
     }
     }
 };
 };
@@ -1074,7 +1088,7 @@ export default {
                     flex-shrink: 0;
                     flex-shrink: 0;
                     white-space: nowrap;
                     white-space: nowrap;
                 }
                 }
-                &.authed_con{
+                &.authed_con {
                     width: 90px;
                     width: 90px;
                 }
                 }
                 &.authed {
                 &.authed {
@@ -1112,7 +1126,7 @@ export default {
                     }
                     }
                 }
                 }
                 &.autheds_con {
                 &.autheds_con {
-                     width: 90px;
+                    width: 90px;
                     margin-right: 10px;
                     margin-right: 10px;
                     span {
                     span {
                         color: #39af00;
                         color: #39af00;