ソースを参照

chore[litemall-wx]: 删除模拟支付代码

Junling Bu 6 年 前
コミット
3cf1e4a731
1 ファイル変更0 行追加24 行削除
  1. 0 24
      litemall-wx/pages/payResult/payResult.js

+ 0 - 24
litemall-wx/pages/payResult/payResult.js

@@ -31,30 +31,6 @@ Page({
   },
   payOrder() {
     let that = this;
-    // 模拟支付成功,同理,后台也仅仅是返回一个成功的消息而已
-    // wx.showModal({
-    //   title: '目前不能微信支付',
-    //   content: '点击确定模拟支付成功,点击取消模拟未支付成功',
-    //   success: function (res) {
-    //     if (res.confirm) {
-    //       util.request(api.OrderPrepay, { orderId: that.data.orderId }, 'POST').then(res => {
-    //         if (res.errno === 0) {
-    //           that.setData({
-    //             status: true
-    //           });
-    //         }
-    //         else {
-    //           util.showErrorToast('支付失败');
-    //         }
-    //       });
-    //     }
-    //     else if (res.cancel) {
-    //       util.showErrorToast('支付失败');
-    //     }
-
-    //   }
-    // });
-
     util.request(api.OrderPrepay, {
       orderId: that.data.orderId
     }, 'POST').then(function(res) {