Liuyi
2024-10-23 9a139cc25da8396c1b257ccf99eb8d2fedfbc94d
pages/addressAdd/index.vue
@@ -7,6 +7,7 @@
   const pageTitle = ref('新增地址')
   const isCheckedDefault =ref(false)
   const form = ref({
      id:'',
      userName:'',
      userPhone:'',
      listRegion:[],
@@ -50,7 +51,6 @@
            if(res.code == 200){
               uni.showToast({
                  title: '修改成功',
                  image: '../../static/images/other/success.svg',
                  duration:500     
               })
               setTimeout(() =>{
@@ -61,17 +61,17 @@
         })
      }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)
            }
         })
      }