zhaoxiaoqiang
2021-07-28 9391666516d021f068dbb53c8b5939b96a36a27c
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">
@@ -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);
            }
          }
        );