Commit db5cb91b authored by 潘永坪's avatar 潘永坪

bug处理

parent c74814df
......@@ -129,7 +129,6 @@ export default {
this.credentialList=newValue.split(',')
if(this.credentialList.length==1){
let type=this.credentialList[0]
this.credentialType=type
if(type=='0'){this.placeholderText='请输入身份证,必填'}
if(type=='1'){this.placeholderText='请输入护照,必填'}
if(type=='2'){this.placeholderText='请输入港澳通行证,必填'}
......@@ -162,12 +161,21 @@ export default {
})
return
}
if(this.credentialType===''){
uni.showToast({
title:'请选择证件类型',
icon:'none'
})
return
let credentialType=''
//当只有一个证件类型时取第一个
if(this.credentialList.length==1){
credentialType=this.credentialList[0]
}
//当有多个证件类型时取选中的那一个
if(this.credentialList.length>1){
credentialType=this.credentialType
}
if(credentialType===''){
uni.showToast({
title:'请选择证件类型',
icon:'none'
})
return
}
if(!this.credentialNumber){
uni.showToast({
......@@ -183,6 +191,7 @@ export default {
})
return
}
let data = {
name: this.name, //保存姓名
phone:this.phone, //电话号码
......@@ -191,7 +200,7 @@ export default {
merchantType: 1, //商户类型,1.景区,2.酒店,3.餐饮
id: this.reviseContactId, //被修改人id
category: '', //成人或者儿童
credentialType:this.credentialType, //证件类型
credentialType, //证件类型
}
let queryUrl=''
if(this.reviseContactId){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment