liangjin
2021-04-09 c0d97faf6b21c033a0a11f0b21083eac9dc1b82e
src/views/old/store/wx-pay-score.vue
@@ -36,12 +36,10 @@
                用户信息
            </div>
            <div class="form-content">
                <selector title='手机号类型' placeholder='请选择' @on-change='handleMblTypeChange' v-model="mblNoType"
                          :options='form.mblNoTypeList' :value-map="['code','name']" direction='rtl'></selector>
                <x-input title='用户姓名' v-model.trim="userName" placeholder='请输入' text-align='right' />
                <selector title='归属地' placeholder='请选择' @on-change='handleRegionChange' v-model="regionCode"
                          :options='form.regionList' :value-map="['code','name']" direction='rtl'></selector>
                <x-input title='身份证号码' v-model.trim="idCardNo" placeholder='请输入' text-align='right' />
                <x-input title='身份证号码' :max="18" v-model.trim="idCardNo" placeholder='请输入' text-align='right' />
                <van-field
                        v-model="mblNo"
                        clearable
@@ -122,7 +120,8 @@
        },
        created(){
            this.$api.wxScoreInit().then(res => {
            this.mblNoType = this.$route.query.mblNoType;
            this.$api.wxScoreInit({type:this.mblNoType}).then(res => {
                this.form = res.body || {};
                var arr = res.body.terms;
            }, err => err);
@@ -141,12 +140,6 @@
                this.term = currentEle.term;
                this.guaranteedAmt = currentEle.guaranteedAmt;
                this.monGiftAmt = currentEle.monGiftAmt;
            },
            // 账号类型
            handleMblTypeChange(val) {
                let currentEle = JSON.parse(JSON.stringify(this.form.mblNoTypeList)).find((item) => {
                    return item.code = val;
                });
            },
            // 市区
            handleRegionChange(val) {
@@ -177,7 +170,11 @@
                    v.toast('请输入用户身份证号');
                    return false;
                }
                if (!v.checkPhone(this.mblNo)) {
                if (v.checkValEmpty(this.mblNo)) {
                    v.toast('请输入用户手机号');
                    return false;
                }
                if (this.mblNo.length!=11) {
                    v.toast('请输入正确的用户手机号');
                    return false;
                }
@@ -222,7 +219,11 @@
                    v.toast('请输入用户身份证号');
                    return false;
                }
                if (!v.checkPhone(this.mblNo)) {
                if (v.checkValEmpty(this.mblNo)) {
                    v.toast('请输入用户手机号');
                    return false;
                }
                if (this.mblNo.length!=11) {
                    v.toast('请输入正确的用户手机号');
                    return false;
                }
@@ -234,6 +235,7 @@
                    return false;
                }
                this.$api.wxScoreCreate({
                    mblNoType:this.mblNoType,
                    creditId: this.creditId,
                    contId: this.contId,
                    cardNo: this.idCardNo,