From 6970e36ad97ba1a4a9d69e4b388173a7d84be7bb Mon Sep 17 00:00:00 2001 From: zhaoxiaoqiang <287285524@qq.com> Date: Wed, 28 Jul 2021 15:03:31 +0800 Subject: [PATCH] mapState --- src/views/user/register-home.vue | 38 ++++---------------------------------- 1 files changed, 4 insertions(+), 34 deletions(-) diff --git a/src/views/user/register-home.vue b/src/views/user/register-home.vue index 4ba869b..a4de621 100644 --- a/src/views/user/register-home.vue +++ b/src/views/user/register-home.vue @@ -26,23 +26,14 @@ <van-field v-model.trim="form.licenseNo" clearable maxlength='20' placeholder="请输入营业执照号" /> <van-field v-model.trim="form.legalName" clearable maxlength='12' placeholder="请输入法人姓名" /> <van-field v-model.trim="form.legalIdNo" clearable maxlength='18' placeholder="请输入法人身份证号" /> - <van-field v-model.trim="form.addrText" clearable :readonly="true" right-icon="arrow" - @click="isShowArea = !isShowArea" placeholder="请选择省市区" /> + <van-field v-model.trim="form.addrText" clearable :readonly="true" right-icon="arrow" @click="isShowArea = !isShowArea" placeholder="请选择省市区" /> <van-field v-model.trim="form.dtlAddr" clearable maxlength='64' placeholder="请输入您的详细地址" /> <!-- 扫码进入页面的没有邀请码 --> - <van-field v-if="ShowqrCode" v-model.trim="form.inviteCode" - :placeholder="getQr ? '已扫描':'邀请码'" /> <van-button :color="$store.state.backColor" class="btn" @click="nextStep">下一步</van-button> <!-- <van-cell v-if="ShowqrCode" :readonly="true" :value="form.licenseNo" placeholder="邀请码"> </van-cell> --> </div> - - - - - - <!-- 步骤二 --> @@ -78,14 +69,6 @@ <van-button :color="$store.state.backColor" class="btn" @click="nextStep">{{ saveText }}</van-button> </div> - - - - - - - - </div> <van-popup v-model="ShowAgreen"> @@ -103,7 +86,7 @@ </van-popup> </div> <div style="font-size: 12px; color: #666;text-align: center;width: 100%;margin-top: 20px;"> - 客服电话:028-60102895 + 客服电话:028-86043722 </div> </div> </template> @@ -227,10 +210,7 @@ message: "请输入正确的联系人邮箱", type: "isEmail" }, - ], - - - + ] } }, computed: { @@ -240,12 +220,12 @@ } }, created() { - console.log(localStorage.sib_mer_sysPlat == 'undefined') if(this.$route.query.orgId){ this.form.orgId = this.$route.query.orgId || ''; this.form.orgType = this.$route.query.orgType || ''; this.ShowqrCode = false; } + this.form.inviteCode = 158875; this.initWXToken(location.origin + location.pathname); }, methods: { @@ -277,8 +257,6 @@ this.isShowArea = false; this.$refs.Area.reset() }, - - //保存 地区选择 setAreaValue(arr) { this.form.addrText = arr[0].name + '-' + arr[1].name + '-' + arr[2].name; @@ -299,9 +277,6 @@ this.isShowArea = false; this.$refs.Area.reset() }, - - - nextStep() { /** @@ -316,8 +291,6 @@ // } // } } - - /** * 第二步 * */ @@ -342,7 +315,6 @@ sysPlat = 2 } this.form.sysPlat = sysPlat - console.log(this.form); this.$api.merRegist(this.form).then(res => { this.$toast.success(`注册成功,请耐心等待审核!`); if(sessionStorage.isddxt == 1){ @@ -363,7 +335,6 @@ //代理所属渠道 getRegIDAndType() { let _this = this; - console.log('js 调用原生android 方法=====》'); window.sessionStorage.removeItem('scene_regInfos'); if (window.android && window.android.fetchQrCode) { _this.SET_APP_LOADING(true); @@ -438,7 +409,6 @@ }, function (error) { if (error.response) { - console.log(error.response); } } ); -- Gitblit v1.8.0