yuany 3 лет назад
Родитель
Сommit
8bb5e00caa

+ 162 - 151
src/views/Givesubmit.vue

@@ -29,7 +29,7 @@
                 </div>
             </div>
         </div>
-        <!-- <div class="transaction_password">
+        <div class="transaction_password">
             <div class="transaction_password_one">
                 <div class="transaction_password_one_title">请输入交易密码</div>
                 <div class="transaction_password_forget" @click="$router.push('/tradingPassword')">
@@ -37,16 +37,15 @@
                     <van-divider />
                 </div>
             </div>
-            <van-divider />
             <div>
-                密码输入框
+                <!-- 密码输入框 -->
                 <van-password-input
                     :value="password"
                     :gutter="10"
                     :focused="showKeyboard"
                     @focus="showKeyboard = true"
                 />
-                数字键盘
+                <!-- 数字键盘 -->
                 <van-number-keyboard
                     v-model="password"
                     :show="showKeyboard"
@@ -54,11 +53,10 @@
                     maxlength="6"
                     theme="custom"
                     close-button-text="完成"
-                    random-key-order
                 />
             </div>
-            <div v-else class="text3" @click="$router.push('/tradingPassword')">您当前没有交易密码,点击去设置</div>
-        </div> -->
+            <!-- <div class="text3" @click="$router.push('/tradingPassword')">您当前没有交易密码,点击去设置</div> -->
+        </div>
         <!-- <div class="additional_costs">
             <div class="additional_costs_left">GAS费用</div>
             <div class="additional_costs_right">¥{{ gas }}</div>
@@ -265,153 +263,161 @@ export default {
                 forbidClick: true
             });
             this.$http
