页面显示优化

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
@@ -322,12 +322,5 @@ Component({
buyNum,
});
},
handleBuyNumChange(e) {
const { value } = e.detail;
this.setData({
buyNum: value,
});
},
},
});
@@ -54,9 +54,8 @@
<view class="popup-sku-stepper-container">
<view class="popup-sku__stepper-title">
购买数量
<view class="limit-text" wx:if="{{limitBuyInfo}}"> ({{limitBuyInfo}}) </view>
</view>
<t-stepper value="{{buyNum}}" min="{{1}}" max="{{2}}" theme="filled" bind:change="handleBuyNumChange" />
<t-stepper value="{{1}}" min="{{1}}" max="{{1}}" disabled theme="filled" />
</view>
</view>
</view>
+1 -1
View File
@@ -29,7 +29,7 @@
</view>
</view>
<view class="category-goods-list" wx:if="{{goodsList.length}}">
<goods-list wr-class="wr-goods-list" goodsList="{{goodsList}}" bind:click="gotoGoodsDetail" />
<goods-list wr-class="wr-goods-list" goodsList="{{goodsList}}" show-buy="{{true}}" bind:click="gotoGoodsDetail" />
</view>
<view class="empty-wrap" wx:if="{{goodsList.length === 0 && hasLoaded}}">
<t-empty t-class="empty-tips" size="240rpx" description="暂无相关产品" />