comment 7.24
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -35,7 +35,7 @@ export default {
|
||||
props: ['recommendData', 'type'],
|
||||
created() {
|
||||
this.info = this.recommendData;
|
||||
console.log(this.recommendData);
|
||||
// console.log(this.recommendData);
|
||||
},
|
||||
methods: {
|
||||
toDetailsPage() {
|
||||
|
||||
Reference in New Issue
Block a user