审核模式

This commit is contained in:
Dev
2026-10-15 15:16:17 +08:00
parent 1c9927efd5
commit 3bc5ea70fe
11 changed files with 75 additions and 8 deletions
@@ -37,6 +37,11 @@ Component({
type: Boolean,
value: false,
},
// 是否展示价格(案例展示时关闭)
showPrice: {
type: Boolean,
value: true,
},
thresholds: {
type: Array,
@@ -16,9 +16,9 @@
<view wx:if="{{ goods.tags && !!goods.tags.length }}" class="goods-card__tags">
<view wx:for="{{ goods.tags }}" wx:key="index" wx:for-item="tag" class="goods-card__tag">{{ tag }}</view>
</view>
<view class="goods-card__down">
<price wx:if="{{ goods.price }}" wr-class="spec-for-price" symbol-class="spec-for-symbol" symbol="{{currency}}" price="{{goods.price}}" />
<price wx:if="{{ goods.originPrice && isValidityLinePrice }}" wr-class="goods-card__origin-price" symbol="{{currency}}" price="{{goods.originPrice}}" type="delthrough" />
<view class="goods-card__down" wx:if="{{(showPrice && (goods.price || (goods.originPrice && isValidityLinePrice))) || showBuy}}">
<price wx:if="{{ showPrice && goods.price }}" wr-class="spec-for-price" symbol-class="spec-for-symbol" symbol="{{currency}}" price="{{goods.price}}" />
<price wx:if="{{ showPrice && goods.originPrice && isValidityLinePrice }}" wr-class="goods-card__origin-price" symbol="{{currency}}" price="{{goods.originPrice}}" type="delthrough" />
<view wx:if="{{showBuy}}" class="goods-card__buy" hover-class="goods-card__buy--hover" hover-stay-time="60" catchtap="clickHandle" data-goods="{{ goods }}">
<t-icon name="cart" size="28rpx" color="#ffffff" />
</view>
@@ -22,6 +22,11 @@ Component({
type: Boolean,
value: false,
},
// 是否展示价格(案例展示时关闭)
showPrice: {
type: Boolean,
value: true,
},
},
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}}" show-buy="{{showBuy}}" 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}}" show-price="{{showPrice}}" class="goods-card-inside" data-index="{{index}}" bind:click="onClickGoods" />
</block>
</view>