积分商城修改

This commit is contained in:
2025-12-11 11:34:06 +08:00
parent 87f2ee8c3d
commit bb2830730d
6 changed files with 372 additions and 170 deletions

View File

@@ -25,7 +25,7 @@
</template>
<template v-if="layout === 'block'">
<view class="item">
<view class="img coupon" v-if="item.goodsCategory=='优惠'&&item.couponInfo">
<view class="img coupon" v-if="item.goodsCategory=='优惠'&&item.couponInfo">
<couponIcon :item="item.couponInfo" typeKey="couponType" />
</view>
<image class="img" v-else lazy-load :src="item.goodsImageUrl"></image>
@@ -37,7 +37,7 @@
</view>
<view class="u-flex u-col-center u-m-t-16 u-row-between">
<view class="limit" v-if="item.limitQuota">限购{{item.limitQuota}}</view>
<view class="btn" v-if="canExchange(item)">兑换</view>
<view class="btn" v-if="item.quantity>0">兑换</view>
<view class="btn end" v-else>已兑完</view>
</view>
</view>
@@ -65,7 +65,7 @@
});
function toDetail(item) {
if (!canExchange(item)) {
if (item.quantity<=0) {
return
}
uni.setStorageSync('exchange_goods', item)