|
@@ -550,14 +550,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=' +
|
|
@@ -661,13 +653,17 @@ export default {
|
|
|
this.makePoint('activity_9.9年卡');
|
|
|
localStorage.setItem('year-9-9', 1);
|
|
|
}
|
|
|
- this.mealId = res.data.mealId;
|
|
|
- this.selMealId = res.data.mealId;
|
|
|
- this.getMealInfo();
|
|
|
- this.paySupportType = res.data.paySupportType;
|
|
|
- this.payType = this.paySupportType[0];
|
|
|
- this.phoneType = res.data.phoneType;
|
|
|
- this.title = res.data.title;
|
|
|
+
|
|
|
+ this.mealId = res.data.mealId
|
|
|
+ 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
|
|
|
this.prizeIndex = res.data.luckDrawType;
|
|
|
} else {
|
|
|
Toast({
|