huangxiaojing 2 年 前
コミット
701539ac1d
共有1 個のファイルを変更した3 個の追加8 個の削除を含む
  1. 3 8
      pages/activity/lottery/index.vue

+ 3 - 8
pages/activity/lottery/index.vue

@@ -268,14 +268,6 @@ export default {
             actualPrice: this.actualPrice
           });
         } else if (this.$userAgent.isMiniProgram) {
-          if (this.payType === 'aliPay') {
-            Toast({
-              message: '微信小程序不支持支付宝支付',
-              position: 'top',
-              duration: 4000
-            });
-            return false
-          }
           this.$wx.miniProgram.navigateTo({
             url: '/packageA/order/status/index?record=' + JSON.stringify({
               payActive: this.payType === 'wxPay' ? 1 : 0,
@@ -375,6 +367,9 @@ export default {
         this.selMealId = res.data.mealId
         this.getMealInfo()
         this.paySupportType = res.data.paySupportType
+        if (this.$userAgent.isMiniProgram) {
+          this.paySupportType = ['wxPay']
+        }
         this.payType = this.paySupportType[0]
         this.phoneType = res.data.phoneType
         this.title = res.data.title