Kaynağa Gözat

fix: config navigate & weixin pay

wangyuan 2 yıl önce
ebeveyn
işleme
6f94b9d360
2 değiştirilmiş dosya ile 2 ekleme ve 23 silme
  1. 1 22
      pages/buy/buy.js
  2. 1 1
      pages/index/index.js

+ 1 - 22
pages/buy/buy.js

@@ -54,28 +54,7 @@ Page({
   },
   // 调用微信支付
   handleWXPay () {
-    var that = this
-    wx.showLoading({
-      title: '支付中...',
-      mask: true
-    })
-    setTimeout(() => {
-      wx.hideLoading({
-        success: () => {
-          wx.showModal({
-            content: '支付成功,立即去预约',
-            cancelColor: '#666',
-            confirmText: '去预约',
-            confirmColor: '#333',
-            success (res) {
-              if (res.confirm) {
-                that.handleAppointment()
-              }
-            }
-          })
-        }
-      })
-    }, 1000);
+    
   },
   handleAppointment () {
     wx.navigateTo({

+ 1 - 1
pages/index/index.js

@@ -89,7 +89,7 @@ Page({
   // 点击全部档案
   handleAllFile () {
     wx.navigateTo({
-      url: '/pages/allFile/allFile',
+      url: '/pages/myFile/myFile',
     })
   },
   // 添加检测人