panhui 4 lat temu
rodzic
commit
90176170be

+ 7 - 1
src/main/comos/src/components/Post.vue

@@ -1,6 +1,6 @@
 <template>
     <div ref="share">
-        <van-overlay :show="show" @click="show = false" z-index="99">
+        <van-overlay :show="show" @click="show = false" z-index="200">
             <div class="wrapper">
                 <div class="img" ref="wrap" v-if="img" @click.stop="">
                     <img :src="img" />
@@ -85,6 +85,12 @@ export default {
             default: false
         }
     },
+    mounted() {
+        document.body.appendChild(this.$el);
+    },
+    beforeUnmount() {
+        document.body.removeChild(this.$el);
+    },
     data() {
         return {
             show: false,

+ 3 - 0
src/main/comos/src/main.js

@@ -77,6 +77,9 @@ if (query.code) {
 if (query.invitor) {
     store.commit('setInvitor', query.invitor);
 }
+if (query.inviteCode) {
+    store.commit('setInviteCode', query.inviteCode);
+}
 const style = document.documentElement.style;
 style.setProperty('--safe-top', 'env(safe-area-inset-top)');
 style.setProperty('--safe-bottom', 'env(safe-area-inset-bottom)');

+ 5 - 1
src/main/comos/src/store/index.js

@@ -9,7 +9,8 @@ export default createStore({
         couponInfo: null,
         invitor: null,
         review: false,
-        projectId: 1
+        projectId: 1,
+        inviteCode: ''
     },
     mutations: {
         setFinished(state, finished) {
@@ -29,6 +30,9 @@ export default createStore({
         },
         setReview(state, review) {
             state.review = review;
+        },
+        setInviteCode(state, inviteCode) {
+            state.inviteCode = inviteCode;
         }
     },
     actions: {

+ 9 - 3
src/main/comos/src/views/account/Register.vue

@@ -83,11 +83,17 @@
                     <img :src="require('@assets/svgs/login_icon_mima.svg')" class="icon" />
                 </template>
             </van-field>
-            <!-- <van-field type="text" name="邀请码" placeholder="请输入邀请码" v-model="form.inviteCode">
+            <van-field
+                type="text"
+                name="邀请码"
+                placeholder="请输入邀请码"
+                v-model="form.inviteCode"
+                :disabled="!!$store.state.inviteCode"
+            >
                 <template #left-icon>
                     <img :src="require('@assets/svgs/login_icon_yao qingma.svg')" class="icon" />
                 </template>
-            </van-field> -->
+            </van-field>
 
             <div class="button">
                 <van-button
@@ -127,7 +133,7 @@ export default {
                 password: '',
                 password2: '',
                 code: '',
-                inviteCode: ''
+                inviteCode: this.$store.state.inviteCode || ''
             },
             checked: false
         };

+ 4 - 0
src/main/modern-point/src/views/asset/Consignment.vue

@@ -88,6 +88,10 @@ export default {
         },
         submit() {
             if (this.price != '') {
+                this.$toast.loading({
+                    message: '加载中...',
+                    forbidClick: true
+                });
                 this.$http
                     .post('/user/verifyTradeCode', {
                         tradeCode: this.password

+ 15 - 5
src/main/modern-point/src/views/asset/Detail.vue

@@ -515,6 +515,10 @@ export default {
                     title: '公开展示',
                     message: '藏品将公开展示,无报价'
                 }).then(() => {
+                    this.$toast.loading({
+                        message: '加载中...',
+                        forbidClick: true
+                    });
                     return this.$http
                         .post(`/asset/publicShow?id=${this.info.id}`)
                         .then(res => {
@@ -533,6 +537,10 @@ export default {
                     message: '藏品将取消展示,无报价'
                 })
                     .then(() => {
+                        this.$toast.loading({
+                            message: '加载中...',
+                            forbidClick: true
+                        });
                         return this.$http.post(`/asset/cancelPublic?id=${this.info.id}`);
                     })
                     .then(res => {
@@ -556,19 +564,21 @@ export default {
             });
             this.$http.get('/asset/get/' + this.$route.query.id).then(res => {
                 this.info = res;
-                this.$http.get('/order/get/' + res.orderId).then(res => {
-                    this.orderInfo = res;
-                });
+                if (res.orderId) {
+                    this.$http.get('/order/get/' + res.orderId).then(res => {
+                        this.orderInfo = res;
+                    });
+                }
                 wx.updateAppMessageShareData({
                     title: 'Cosmos Art - ' + res.name,
                     desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
-                    link: location.origin + '/cosmos/assetDetail?id=' + res.id,
+                    link: location.origin + '/cosmos/productDetail?id=' + res.publicCollectionId,
                     imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
                 });
                 wx.updateTimelineShareData({
                     title: 'Cosmos Art - ' + res.name,
                     desc: '“Cosmos Art”为数字藏品展示、收藏、集换为一体的潮玩数字藏品平台',
-                    link: location.origin + '/cosmos/assetDetail?id=' + res.id,
+                    link: location.origin + '/cosmos/productDetail?id=' + res.publicCollectionId,
                     imgUrl: this.getImg(this.changeImgs(this.banners), '', 300)
                 });
                 this.tokenId = this.info.tokenId;

+ 6 - 2
src/main/nine-space/src/views/asset/Detail.vue

@@ -534,6 +534,10 @@ export default {
                     message: '藏品将取消展示,无报价'
                 })
                     .then(() => {
+                        this.$toast.loading({
+                            message: '加载中...',
+                            forbidClick: true
+                        });
                         return this.$http.post(`/asset/cancelPublic?id=${this.info.id}`);
                     })
                     .then(res => {
@@ -560,12 +564,12 @@ export default {
                 wx.updateAppMessageShareData({
                     title: '第九空间-' + res.name,
                     desc: '全球首个基于区块链的游戏资产集换中心',
-                    link: location.origin + '/9th/assetDetail?id=' + res.id,
+                    link: location.origin + '/9th/productDetail?id=' + res.publicCollectionId,
                     imgUrl: this.getImg(this.changeImgs(this.banners), '', 600)
                 });
                 wx.updateTimelineShareData({
                     title: '第九空间-' + res.name,
-                    link: location.origin + '/9th/assetDetail?id=' + res.id,
+                    link: location.origin + '/9th/productDetail?id=' + res.publicCollectionId,
                     imgUrl: this.getImg(this.changeImgs(this.banners), '', 600)
                 });
                 this.tokenId = this.info.tokenId;