From 241f89ca342d560c16fd32a47c2423b9155a563e Mon Sep 17 00:00:00 2001 From: liudan <18634735655@163.com> Date: Mon, 22 May 2023 13:44:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/info.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pages/user/info.vue b/pages/user/info.vue index 0c4cf95..781bce8 100644 --- a/pages/user/info.vue +++ b/pages/user/info.vue @@ -227,7 +227,20 @@ export default { if (res.code === 1) { that.getUserInfo(); that.editInfoDisabled = true; - that.$u.toast("保存成功"); + uni.hideLoading() + setTimeout(() => { + uni.showToast({ + title: `保存成功`, + icon: "none", + duration: 3000, + success: (res) => { + setTimeout(() => { + uni.hideToast(); + }, 2000) + } + }); + }, 200); + // that.$u.toast("保存成功"); } }); },