|
|
@@ -219,8 +219,10 @@
|
|
|
<text class="section-more" @click="goMoreProducts">更多 ›</text>
|
|
|
</view>
|
|
|
<DimensionProducts
|
|
|
+ ref="dimensionProducts"
|
|
|
:isLoggedIn="true"
|
|
|
- :showMore="false"
|
|
|
+ :showMore="true"
|
|
|
+ layout="mall"
|
|
|
@productClick="goProductDetail" />
|
|
|
</view>
|
|
|
|
|
|
@@ -830,7 +832,16 @@ title: '添加家庭成员',
|
|
|
// 定期调研待办角标(内部自检登录态,未登录静默清空)
|
|
|
this._loadSurveyBadge()
|
|
|
},
|
|
|
+ onReachBottom() {
|
|
|
+ // 滚动到页面底部时自动加载推荐商品(委托给 DimensionProducts.loadMore())
|
|
|
+ this.loadMoreProducts()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ loadMoreProducts() {
|
|
|
+ if (this.$refs.dimensionProducts) {
|
|
|
+ this.$refs.dimensionProducts.loadMore()
|
|
|
+ }
|
|
|
+ },
|
|
|
_checkSplashReady() {
|
|
|
this._splashLoadCount++
|
|
|
this._tryHideSplash()
|