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

bug处理

parent c74814df
...@@ -129,7 +129,6 @@ export default { ...@@ -129,7 +129,6 @@ export default {
this.credentialList=newValue.split(',') this.credentialList=newValue.split(',')
if(this.credentialList.length==1){ if(this.credentialList.length==1){
let type=this.credentialList[0] let type=this.credentialList[0]
this.credentialType=type
if(type=='0'){this.placeholderText='请输入身份证,必填'} if(type=='0'){this.placeholderText='请输入身份证,必填'}
if(type=='1'){this.placeholderText='请输入护照,必填'} if(type=='1'){this.placeholderText='请输入护照,必填'}
if(type=='2'){this.placeholderText='请输入港澳通行证,必填'} if(type=='2'){this.placeholderText='请输入港澳通行证,必填'}
...@@ -162,7 +161,16 @@ export default { ...@@ -162,7 +161,16 @@ export default {
}) })
return return
} }
if(this.credentialType===''){ let credentialType=''
//当只有一个证件类型时取第一个
if(this.credentialList.length==1){
credentialType=this.credentialList[0]
}
//当有多个证件类型时取选中的那一个
if(this.credentialList.length>1){
credentialType=this.credentialType
}
if(credentialType===''){
uni.showToast({ uni.showToast({
title:'请选择证件类型', title:'请选择证件类型',
icon:'none' icon:'none'
...@@ -183,6 +191,7 @@ export default { ...@@ -183,6 +191,7 @@ export default {
}) })
return return
} }
let data = { let data = {
name: this.name, //保存姓名 name: this.name, //保存姓名
phone:this.phone, //电话号码 phone:this.phone, //电话号码
...@@ -191,7 +200,7 @@ export default { ...@@ -191,7 +200,7 @@ export default {
merchantType: 1, //商户类型,1.景区,2.酒店,3.餐饮 merchantType: 1, //商户类型,1.景区,2.酒店,3.餐饮
id: this.reviseContactId, //被修改人id id: this.reviseContactId, //被修改人id
category: '', //成人或者儿童 category: '', //成人或者儿童
credentialType:this.credentialType, //证件类型 credentialType, //证件类型
} }
let queryUrl='' let queryUrl=''
if(this.reviseContactId){ 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