充值活动相关增加

This commit is contained in:
GaoHao
2024-10-26 09:23:21 +08:00
parent d6ca0aead6
commit a868117cda
5 changed files with 62 additions and 35 deletions

View File

@@ -4,10 +4,10 @@
<view class="topUpActivity">
<view class="topUpActivity_title">充值更划算</view>
<view class="content">
<view class="content_item" @click="goTopUp" v-for="(item,index) in list" :key="index">
<view class="content_item" @click="goTopUp(item)" v-for="(item,index) in list" :key="index">
<view class="fit">首充优惠</view>
<view class="amount">{{ item.minNum }}</view>
<view class="zs"><text class="zamount">{{ item.handselNum }}</text><text class="points">50积分</text></view>
<view class="amount">{{ item.amount }}</view>
<view class="zs"><text class="zamount">{{ item.giftAmount }}</text><text class="points">50积分</text></view>
<view class="coupon">赠送2张优惠券</view>
</view>
</view>
@@ -35,10 +35,11 @@
/**
* 去充值
*/
goTopUp() {
goTopUp( item ) {
uni.pro.navigateTo('/pages/member/index', {
shopId: uni.cache.get('shopId'),
type: "topUpActivity"
type: "topUpActivity",
amount: item.amount,
})
},

View File

@@ -109,7 +109,7 @@
<!-- 充值免单 -->
<!-- <rechargeFree ref="rechargeFree" :shopUserInfo="amountVIP" @changeFree="changeFree"></rechargeFree> -->
<!-- 充值活动 -->
<!-- <topUpActivity ref="topUpActivity" :shopUserInfo="amountVIP" ></topUpActivity> -->
<topUpActivity ref="topUpActivity" :shopUserInfo="amountVIP" ></topUpActivity>
<!-- 支付方式 -->
<paymentMethod ref="paymentMethod" :amountVIP="amountVIP" v-if="storeInfo.registerType == 'munchies'" @groupChange="groupChange"></paymentMethod>