yuany %!s(int64=3) %!d(string=hai) anos
pai
achega
c8b1861ece
Modificáronse 4 ficheiros con 88 adicións e 30 borrados
  1. 82 27
      src/views/Givesubmit.vue
  2. 2 1
      src/views/Store.vue
  3. 2 1
      src/views/asset/Detail.vue
  4. 2 1
      src/views/product/Detail.vue

+ 82 - 27
src/views/Givesubmit.vue

@@ -262,36 +262,91 @@ export default {
                                     //     resolveUrl(this.$baseUrl, 'payOrder/gift/alipay?id=' + res.id)
                                     // );
                                     if (this.inWeixin) {
-                                        document.location.replace(
-                                            resolveUrl(this.$baseUrl, '/payOrder/gift/alipay_wx?id=' + res.id)
-                                        );
+                                        if (this.gas === '0') {
+                                            this.$http
+                                                .get('/payOrder/gift/alipay_wx?id=' + res.id)
+                                                .then(res => {
+                                                    this.$toast.success('转赠成功');
+                                                    setTimeout(() => {
+                                                        // this.$router.push({
+                                                        //     path: '/orderDetail',
+                                                        //     query: {
+                                                        //         id: res.id,
+                                                        //     }
+                                                        // });
+                                                        document.location.replace("https://www.adcs.vip/9th/giftOrder/223639");
+                                                        // this.$router.replace('/giftOrder/' + order.getId());
+                                                    }, 1000);
+                                                    this.getOrder(true);
+                                                })
+                                                .catch(e => {
+                                                    if (e.error) {
+                                                        this.$toast(e.error);
+                                                    }
+                                                });
+                                        } else {
+                                            document.location.replace(
+                                                resolveUrl(this.$baseUrl, '/payOrder/gift/alipay_wx?id=' + res.id)
+                                            );
+                                        }
                                     } else {
-                                        this.$http
-                                            .get(
-                                                `/payOrder/gift/${this.inApp ? 'alipay_app' : 'alipay_h5'}?id=${res.id}`
-                                            )
-                                            .then(res => {
-                                                this.hrefUrl =
-                                                    'alipays://platformapi/startapp?saId=10000007&qrcode=' + res;
-                                                // window.open(
-                                                //     'alipays://platformapi/startapp?saId=10000007&qrcode=' + res,
-                                                //     '_blank'
-                                                // );
-                                                this.$nextTick(() => {
-                                                    document.getElementById('pay').click();
+                                        if (this.gas === '0') {
+                                            console.log('3333333');
+                                            this.$http
+                                                .get(
+                                                    `/payOrder/gift/${this.inApp ? 'alipay_app' : 'alipay_h5'}?id=${
+                                                        res.id
+                                                    }`
+                                                )
+                                                .then(res => {
+                                                    this.$toast.success('转赠成功');
+                                                    setTimeout(() => {
+                                                        // this.$router.push({
+                                                        //     path: '/orderDetail',
+                                                        //     query: {
+                                                        //         id: res.id,
+                                                        //     }
+                                                        // });
+                                                        // this.$router.replace('/giftOrder/' + order.getId());
+                                                        document.location.replace("https://www.adcs.vip/9th/giftOrder/223639");
+                                                    }, 1000);
+                                                    this.getOrder(true);
+                                                })
+                                                .catch(e => {
+                                                    if (e.error) {
+                                                        this.$toast(e.error);
+                                                    }
                                                 });
+                                        } else {
+                                            this.$http
+                                                .get(
+                                                    `/payOrder/gift/${this.inApp ? 'alipay_app' : 'alipay_h5'}?id=${
+                                                        res.id
+                                                    }`
+                                                )
+                                                .then(res => {
+                                                    this.hrefUrl =
+                                                        'alipays://platformapi/startapp?saId=10000007&qrcode=' + res;
+                                                    // window.open(
+                                                    //     'alipays://platformapi/startapp?saId=10000007&qrcode=' + res,
+                                                    //     '_blank'
+                                                    // );
+                                                    this.$nextTick(() => {
+                                                        document.getElementById('pay').click();
+                                                    });
 
-                                                this.$toast.loading({
-                                                    message: '加载中...',
-                                                    forbidClick: true
+                                                    this.$toast.loading({
+                                                        message: '加载中...',
+                                                        forbidClick: true
+                                                    });
+                                                    this.getOrder(true);
+                                                })
+                                                .catch(e => {
+                                                    if (e.error) {
+                                                        this.$toast(e.error);
+                                                    }
                                                 });
-                                                this.getOrder(true);
-                                            })
-                                            .catch(e => {
-                                                if (e.error) {
-                                                    this.$toast(e.error);
-                                                }
-                                            });
+                                        }
                                     }
                                 } else if (this.payType === 'WEIXIN') {
                                     if (this.inWeixin) {
@@ -489,7 +544,7 @@ export default {
             font-family: PingFangSC-Medium, PingFang SC;
             font-weight: 500;
             color: #ffffff;
-            border-bottom: 1px solid rgba(94, 99, 110 ,.2);
+            border-bottom: 1px solid rgba(94, 99, 110, 0.2);
             padding-bottom: 10px;
             margin-bottom: 10px;
             box-sizing: border-box;

+ 2 - 1
src/views/Store.vue

@@ -125,7 +125,8 @@ export default {
                 if (res.first) {
                     this.collections = [];
                 }
-                this.collections = [...this.collections, ...res.content];
+
+                this.collections = [...this.collections, ...res.content].filter(item => item.status === 'NORMAL'||item.status === 'GIFTING'||item.status === 'TRADING'||item.status === 'MINTING');
                 this.empty = res.empty;
                 this.loading = false;
                 this.finished = res.last;

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

@@ -1179,6 +1179,7 @@ export default {
                         color: #939599;
                         margin-left: 20px;
                         line-height: 37px;
+                        margin-right: 10px;
                         // text-align: center;
                     }
                     .hold_privileges_list_con_one {
@@ -1450,7 +1451,7 @@ export default {
             // justify-content: center;
         }
         .purchase_transaction_button_give {
-            width: 76px;
+            width: 80px;
             height: 40px;
             border-radius: 8px;
             background: #29293f;

+ 2 - 1
src/views/product/Detail.vue

@@ -1136,6 +1136,7 @@ export default {
                         color: #939599;
                         margin-left: 20px;
                         line-height: 37px;
+                        margin-right: 10px;
                         // text-align: center;
                     }
                     .hold_privileges_list_con_one {
@@ -1378,7 +1379,7 @@ export default {
         font-family: PingFangSC-Medium, PingFang SC;
         font-weight: 500;
         .purchase_transaction_button_give {
-            width: 76px;
+            width: 80px;
             height: 40px;
             border-radius: 8px;
             border: 1px solid #28b6ff;