diff --git a/bundle/combo/details.vue b/bundle/combo/details.vue
index 6396b1d..946aee3 100644
--- a/bundle/combo/details.vue
+++ b/bundle/combo/details.vue
@@ -97,22 +97,22 @@
会员购买
-
+
月卡
¥
- {{ info.price }}
+ {{ info.month_price }}
- 指导价{{ info.month_price }}元/月
+ 指导价{{ info.m_price }}元/月
-
+
季卡
¥
- {{ info.price }}
+ {{ info.seasonal_price }}
- 指导价{{ info.month_price }}元/季
+ 指导价{{ info.s_price }}元/季
@@ -150,7 +150,7 @@ export default {
showInfoModal: false, // 完善信息提示弹窗
showBuyModal: false, // 会员购买弹窗
showSuccessModal: false, // 购买成功弹窗
- selectedPlan: 0, // 选择的套餐
+ selectedPlan: 1, // 选择的套餐 1-月卡 2-季卡
info: null, // 套餐详情数据
};
},
@@ -244,11 +244,27 @@ export default {
selectPlan(index) {
this.selectedPlan = index;
},
+
confirmBuy() {
- this.showBuyModal = false;
- uni.showToast({ title: '正在为您开通...', icon: 'none' });
+ let self = this
+ self.showBuyModal = false;
+ self._post(
+ 'order.group/submitStoreOrder',
+ {
+ group_id: self.id,
+ type: self.selectedPlan, // 1-月卡 2-季卡
+ order_amount: self.selectedPlan === 1 ? self.info.month_price : self.info.seasonal_price
+ },
+ result => {
+ console.log("🚀 ~ result:", result)
+ },
+ false,
+ () => {
+ }
+ )
+
setTimeout(() => {
- this.showSuccessModal = true;
+ self.showSuccessModal = true;
}, 1000);
},
closeSuccessModal() {