xuqiang 4 tahun lalu
induk
melakukan
d3ea0eadc7

+ 3 - 0
src/main/pc-space/src/components/LoginInfo.vue

@@ -222,6 +222,9 @@ export default {
         line-height: 28px;
     }
 }
+/deep/ .el-link {
+    font-size: 12px;
+}
 /deep/ .el-dialog__header {
     padding: 30px 0 45px 80px;
 }

+ 13 - 5
src/main/pc-space/src/components/RegisterInfo.vue

@@ -20,7 +20,7 @@
                     <span class="el-icon-mobile-phone"></span>
                     <el-input style="width: 300px" v-model="form.phone" placeholder="请输入手机号"></el-input>
                 </el-form-item>
-                <el-form-item prop="code">
+                <div>
                     <el-form-item prop="code" :rules="{ required: true, message: '请输入', trigger: 'blur' }">
                         <span class="icon">
                             <img src="../assets/img/login_icon_yanzhengma@3x (2).png" alt="" />
@@ -34,7 +34,7 @@
                             >
                         </el-input>
                     </el-form-item>
-                </el-form-item>
+                </div>
                 <el-form-item prop="password">
                     <span class="el-icon-unlock"></span>
                     <el-input
@@ -56,11 +56,11 @@
                     ></el-input>
                 </el-form-item>
             </el-form>
-            <!-- <template>
+            <template>
                 <el-checkbox v-model="checked" v-if="isShow2">
                     <el-link style="margin-bottom: 2px">点击同意注册协议</el-link>
                 </el-checkbox>
-            </template> -->
+            </template>
             <div class="sub-btn" style="width: 300px" v-if="isShow2">
                 <div class="btn1" @click="doRegister">立即注册</div>
                 <el-button style="background: #f2f3f5; color: #292c33" type="info" class="btn-block" @click="Login"
@@ -137,7 +137,10 @@ export default {
         },
         // 注册
         doRegister() {
-            // this.$http;
+            if (this.checked == false) {
+                this.$message.warning('请点击同意注册协议');
+                return;
+            }
             this.verifyMsg(this.form.phone, this.form.code).then(() => {
                 return (
                     this.$http
@@ -229,6 +232,11 @@ export default {
 /deep/ .el-form-item__error {
     left: 110px;
 }
+.bbb {
+    /deep/ .el-form-item__error {
+        left: 0px !important;
+    }
+}
 /deep/ .el-form-item__content {
     display: flex;
     justify-content: center;

+ 11 - 6
src/main/pc-space/src/views/Submit.vue

@@ -93,9 +93,14 @@ export default {
         //     return resolveUrl('https://nfttest.9space.vip/wx/payOrder/weixin_pc?id=' + this.info.id);
         // },
         payUrl() {
-            return resolveUrl(this.$baseUrl, 'https://nfttest.9space.vip/payOrder/weixin_pc?id=' + this.id);
+            // https://nfttest.9space.vip/wx/redirect?redirectUrl=https://nfttest.9space.vip/payOrder/weixin_pc?id=2241
+            // return resolveUrl(this.$baseUrl, 'https://nfttest.9space.vip/payOrder/weixin_pc?id=' + this.id);
+            return resolveUrl(
+                this.$baseUrl,
+                'https://nfttest.9space.vip/wx/redirect?redirectUrl=https://nfttest.9space.vip/payOrder/weixin_pc?id=' +
+                    this.id
+            );
         },
-        // https://nfttest.9space.vip/wx/redirect?redirectUrl=https://nfttest.9space.vip/payOrder/weixin_pc?id=2006
         money() {
             if (this.info.price) {
                 return add(this.info.price, this.gas);
@@ -126,8 +131,6 @@ export default {
     },
     methods: {
         submit() {
-            // console.log(this.payUrl);
-            // console.log(this.info.id);
             // console.log(this.$baseUrl);
             // if (this.payMethods === 'DCEP') {
             //     this.wait();
@@ -135,9 +138,11 @@ export default {
             this.$http
                 .post('/order/create?collectionId=' + this.$route.query.id + '&qty=1')
                 .then(res => {
-                    // console.log(res);
-                    this.id = res.id;
+                    console.log(res);
                     this.status = res.status;
+                    this.id = res.id;
+                    console.log(this.id);
+                    console.log(this.payUrl);
                 })
                 .catch(e => {
                     if (e) {