From c0d97faf6b21c033a0a11f0b21083eac9dc1b82e Mon Sep 17 00:00:00 2001
From: liangjin <liangjin@finlean.com>
Date: Fri, 09 Apr 2021 15:06:44 +0800
Subject: [PATCH] 和微分和微分
---
src/views/old/store/wx-pay-score.vue | 31 ++++++++++++++++++-------------
1 files changed, 18 insertions(+), 13 deletions(-)
diff --git a/src/views/old/store/wx-pay-score.vue b/src/views/old/store/wx-pay-score.vue
index ce096ae..a1881ef 100644
--- a/src/views/old/store/wx-pay-score.vue
+++ b/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
@@ -49,7 +47,7 @@
type="number"
placeholder="手机号码"
>
- <van-button class="mgs-btn" slot="button" size="small" @click="mblVertify" >可用查询</van-button>
+ <van-button v-if="mblNoType==0||mblNoType==1" class="mgs-btn" slot="button" size="small" @click="mblVertify" >可用查询</van-button>
</van-field>
</div>
</group>
@@ -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,15 +219,23 @@
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;
+ }
+ if(this.mblNoType == 2){
+ this.vertifyStatus = 1;
}
if(this.vertifyStatus == 0){
v.toast('号码不可用');
return false;
}
this.$api.wxScoreCreate({
+ mblNoType:this.mblNoType,
creditId: this.creditId,
contId: this.contId,
cardNo: this.idCardNo,
--
Gitblit v1.8.0