|
|
|
@ -27,7 +27,7 @@
|
|
|
|
placeholder: '请输入身份证号',
|
|
|
|
placeholder: '请输入身份证号',
|
|
|
|
type: 'slot',
|
|
|
|
type: 'slot',
|
|
|
|
pColumn: 8,
|
|
|
|
pColumn: 8,
|
|
|
|
require: true,
|
|
|
|
require: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
icon: '',
|
|
|
|
icon: '',
|
|
|
|
@ -38,7 +38,7 @@
|
|
|
|
tip: 'slot-sex',
|
|
|
|
tip: 'slot-sex',
|
|
|
|
type: 'slot',
|
|
|
|
type: 'slot',
|
|
|
|
pColumn: 12,
|
|
|
|
pColumn: 12,
|
|
|
|
require: true,
|
|
|
|
require: false,
|
|
|
|
customRequire: true,
|
|
|
|
customRequire: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -51,7 +51,7 @@
|
|
|
|
placeholder: '请输入年龄',
|
|
|
|
placeholder: '请输入年龄',
|
|
|
|
type: 'slot',
|
|
|
|
type: 'slot',
|
|
|
|
pColumn: 8,
|
|
|
|
pColumn: 8,
|
|
|
|
require: true,
|
|
|
|
require: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
icon: '',
|
|
|
|
icon: '',
|
|
|
|
@ -118,7 +118,7 @@
|
|
|
|
placeholder: '请输入联系电话',
|
|
|
|
placeholder: '请输入联系电话',
|
|
|
|
type: 'slot',
|
|
|
|
type: 'slot',
|
|
|
|
pColumn: 8,
|
|
|
|
pColumn: 8,
|
|
|
|
require: true,
|
|
|
|
require: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]" @changeMobile="handleClickMobile"></g-panel-form-slot>
|
|
|
|
]" @changeMobile="handleClickMobile"></g-panel-form-slot>
|
|
|
|
<g-panel-fixed>
|
|
|
|
<g-panel-fixed>
|
|
|
|
@ -376,41 +376,27 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!that.info.sex) {
|
|
|
|
if (!that.info.tel && !that.info.weChat) {
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
icon: 'none',
|
|
|
|
icon: 'none',
|
|
|
|
title: '请选择性别',
|
|
|
|
title: '请输入手机号或微信',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!that.info.age) {
|
|
|
|
if (that.info.tel &&!that.G.setReg(that.info.tel, 'tel')) {
|
|
|
|
uni.showToast({
|
|
|
|
|
|
|
|
icon: 'none',
|
|
|
|
|
|
|
|
title: '请输入年龄',
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!that.info.nation) {
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
|
|
|
|
icon: 'none',
|
|
|
|
|
|
|
|
title: '请选择民族',
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!that.G.setReg(that.info.tel, 'tel')) {
|
|
|
|
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
icon: 'none',
|
|
|
|
icon: 'none',
|
|
|
|
title: '请输入正确的手机号',
|
|
|
|
title: '请输入正确的手机号',
|
|
|
|
})
|
|
|
|
})
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!that.G.setReg(that.info.idCard, 'idcard')) {
|
|
|
|
if (that.info.idCard && !that.G.isValidIdCard(that.info.idCard)) {
|
|
|
|
uni.showToast({
|
|
|
|
uni.showToast({
|
|
|
|
icon: 'none',
|
|
|
|
icon: "none",
|
|
|
|
title: '请输入正确的身份证号',
|
|
|
|
title: "请输入正确的身份证号",
|
|
|
|
})
|
|
|
|
});
|
|
|
|
return false
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(that.info)
|
|
|
|
console.log(that.info)
|
|
|
|
if (that.imgList.length > 0) {
|
|
|
|
if (that.imgList.length > 0) {
|
|
|
|
that.info.imgs = that.newAddImg.toString()
|
|
|
|
that.info.imgs = that.newAddImg.toString()
|
|
|
|
|