积分商城修改
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user