地址的更改

This commit is contained in:
952108534@qq.com
2022-01-21 15:30:50 +08:00
parent e730b1210b
commit 7f9a290662
5 changed files with 176 additions and 72 deletions

View File

@@ -63,6 +63,9 @@ export default {
usermessage:null,
dialogInfo1:false,
userpeople:'',
provinceId:'',
cityId:'',
districtId:'',
list: [
{
id: 1,
@@ -121,11 +124,40 @@ export default {
});
return
}
else if(this.provinceId===''){
this.$message({
type: 'warning',
message: '请选择省区'
});
return
}
else if(this.cityId===''){
this.$message({
type: 'warning',
message: '请选择市区'
});
return
}
else if(this.districtId===''){
this.$message({
type: 'warning',
message: '请选择详细的区域'
});
return
}
else{
this.editaddress();
}
},
openclose(){
this.$router.push({
path: "/useraddress/openaddress",
// query: {
// id: userid,
// },
});
},
//添加
@@ -144,10 +176,20 @@ export default {
let data = await editaddress(useradd);
if(data){
console.log(data);
this.$message({
if(data){
this.$message({
type: 'warning',
message: '地址添加成功'
});
this.$router.push({
path: "/useraddress/openaddress",
// query: {
// id: userid,
// },
});
}
}
},