管理家庭成员 添加
This commit is contained in:
parent
eef77f38ae
commit
65ea5f116b
@ -397,25 +397,38 @@
|
|||||||
}
|
}
|
||||||
that.$refs.uForm.validate(valid => {
|
that.$refs.uForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
registerdata(that.query).then(res => {
|
if (that.addresslength) {
|
||||||
if (res.code == 200) {
|
if (that.addresslength.length > 2) {
|
||||||
getCurrentUser(that.query.openid).then(res => {
|
registerdata(that.query).then(res => {
|
||||||
uni.setStorageSync('patientId', res.data.id);
|
if (res.code == 200) {
|
||||||
uni.setStorageSync('patientName', res.data.patientName);
|
getCurrentUser(that.query.openid).then(res => {
|
||||||
uni.setStorageSync("userinfo", res.data)
|
uni.setStorageSync('patientId', res.data.id);
|
||||||
that.$refs.uToast.show({
|
uni.setStorageSync('patientName', res.data.patientName);
|
||||||
title: '注册成功',
|
uni.setStorageSync("userinfo", res.data)
|
||||||
type: 'success',
|
that.$refs.uToast.show({
|
||||||
back: 1,
|
title: '注册成功',
|
||||||
})
|
type: 'success',
|
||||||
})
|
back: 1,
|
||||||
} else {
|
})
|
||||||
that.$refs.uToast.show({
|
})
|
||||||
title: res.msg,
|
} else {
|
||||||
type: 'error',
|
that.$refs.uToast.show({
|
||||||
|
title: res.msg,
|
||||||
|
type: 'error',
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
else {
|
||||||
|
that.$refs.uToast.show({
|
||||||
|
title: '所属区域应选择所在的区或街道,请重新选择!',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@ -458,28 +458,46 @@
|
|||||||
type: 'error'
|
type: 'error'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (_this.form.areaCode == "") {
|
||||||
|
_this.$refs.uToast.show({
|
||||||
|
title: '请选择所属区域',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
_this.$refs.uForm.validate(valid => {
|
_this.$refs.uForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
registerdata(_this.form).then(res => {
|
if (_this.addresslength) {
|
||||||
if (res.code == 500) {
|
if (_this.addresslength.length > 2) {
|
||||||
_this.$refs.uToast.show({
|
registerdata(_this.form).then(res => {
|
||||||
title: res.msg,
|
if (res.code == 500) {
|
||||||
type: 'error'
|
_this.$refs.uToast.show({
|
||||||
})
|
title: res.msg,
|
||||||
} else {
|
type: 'error'
|
||||||
_this.$refs.uToast.show({
|
})
|
||||||
title: '添加成功',
|
} else {
|
||||||
type: 'success'
|
_this.$refs.uToast.show({
|
||||||
})
|
title: '添加成功',
|
||||||
uni.navigateBack({
|
type: 'success'
|
||||||
delta: 1
|
})
|
||||||
})
|
uni.navigateBack({
|
||||||
// this.back()
|
delta: 1
|
||||||
|
})
|
||||||
|
// this.back()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
_this.$refs.uToast.show({
|
||||||
|
title: '所属区域应选择所在的区或街道,请重新选择!',
|
||||||
|
type: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -209,7 +209,7 @@
|
|||||||
baseurl: '', //url
|
baseurl: '', //url
|
||||||
orderlist: [], //商品订单list
|
orderlist: [], //商品订单list
|
||||||
total: 0, //list长度
|
total: 0, //list长度
|
||||||
show: false, //确认收获开关
|
// show: false, //确认收获开关
|
||||||
img: '', //确认收货页面图片
|
img: '', //确认收货页面图片
|
||||||
orderStatus: '', //
|
orderStatus: '', //
|
||||||
getCodeText: null,
|
getCodeText: null,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user