页面显示优化

This commit is contained in:
Dev
2026-09-22 11:16:56 +08:00
parent b9c5d3fdcb
commit 229c361e9a
21 changed files with 120 additions and 93 deletions
@@ -17,6 +17,11 @@ Component({
type: Array,
value: [],
},
// 是否展示卡片上的"购买"引导按钮
showBuy: {
type: Boolean,
value: false,
},
},
data: {
@@ -1,5 +1,5 @@
<view class="goods-list-wrap wr-class" id="{{independentID}}">
<block wx:for="{{goodsList}}" wx:for-item="item" wx:key="index">
<goods-card id="{{independentID}}-gd-{{index}}" data="{{item}}" currency="{{item.currency || '¥'}}" thresholds="{{thresholds}}" class="goods-card-inside" data-index="{{index}}" bind:click="onClickGoods" />
<goods-card id="{{independentID}}-gd-{{index}}" data="{{item}}" currency="{{item.currency || '¥'}}" thresholds="{{thresholds}}" show-buy="{{showBuy}}" class="goods-card-inside" data-index="{{index}}" bind:click="onClickGoods" />
</block>
</view>