comment 7.24

This commit is contained in:
2020-07-24 20:35:28 +08:00
parent dd71a0f32a
commit 5abb3f2496
5 changed files with 32 additions and 28 deletions

View File

@@ -23,14 +23,12 @@ export default {
components:{
sitem
},
props: {
classifyList: Array,
},
data(){
return {
current: -1,
swiperCurrent: 0,
groupList: [], // 拼团商品
classifyList: [],
}
},
watch: {
@@ -39,9 +37,18 @@ export default {
}
},
created() {
this.current = 0;
this.getGoodsClass();
},
methods: {
// 获取优惠券拼团分类
getGoodsClass() {
this.$u.api.getGoodsClass().then(res => {
if(res.errCode == 0) {
this.classifyList = res.data;
this.current = 0;
}
})
},
// 拼团列表
getPinTuanList(id) {
this.$u.api.getPinTuanList({
@@ -88,7 +95,7 @@ export default {
}
.list {
box-sizing: border-box;
padding: 30rpx;
padding: 0 30rpx;
display: flex;
justify-content: space-between;
}

View File

@@ -57,7 +57,7 @@ export default {
page: this.page,
reload: false,
}).then(length => {
console.log(length);
// console.log(length);
if(length == 0) {
this.page--;
this.loadStatus = 'nomore';

View File

@@ -35,7 +35,7 @@ export default {
props: ['recommendData', 'type'],
created() {
this.info = this.recommendData;
console.log(this.recommendData);
// console.log(this.recommendData);
},
methods: {
toDetailsPage() {