From d780880b7a73360c8fc9fead1b429dd8ba3758e3 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期五, 27 九月 2024 14:51:59 +0800
Subject: [PATCH] ts

---
 pages/cart/paymentPage/index.js |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/pages/cart/paymentPage/index.js b/pages/cart/paymentPage/index.js
index a9e402d..14d62f8 100644
--- a/pages/cart/paymentPage/index.js
+++ b/pages/cart/paymentPage/index.js
@@ -342,14 +342,16 @@
       orderNum: this.data.orderGoods
     }
     app.MG.store.confirmOrder(query).then(res => {
-      Toast({
-        context: this,
-        selector: '#t-toast',
-        message: '棰嗗彇鎴愬姛',
-        theme: 'success',
-        direction: 'column',
+      wx.showToast({
+        title: '棰嗗彇鎴愬姛',
+        icon: 'success',
+        complete: res => {
+          setTimeout(() => {
+            wx.navigateBack()
+          }, 1000);
+        }
       });
-      wx.navigateBack()
+
     })
   }
 })
\ No newline at end of file

--
Gitblit v1.9.1