diff --git a/pages/index/index/index.vue b/pages/index/index/index.vue index d3106e4..e281af8 100644 --- a/pages/index/index/index.vue +++ b/pages/index/index/index.vue @@ -153,7 +153,8 @@ ad_modal_list: [], // ad广告列表 nav_bg_color: 'rgba(255,255,255,0)' ,// 导航背景颜色 car_num: 0, - live_roomid: 0 + live_roomid: 0, + page_options: {} }; }, // 注册组件 @@ -243,7 +244,8 @@ this.screenWidth = String(res.screenWidth); } }); - this.queryMicroData(); + this.page_options = e; + this.queryMicroData(e); this.init(e); }, @@ -365,10 +367,16 @@ }); }, // 请求数据 - queryMicroData() { + queryMicroData(e) { + let par = {}; + if(typeof this.page_options.id != 'undefined'){ + par.id = this.page_options.id; + } + this.$http .get({ - api: 'api/micro/page/index' + api: 'api/micro/page/index', + data: par }) .then(res => { if (res.statusCode == 200) { diff --git a/pages/index/onlineMall/onlineMall.vue b/pages/index/onlineMall/onlineMall.vue index 5077ab9..77dab1a 100644 --- a/pages/index/onlineMall/onlineMall.vue +++ b/pages/index/onlineMall/onlineMall.vue @@ -150,7 +150,6 @@ this.getBrandList(); let data_list = res.data.data || []; let list = data_list.map(item => { - console.log('当前的图片',item.img) return { id: item.id, original_price: item.market_price, @@ -162,9 +161,10 @@ title: item.name } }) - if(data_list[0] && data_list[0].tags){ - this.title = data_list[0].tags[0]; - this.filter_tabs[1].name = data_list[0].tags[0]; + let categorys = res.data.meta.categorys || {}; + if(this.$isRight(categorys)){ + this.title = categorys.name; + this.filter_tabs[1].name = categorys.name; } this.list = list; })