hzd 2 年之前
父節點
當前提交
9b40cc8366
共有 2 個文件被更改,包括 15 次插入15 次删除
  1. 14 14
      pages/pay/index.js
  2. 1 1
      pages/pay/index.wxml

+ 14 - 14
pages/pay/index.js

@@ -50,21 +50,21 @@ Page({
           that.setData({
             temps: res.data.data.temps
           });
-          wx.showModal({
-            title: '温馨提示',
-            content: res.data.data.tips,
-            confirmText: "同意",
-            cancelText: "拒绝",
-            complete: (res) => {
-              if (res.cancel) {
+          // wx.showModal({
+          //   title: '温馨提示',
+          //   content: res.data.data.tips,
+          //   confirmText: "同意",
+          //   cancelText: "拒绝",
+          //   complete: (res) => {
+          //     if (res.cancel) {
                 
-              }
+          //     }
           
-              if (res.confirm) {
-                that.paySubscribe();
-              }
-            }
-          })
+          //     if (res.confirm) {
+          //       that.paySubscribe();
+          //     }
+          //   }
+          // })
         }
         
       }
@@ -86,7 +86,7 @@ Page({
           console.log('fail',res);
         },
         complete(){
-          // that.pay();
+          that.pay();
         }
       });
     }  

+ 1 - 1
pages/pay/index.wxml

@@ -16,7 +16,7 @@
     </view>
    
 
-    <view class="btn" bindtap="pay">
+    <view class="btn" bindtap="paySubscribe">
       确认支付
     </view>