【增加】首页diy

This commit is contained in:
liqianjin 2023-03-03 13:39:03 +08:00
parent ab8316cabb
commit d5bdf7c2b9
1 changed files with 10 additions and 2 deletions

View File

@ -111,11 +111,17 @@ export default {
},
created() {
this.changeCateIndex(this.value.list[0], 0, true);
this.getData()
this.getList()
},
methods: {
changeCateIndex(item, index, isFirst) {
switch (item.sources){
case 'jianlou':
this.getList()
break;
case 'point':
this.getData()
break;
}
this.cateIndex = index;
this.goodsValue = {
sources: item.sources,
@ -182,6 +188,7 @@ export default {
// mescroll.endSuccess(newArr.length);
//
// if (mescroll.num == 1) this.goodsList = []; //
this.goodsList = []
this.goodsList = this.goodsList.concat(newArr); //
if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
},
@ -225,6 +232,7 @@ export default {
// this.list = []; //
// }
this.goodsList = []
this.list = this.list.concat(res.data.list); //
// this.end_time = parseInt(res.data.end_time);
//