diff --git a/pages/tabbar/home/template/tpl_goods.vue b/pages/tabbar/home/template/tpl_goods.vue index bc0782c..d4e6d31 100644 --- a/pages/tabbar/home/template/tpl_goods.vue +++ b/pages/tabbar/home/template/tpl_goods.vue @@ -37,7 +37,7 @@
-
+
{{ item.title }}
@@ -68,7 +68,7 @@
-
+
{{ item.goodsName }}
@@ -100,6 +100,7 @@ export default { }, goodsData: [], //商品循环内容 goodsResult:"", //es总返回内容 + proportion:0, }; }, props: ["res","enableBottomLoad"], @@ -119,6 +120,10 @@ export default { }, }, mounted() { + const winWidth = uni.getSystemInfoSync().windowWidth + const proportion = 750 / winWidth + this.proportion = proportion + uni.$on('onReachBottom',()=>{ if(this.enableBottomLoad && this.goodsResult.totalElements >= this.params.pageNumber * this.params.pageSize){ this.params.pageNumber++