|
@@ -81,7 +81,6 @@ export default {
|
|
defaultStatus: '', //是否为默认地址 0-否 1-是
|
|
defaultStatus: '', //是否为默认地址 0-否 1-是
|
|
postCode: '', //邮政编码
|
|
postCode: '', //邮政编码
|
|
city: '', //省份/直辖市
|
|
city: '', //省份/直辖市
|
|
- postCode: '', //城市
|
|
|
|
region: '', //区
|
|
region: '', //区
|
|
detailAddress: '', //详细地址(街道)
|
|
detailAddress: '', //详细地址(街道)
|
|
regionArea: '', //所属地区 页面渲染
|
|
regionArea: '', //所属地区 页面渲染
|
|
@@ -91,16 +90,23 @@ export default {
|
|
receiveName: {
|
|
receiveName: {
|
|
type: 'string',
|
|
type: 'string',
|
|
required: true,
|
|
required: true,
|
|
- message: '请填写姓名',
|
|
|
|
- trigger: ['blur', 'change'],
|
|
|
|
- },
|
|
|
|
- 'userInfo.sex': {
|
|
|
|
- type: 'string',
|
|
|
|
- max: 1,
|
|
|
|
- required: true,
|
|
|
|
- message: '请选择男或女',
|
|
|
|
|
|
+ message: '请输入用户',
|
|
trigger: ['blur', 'change'],
|
|
trigger: ['blur', 'change'],
|
|
},
|
|
},
|
|
|
|
+ phone: [
|
|
|
|
+ {
|
|
|
|
+ required: true,
|
|
|
|
+ message: '请输入联系方式',
|
|
|
|
+ trigger: ['change', 'blur'],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ validator: (_rule, value, _callback) => {
|
|
|
|
+ return uni.$u.test.mobile(value);
|
|
|
|
+ },
|
|
|
|
+ message: '联系方式不正确',
|
|
|
|
+ trigger: ['change', 'blur'],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
radio: '',
|
|
radio: '',
|
|
switchVal: false,
|
|
switchVal: false,
|
|
@@ -121,7 +127,11 @@ export default {
|
|
orientation() {
|
|
orientation() {
|
|
this.getOrientationInfo();
|
|
this.getOrientationInfo();
|
|
},
|
|
},
|
|
- handleSave() {},
|
|
|
|
|
|
+ handleSave() {
|
|
|
|
+ this.$refs.uForm.validate().then(res => {
|
|
|
|
+ console.log(res);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|