From 063dac39e42e0f1676957a41bf9821ff63aeb56a Mon Sep 17 00:00:00 2001 From: fuchao <2577131060@qq.com> Date: Fri, 5 Dec 2025 08:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E5=85=85=E5=80=BC=E9=87=91=E9=A2=9D=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/recharge/index.vue | 35 ++++++++++++++++++++++++++++------- 1 file changed, 28 insertions(+), 7 deletions(-) diff --git a/pages/user/recharge/index.vue b/pages/user/recharge/index.vue index 3364d01..d2b9d0f 100644 --- a/pages/user/recharge/index.vue +++ b/pages/user/recharge/index.vue @@ -2,16 +2,31 @@ + + + + 活动充值金额 + + + NZ${{item.realMoney}} + {{item.money}}{{ $t('global.coin') }} + {{item.description}} + ({{$t('order.give')}}{{item.givejf}}{{$t('order.points')}}) + + + + {{$t('order.rechargeAmount')}} + v-for="item in standardAmountList" :key="item.priceTypeId"> NZ${{item.realMoney}} {{item.money}}{{ $t('global.coin') }} - - {{item.description}} ({{$t('order.give')}}{{item.givejf}}{{$t('order.points')}}) @@ -116,7 +131,10 @@ const purchaseToken = ref() // 订单编号 const orderSn = ref('') - + // 活动充值数据 + const eventAmountList = ref([]) + //正常金额数据 + const standardAmountList = ref([]) /** * 获取使用环境 @@ -140,8 +158,11 @@ try { rechargeList.value = await getBookBuyConfigList(type.value, qudao.value) console.log(rechargeList.value.bookBuyConfigList, '充值列表'); + const data = rechargeList.value.bookBuyConfigList // 默认选择第一个金额 - aloneItem.value = rechargeList.value.bookBuyConfigList[0] + aloneItem.value = data[0] + eventAmountList.value = data.filter(item => item.givejf > 0) + standardAmountList.value = data.filter(item => item.givejf <= 0) } catch (error) { console.error('获取订单列表失败:', error) } @@ -382,7 +403,7 @@ color: #007bff; padding: 30rpx 0 20rpx 30rpx; } - + .recharge { display: flex; flex-wrap: wrap; @@ -546,7 +567,7 @@ .active_block { background-color: rgba(37, 143, 235, 0.2); margin: 0 30rpx 20rpx 30rpx; - border-radius: 10rpx; + border-radius: 10rpx; padding: 15rpx; font-size: 28rpx; color: #333;