'商品列表和详情页接上接口'

This commit is contained in:
2026-08-22 11:40:57 +08:00
parent 872cbeae32
commit 075c4ceee2
4 changed files with 234 additions and 72 deletions
+2 -3
View File
@@ -13,7 +13,7 @@
</view>
<!-- 商品网格滚动区 -->
<scroll-view scroll-y class="product-scroll" @scrolltolower="onLoadMore">
<scroll-view scroll-y class="product-scroll">
<view class="product-grid">
<view
class="product-card"
@@ -89,8 +89,7 @@ export default {
onTapProduct(item) { this.$emit('product-click', item) },
onPrev() { if (this.current > 1) this.$emit('page-change', this.current - 1) },
onNext() { if (this.current < this.totalPages) this.$emit('page-change', this.current + 1) },
onGoPage(page) { this.$emit('page-change', page) },
onLoadMore() { this.$emit('load-more') }
onGoPage(page) { this.$emit('page-change', page) }
}
}
</script>