|
|
@@ -45,11 +45,16 @@ export default {
|
|
|
type: '',
|
|
|
goods: [], // 商品列表
|
|
|
haveGoods: false, // 是否有商品
|
|
|
+ is_vip: undefined, //是否筛选“群主礼包”专区
|
|
|
};
|
|
|
},
|
|
|
onLoad(e) {
|
|
|
this.type = e.type;
|
|
|
this.title = this.tidyTpye(e.type);
|
|
|
+ if(e.is_vip) {
|
|
|
+ this.is_vip = e.is_vip;
|
|
|
+ this.title = "群主礼包";
|
|
|
+ }
|
|
|
uni.setNavigationBarTitle({
|
|
|
title: this.title
|
|
|
})
|
|
|
@@ -66,6 +71,7 @@ export default {
|
|
|
page: page,
|
|
|
type: this.type
|
|
|
}
|
|
|
+ if(this.is_vip) data.is_vip = this.is_vip;
|
|
|
post("v1/goods/goodsList", data).then(res => {
|
|
|
if (res.code === 0) {
|
|
|
let obj = res.data.data
|