huangxiaojing %!s(int64=2) %!d(string=hai) anos
pai
achega
701539ac1d
Modificáronse 1 ficheiros con 3 adicións e 8 borrados
  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