diff --git a/components/m-goods-list/base-list.vue b/components/m-goods-list/base-list.vue index a64c302..bae5637 100644 --- a/components/m-goods-list/base-list.vue +++ b/components/m-goods-list/base-list.vue @@ -1,198 +1,276 @@ - - - - - - - - - - {{ item.goodsName }} - - - ¥{{ $options.filters.goodsFormatPrice(item.price )[0] }} .{{ - $options.filters.goodsFormatPrice(item.price )[1] - }} - - - - - 批 - - - 劵 - 满减 - 秒杀 - - - - 已售 {{ item.buyCount || '0' }} - {{ item.commentNum || '0' }}条评论 - - - - - - - + + + + + + + + + + + + + + ¥{{ + $options.filters.goodsFormatPrice(item.price)[0] + }} .{{ $options.filters.goodsFormatPrice(item.price)[1] }} + + + + 已售 {{ item.buyCount || "0" }} + {{ item.commentNum || "0" }}条评论 + + + + + {{ item.storeName || "暂无" }} + + + + + + + + + + + + + + + + + + + + {{ item.goodsName }} + + + + ¥{{ $options.filters.goodsFormatPrice(item.price)[0] }} .{{ $options.filters.goodsFormatPrice(item.price)[1] }} + + + + + 批 + + + 劵 + 满减 + 秒杀 + + + + 已售 {{ item.buyCount || "0" }} + {{ item.commentNum || "0" }}条评论 + + + + + + - diff --git a/pages/tabbar/home/index.vue b/pages/tabbar/home/index.vue index cbeebf5..ea9406e 100644 --- a/pages/tabbar/home/index.vue +++ b/pages/tabbar/home/index.vue @@ -15,6 +15,11 @@ export default { }, }; }, + onReachBottom(){ + // 给子级监听触底加载 + uni.$emit('onReachBottom',true) + }, + onPullDownRefresh() { this.$refs.tpl.init(); diff --git a/pages/tabbar/home/template/tpl_goods.vue b/pages/tabbar/home/template/tpl_goods.vue index 98f6b15..9075aa0 100644 --- a/pages/tabbar/home/template/tpl_goods.vue +++ b/pages/tabbar/home/template/tpl_goods.vue @@ -1,21 +1,38 @@ - - + {{ title.title }} {{ title.desc }} - + - + @@ -24,9 +41,42 @@ {{ item.title }} - ¥{{ $options.filters.goodsFormatPrice(item.price )[0] }} .{{ - $options.filters.goodsFormatPrice(item.price)[1] - }} + + ¥{{ $options.filters.goodsFormatPrice(item.price)[0] }} .{{ $options.filters.goodsFormatPrice(item.price)[1] }} + + + + + + + + + + + + + + {{ item.goodsName }} + + + + ¥{{ $options.filters.goodsFormatPrice(item.price)[0] }} .{{ $options.filters.goodsFormatPrice(item.price)[1] }} + @@ -34,6 +84,7 @@