From 9a139cc25da8396c1b257ccf99eb8d2fedfbc94d Mon Sep 17 00:00:00 2001 From: Liuyi <candymxq888@outlook.com> Date: 星期三, 23 十月 2024 17:24:35 +0800 Subject: [PATCH] 添加校验,修改头像 --- pages/addressAdd/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/addressAdd/index.vue b/pages/addressAdd/index.vue index d8fd2a3..3276ff9 100644 --- a/pages/addressAdd/index.vue +++ b/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) } }) } -- Gitblit v1.9.3