Ver código fonte

feat: 订单支付页,余额充值跳转改为H5路径

ext.zhangbin71 1 dia atrás
pai
commit
ca2dd19c13
1 arquivos alterados com 14 adições e 1 exclusões
  1. 14 1
      pages/users/order_confirm/index.vue

+ 14 - 1
pages/users/order_confirm/index.vue

@@ -990,9 +990,22 @@ const getOrderPay = async (orderNo, message) => {
 
 function modalConfirm() {
   showModal.value = false;
+  const webviewPageUrl = `/pages/webview/index?path=/pages/users/vault/rechargeRmb`;
+  
   uni.navigateTo({
-    url: "/pages/users/vault/recharge",
+    url: webviewPageUrl,
+    fail: (err) => {
+      console.error("跳转到webview页面失败:", err);
+      uni.showToast({
+        title: "跳转失败,请重试",
+        icon: "none",
+        duration: 1500,
+      });
+    },
   });
+  // uni.navigateTo({
+  //   url: "/pages/users/vault/recharge",
+  // });
 }
 
 const SubOrder = async (e) => {