From ea4d603dc171a27e19611902d3d4e97583b816b9 Mon Sep 17 00:00:00 2001
From: liangjin <liangjin@finlean.com>
Date: Fri, 02 Apr 2021 17:48:18 +0800
Subject: [PATCH] 和微分的权限
---
src/views/old/store/wx-pay-score.vue | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/views/old/store/wx-pay-score.vue b/src/views/old/store/wx-pay-score.vue
index ce096ae..f5212cf 100644
--- a/src/views/old/store/wx-pay-score.vue
+++ b/src/views/old/store/wx-pay-score.vue
@@ -41,7 +41,7 @@
<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 +49,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>
@@ -177,7 +177,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;
}
@@ -226,11 +230,15 @@
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