-                .post('/asset/gift', {
-                    assetId: this.$route.query.id,
-                    toUserId: this.$route.query.toUserId
+                .post('/user/verifyTradeCode', {
+                    tradeCode: this.password
                 })
-                .then(res => {
-                    this.orderId = res.id;
-                    this.$nextTick(() => {
-                        if (this.payType === 'ALIPAY') {
-                            // document.location.replace(
-                            //     resolveUrl(this.$baseUrl, 'payOrder/gift/alipay?id=' + res.id)
-                            // );
-                            if (this.inWeixin) {
-                                if (this.gas === '0') {
-                                    this.$http
-                                        .get('/payOrder/gift/alipay_wx?id=' + res.id)
-                                        .then(res => {
-                                            this.$toast.success('转赠成功');
-                                            this.getOrder(true);
-                                            // setTimeout(() => {
-                                            // this.$router.push({
-                                            //     path: '/orderDetail',
-                                            //     query: {
-                                            //         id: res.id,
-                                            //     }
-                                            // });
-                                            // this.$router.replace('/orders');
-                                            // document.location.replace("https://www.adcs.vip/9th/giftOrder/223639");
-                                            // this.$router.replace('/giftOrder/' + order.getId());
-                                            // }, 1000);
-                                        })
-                                        .catch(e => {
-                                            if (e.error) {
-                                                this.$toast(e.error);
-                                            }
-                                        });
-                                } else {
-                                    document.location.replace(
-                                        resolveUrl(this.$baseUrl, '/payOrder/gift/alipay_wx?id=' + res.id)
-                                    );
-                                }
-                            } else {
-                                if (this.gas === '0') {
-                                    console.log("131313")
-                                    this.$http
-                                        .get(`/payOrder/gift/${this.inApp ? 'alipay_app' : 'alipay_h5'}?id=${res.id}`)
-                                        .then(res => {
-                                            this.$toast.success('转赠成功');
-                                            this.getOrder(true);
-                                            // setTimeout(() => {
-                                            // this.$router.push({
-                                            //     path: '/orderDetail',
-                                            //     query: {
-                                            //         id: res.id,
-                                            //     }
-                                            // });
-                                            // this.$router.replace('/giftOrder/' + order.getId());
-                                            // this.$router.replace('/orders');
-                                            // document.location.replace("https://www.adcs.vip/9th/giftOrder/223639");
-                                            // }, 1000);
-                                        })
-                                        .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();
-                                            });
+                .then(() => {
+                    this.$http
+                        .post('/asset/gift', {
+                            assetId: this.$route.query.id,
+                            toUserId: this.$route.query.toUserId
+                        })
+                        .then(res => {
+                            this.orderId = res.id;
+                            this.$nextTick(() => {
+                                if (this.payType === 'ALIPAY') {
+                                    // document.location.replace(
+                                    //     resolveUrl(this.$baseUrl, 'payOrder/gift/alipay?id=' + res.id)
+                                    // );
+                                    if (this.inWeixin) {
+                                        if (this.gas === '0') {
+                                            this.$http
+                                                .get('/payOrder/gift/alipay_wx?id=' + res.id)
+                                                .then(res => {
+                                                    this.$toast.success('转赠成功');
+                                                    this.getOrder(true);
+                                                    // setTimeout(() => {
+                                                    // this.$router.push({
+                                                    //     path: '/orderDetail',
+                                                    //     query: {
+                                                    //         id: res.id,
+                                                    //     }
+                                                    // });
+                                                    // this.$router.replace('/orders');
+                                                    // document.location.replace("https://www.adcs.vip/9th/giftOrder/223639");
+                                                    // this.$router.replace('/giftOrder/' + order.getId());
+                                                    // }, 1000);
+                                                })
+                                                .catch(e => {
+                                                    if (e.error) {
+                                                        this.$toast(e.error);
+                                                    }
+                                                });
+                                        } else {
+                                            document.location.replace(
+                                                resolveUrl(this.$baseUrl, '/payOrder/gift/alipay_wx?id=' + res.id)
+                                            );
+                                        }
+                                    } else {
+                                        if (this.gas === '0') {
+                                            console.log('131313');
+                                            this.$http
+                                                .get(
+                                                    `/payOrder/gift/${this.inApp ? 'alipay_app' : 'alipay_h5'}?id=${
+                                                        res.id
+                                                    }`
+                                                )
+                                                .then(res => {
+                                                    this.$toast.success('转赠成功');
+                                                    this.getOrder(true);
+                                                    // setTimeout(() => {
+                                                    // this.$router.push({
+                                                    //     path: '/orderDetail',
+                                                    //     query: {
+                                                    //         id: res.id,
+                                                    //     }
+                                                    // });
+                                                    // this.$router.replace('/giftOrder/' + order.getId());
+                                                    // this.$router.replace('/orders');
+                                                    // document.location.replace("https://www.adcs.vip/9th/giftOrder/223639");
+                                                    // }, 1000);
+                                                })
+                                                .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);
+                                                    }
+                                                });
+                                        }
+                                    }
+                                } else if (this.payType === 'WEIXIN') {
+                                    if (this.inWeixin) {
+                                        this.$toast.loading('加载中');
+                                        this.$http
+                                            .post('/payOrder/gift/weixin', {
+                                                id: res.id,
+                                                openId: localStorage.getItem('openId')
+                                            })
+                                            .then(res => {
+                                                console.log({
+                                                    ...res,
+                                                    package: res.package || res.packageValue,
+                                                    timestamp: res.timestamp || res.timeStamp
+                                                });
+                                                let _this = this;
+                                                wx.chooseWXPay({
+                                                    ...res,
+                                                    package: res.package || res.packageValue,
+                                                    timestamp: res.timeStamp,
+                                                    success(res) {
+                                                        _this.$toast.success('支付成功');
+                                                        setTimeout(() => {
+                                                            _this.$router.replace('/orders');
+                                                        }, 1000);
+                                                    },
+                                                    fail(e) {
+                                                        console.log(e);
+                                                        _this.$toast('支付失败,请稍后再试');
+                                                    }
+                                                });
                                             });
-                                            this.getOrder(true);
-                                        })
-                                        .catch(e => {
-                                            if (e.error) {
-                                                this.$toast(e.error);
-                                            }
-                                        });
+                                    } else {
+                                        document.location.replace(
+                                            resolveUrl(this.$baseUrl, 'payOrder/gift/weixin_h5?id=' + res.id)
+                                        );
+                                    }
                                 }
+                            });
+                        })
+                        .catch(e => {
+                            if (e) {
+                                this.$toast(e.error);
                             }
-                        } else if (this.payType === 'WEIXIN') {
-                            if (this.inWeixin) {
-                                this.$toast.loading('加载中');
-                                this.$http
-                                    .post('/payOrder/gift/weixin', {
-                                        id: res.id,
-                                        openId: localStorage.getItem('openId')
-                                    })
-                                    .then(res => {
-                                        console.log({
-                                            ...res,
-                                            package: res.package || res.packageValue,
-                                            timestamp: res.timestamp || res.timeStamp
-                                        });
-                                        let _this = this;
-                                        wx.chooseWXPay({
-                                            ...res,
-                                            package: res.package || res.packageValue,
-                                            timestamp: res.timeStamp,
-                                            success(res) {
-                                                _this.$toast.success('支付成功');
-                                                setTimeout(() => {
-                                                    _this.$router.replace('/orders');
-                                                }, 1000);
-                                            },
-                                            fail(e) {
-                                                console.log(e);
-                                                _this.$toast('支付失败,请稍后再试');
-                                            }
-                                        });
-                                    });
-                            } else {
-                                document.location.replace(
-                                    resolveUrl(this.$baseUrl, 'payOrder/gift/weixin_h5?id=' + res.id)
-                                );
-                            }
-                        }
-                    });
+                        });
                 })
                 .catch(e => {
                     if (e) {
-                        this.$toast(e.error);
+                        this.$toast('失败点击忘记密码进行修改');
                     }
                 });
