From edf50893285f13c7c975b376a70ac3b164f48a13 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期一, 02 九月 2024 18:02:54 +0800 Subject: [PATCH] update 购物车加载速度 --- sub_pages/customer/shopping/confirm.vue | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/sub_pages/customer/shopping/confirm.vue b/sub_pages/customer/shopping/confirm.vue index 4ea2671..b3840d2 100644 --- a/sub_pages/customer/shopping/confirm.vue +++ b/sub_pages/customer/shopping/confirm.vue @@ -201,16 +201,23 @@ ...data, async success(res) { console.log('pay success', res) - tmp.$message.showToast('支付成功') + // tmp.$message.showToast('支付成功') //返回上一页 await tmp.$store.dispatch('sign_add', 'shopping') - uni.navigateBack() + tmp.$message.showToast('支付成功') + setTimeout(() => { + uni.navigateBack() + }, 500) + // await + // uni.navigateBack() + + }, async fail(err) { console.error('pay fail', err) tmp.$message.showToast('支付失败') - await tmp.$store.dispatch('sign_add', 'shopping') - uni.navigateBack() + // await tmp.$store.dispatch('sign_add', 'shopping') + // uni.navigateBack() } }) -- Gitblit v1.9.3