From 2e568f8f8d6afdc2b893eb0a5a6445078b7d4d2d Mon Sep 17 00:00:00 2001 From: wangxiaowei <1121133807@qq.com> Date: Fri, 10 Apr 2026 11:28:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=A5=97=E9=A4=90=E8=AE=A2?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bundle/combo/details.vue | 36 ++++++++++++++++++++++++++---------- 1 file changed, 26 insertions(+), 10 deletions(-) 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() {