loadmore 7.27
This commit is contained in:
@@ -14,12 +14,10 @@
|
||||
</swiper>
|
||||
<!-- 加载更多 -->
|
||||
<u-loadmore :status="loadStatus" bgColor="#FFF" margin-top="20" margin-bottom="20"></u-loadmore>
|
||||
<!-- <loadmore ref="loadmore" @callback="getGoodsRecommend" bgColor="#FFF" :page="page"></loadmore> -->
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import item from "./item";
|
||||
import loadmore from "@/components/loadmore/index";
|
||||
export default {
|
||||
name:"list",
|
||||
data() {
|
||||
@@ -36,10 +34,10 @@ export default {
|
||||
},
|
||||
components: {
|
||||
item,
|
||||
loadmore
|
||||
},
|
||||
watch: {
|
||||
current(index) {
|
||||
this.page = 1;
|
||||
const id = this.classifyList[index].gc_id;
|
||||
this.getGoodsRecommend({gc_id: id});
|
||||
}
|
||||
@@ -68,8 +66,6 @@ export default {
|
||||
this.loadStatus = "nomore";
|
||||
this.page--;
|
||||
})
|
||||
// this.$refs.loadmore.reachBottom();
|
||||
// this.getGoodsRecommend(this.classifyList[this.current].gc_id);
|
||||
},
|
||||
getGoodsClassRecommend(gc_id) {
|
||||
this.$u.api.getGoodsClassRecommend().then(res => {
|
||||
@@ -77,7 +73,6 @@ export default {
|
||||
// 初始化 current
|
||||
this.current = 0;
|
||||
this.classifyList = res.data.gc_recommend;
|
||||
// this.getGoodsRecommend(this.classifyList[0].gc_id);
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user