-            // this.$http
-            //     .post('/user/verifyTradeCode', {
-            //         tradeCode: this.password
-            //     })
-            //     .then(() => {
-
-            //     })
-            //     .catch(e => {
-            //         if (e) {
-            //             this.$toast('失败点击忘记密码进行修改');
-            //         }
-            //     });
         }
     },
     beforeUnmount() {
@@ -549,18 +555,20 @@ export default {
     }
     .transaction_password {
         width: 100%;
-        height: 103px;
-        background: #29293f;
-        border-radius: 8px;
-        padding: 10px;
+        // height: 103px;
+        background: #1e222c;
+        border-radius: 4px;
+        padding: 15px;
         box-sizing: border-box;
         margin-top: 10px;
         .transaction_password_one {
             display: flex;
             justify-content: space-between;
-            margin-bottom: 4px;
+            padding-bottom: 4px;
+            border-bottom: 1px solid rgba(151, 151, 151, 0.1);
+            opacity: 0.6;
             .transaction_password_one_title {
-                font-size: 14px;
+                font-size: 12px;
                 font-family: PingFangSC-Regular, PingFang SC;
                 font-weight: 400;
                 color: #ffffff;
@@ -570,7 +578,7 @@ export default {
                 font-size: 12px;
                 font-family: PingFangSC-Regular, PingFang SC;
                 font-weight: 400;
-                color: #939599;
+                color: #ffffff;
             }
         }
         /deep/ .van-password-input {
@@ -686,6 +694,9 @@ export default {
         margin: 10px 0;
     }
 }
+/deep/ .van-key {
+    color: #333333;
+}
 .gift_button {
     position: fixed;
     bottom: 64px;

+ 1 - 1
src/views/Home.vue

@@ -14,7 +14,7 @@
                         <!-- <img :src="item.pic" alt="" class="swipe_banner_img" /> -->
                         <van-image
                             width="100%"
-                            height="calc(100vw/2 - 55px)"
+                            height="calc(41vw - 13px)"
                             :src="getImg(item.pic)"
                             fit="cover"
                             @click="goNext(item)"

+ 1 - 1
src/views/account/Connect.vue

@@ -20,7 +20,7 @@ export default {
     data() {
         return {
             codeImg: 'https://lasuo.oss-cn-hangzhou.aliyuncs.com/nft/2022-06-27-11-28-08tQEbaWcx.jpg',
-            email: '724392536@qq.com'
+            email: 'lhaaso@126.com'
         };
     },
     mounted() {

+ 3 - 3
src/views/account/Login.vue

@@ -13,10 +13,10 @@
                     clearable="true"
                     v-model="form.phone"
                     :rules="[
-                        { required: true, message: '请输入手机号码' },
+                        { required: true, message: '' },
                         {
                             pattern: phonePattern,
-                            message: '手机号码格式错误'
+                            message: ''
                         }
                     ]"
                 >
@@ -27,7 +27,7 @@
                     placeholder="请输入验证码"
                     v-model="form.code"
                     maxlength="4"
-                    :rules="[{ required: true, message: '请输入验证码' }]"
+                    :rules="[{ required: true, message: '' }]"
                 >
                     <template #button>
                         <van-button

+ 1 - 1
src/views/account/Setting.vue

@@ -26,7 +26,7 @@
                 is-link
                 :value="userInfo.intro || 'TA还什么都没有留下'"
             />
-            <van-cell title="背景图片" is-link>
+            <van-cell title="背景图片" is-link v-if="userInfo.minter">
                 <template #value>
                     <van-image
                         round

+ 4 - 4
src/views/account/TradingPassword.vue

@@ -1,10 +1,10 @@
 <template>
     <div class="login">
-        <div class="tabs">修改交易密码</div>
+        <div class="tabs">设置交易密码</div>
         <van-form v-if="step === 0" @submit="next">
             <div class="transaction_tips">
                 <div class="transaction_tips_phone">{{ phone }}</div>
-                <div class="transaction_tips_con">修改交易密码需先验证当前手机号</div>
+                <div class="transaction_tips_con">设置交易密码需先验证当前手机号</div>
             </div>
             <div class="login_information">
                 <!-- <img
@@ -36,11 +36,11 @@
             </div>
             <van-divider class="login_divider" />
             <div>
-                <van-button native-type="submit" class="sure" type="primary">确认修改</van-button>
+                <van-button native-type="submit" class="sure" type="primary">确认</van-button>
             </div>
         </van-form>
         <van-form v-else ref="form" @submit="submit">
-            <div class="modification_tips">修改支付密码后立即生效,下次交易请使用新密码</div>
+            <div class="modification_tips">设置支付密码后立即生效,下次交易请使用新密码</div>
             <div class="input">
                 <div class="text1">请输入交易密码</div>
                 <van-password-input :value="password" :focused="showKeyboard" @focus="showKeyboard = true" />

+ 17 - 5
src/views/asset/Detail.vue

@@ -848,7 +848,19 @@ export default {
     },
     methods: {
         share() {
-            this.$refs.post.init();
+            if (!this.info.publicShow) {
+                Dialog.confirm({
+                    message: '藏品公开展示后才可以分享'
+                })
+                    .then(() => {
+                        this.moreDisplayOne = false;
+                    })
+                    .catch(() => {
+                       this.moreDisplayOne = false;
+                    });
+            } else {
+                this.$refs.post.init();
+            }
         },
         moreDisplay() {
             this.moreDisplayOne = !this.moreDisplayOne;
@@ -1390,21 +1402,21 @@ export default {
                     .collection_holder_one_title {
                         opacity: 0.5;
                     }
-                    .collection_holder_one_con{
+                    .collection_holder_one_con {
                         display: flex;
-                        .collection_holder_one_time_con{
+                        .collection_holder_one_time_con {
                             width: 180px;
                             font-size: 12px;
                             font-family: PingFangSC-Regular, PingFang SC;
                             font-weight: 400;
-                            color: #FFFFFF;
+                            color: #ffffff;
                             line-height: 18px;
                             margin: 2px 10px 0px 0px;
                             overflow: hidden;
                             white-space: nowrap;
                             text-overflow: ellipsis;
                         }
-                        .collection_holder_one_time_con_img{
+                        .collection_holder_one_time_con_img {
                             width: 24px;
                             height: 24px;
                         }

+ 9 - 10
src/views/asset/GiveSearch.vue

@@ -4,20 +4,19 @@
         <van-sticky ref="top" :offset-top="bar.value && bar.value.show ? 46 : 0">
             <div class="content_title">赠送</div>
             <div class="content_tip">通过手机号码检索用户信息,确认赠送后该加密作品将会转移</div>
-            <van-search v-model="phone" placeholder="请输入用户手机号" @search="getSearch" />
-            <!-- <van-search
+            <!-- <van-search v-model="phone" placeholder="请输入用户手机号" @search="getSearch" /> -->
+            <van-search
                 ref="top"
                 v-model="phone"
                 placeholder="请输入用户手机号"
                 show-action
                 autofocus
-                :left-icon="require('@assets/svgs/icon-sosuo.svg')"
                 @search="getSearch"
-            > -->
-            <!-- <template #action>
+            >
+            <template #action>
                     <div @click="getSearch">搜索</div>
-                </template> -->
-            <!-- </van-search> -->
+                </template>
+            </van-search>
         </van-sticky>
         <van-list class="list" :immediate-check="false" :finished="finished" finished-text="" @load="getData">
             <div
@@ -120,7 +119,7 @@ export default {
 }
 /deep/ .van-search {
     padding: 0;
-    background: #1e222c;
+    // background: #1e222c;
     border-radius: 4px;
     width: 100%;
     height: 38px;
@@ -143,7 +142,7 @@ export default {
         width: 60px;
         height: 32px;
         border-radius: 4px;
-        border: 1px solid #28b6ff;
+        border: 1px solid #f2d5b2;;
         box-sizing: border-box;
         margin-left: 16px;
         padding: 0;
@@ -151,7 +150,7 @@ export default {
         font-size: 12px;
         font-family: PingFangSC-Regular, PingFang SC;
         font-weight: 400;
-        color: #28b6ff;
+        color: #f2d5b2;;
         text-align: center;
         line-height: 32px;
     }