| | |
| | | const pageTitle = ref('新增地址') |
| | | const isCheckedDefault =ref(false) |
| | | const form = ref({ |
| | | id:'', |
| | | userName:'', |
| | | userPhone:'', |
| | | listRegion:[], |
| | |
| | | if(res.code == 200){ |
| | | uni.showToast({ |
| | | title: '修改成功', |
| | | image: '../../static/images/other/success.svg', |
| | | duration:500 |
| | | }) |
| | | setTimeout(() =>{ |
| | |
| | | }) |
| | | }else{ |
| | | //新增地址 |
| | | form.value.id = JSON.parse(uni.getStorageSync('userInfo')).id |
| | | await creatUserArchive(form.value).then((res) =>{ |
| | | if(res.code == 200){ |
| | | uni.showToast({ |
| | | title: '新增成功', |
| | | image: '../../static/images/other/success.svg', |
| | | duration:500 |
| | | duration:1000 |
| | | }) |
| | | setTimeout(() =>{ |
| | | uni.navigateBack() |
| | | form.value = {} |
| | | },500) |
| | | },1000) |
| | | } |
| | | }) |
| | | } |