diff --git a/components/CustomTabBar.vue b/components/CustomTabBar.vue index 97ec757..f06b7e1 100644 --- a/components/CustomTabBar.vue +++ b/components/CustomTabBar.vue @@ -91,6 +91,7 @@ export default { justify-content: center; flex: 1; flex-shrink: 0; + height: 100%; } diff --git a/pages/index/index.vue b/pages/index/index.vue index 9e4ab9b..ba40130 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -49,23 +49,12 @@ // 大轮播 this.Post({ type_id: 3, - position: 1, + position: 17, }, '/api/adv/getAdv').then(res => { if(res.data) { this.topBanner = res.data; } }); - - // 小轮播 - this.Post({ - type_id: 3, - position: 2, - }, '/api/adv/getAdv').then(res => { - if(res.data) { - this.smallBanner = res.data; - this.screenPng = res.data[0] - } - }); }, gotoVideo(item) { uni.navigateTo({ diff --git a/pages/index/intelligentAgent.vue b/pages/index/intelligentAgent.vue index 614c4cf..a3e34c9 100644 --- a/pages/index/intelligentAgent.vue +++ b/pages/index/intelligentAgent.vue @@ -32,7 +32,7 @@ // 大轮播 this.Post({ type_id: 3, - position: 1, + position: 3, }, '/api/adv/getAdv').then(res => { if(res.data) { this.topBanner = res.data; diff --git a/pages/index/sensoryStore.vue b/pages/index/sensoryStore.vue index b2f3bfe..0eef77b 100644 --- a/pages/index/sensoryStore.vue +++ b/pages/index/sensoryStore.vue @@ -20,7 +20,7 @@ - + {{item.goods.title}} @@ -32,11 +32,11 @@ - + - + @@ -53,6 +53,7 @@ topBanner: [], list: [], swiperIndex: 0, + typeList: [], } }, onLoad() { @@ -60,8 +61,8 @@ }, onReady() { this.getProduct() + this.getTypes() this.getList() - }, onReachBottom() { @@ -85,7 +86,7 @@ getProduct () { this.Post({ - tag_id: 45, + tag_id: 40, offset: 0, limit: 3, },'/api/tag/getGoodsByTagId').then(res => { @@ -93,17 +94,30 @@ }) }, + getList() { // 大轮播 this.Post({ type_id: 3, - position: 1, + position: 18, }, '/api/adv/getAdv').then(res => { if(res.data) { this.topBanner = res.data; } }); }, + + // 获取分类图片 + getTypes () { + this.Post({ + parent_id: 0, + }, '/api/goods/type').then(res => { + if(res.data) { + this.typeList = res.data; + } + }); + }, + // 2是各种详情页,3是列表专题页面,4是小程序 gotoUrlNew(item) { console.log(item); @@ -232,5 +246,14 @@ margin-bottom: 20rpx; } } - + .line{ + width: 220rpx; + height: 1rpx; + background: #E4E4E4; + flex-shrink: 0; + } + .head-img-yougan{ + width: 183.45rpx; + height: 42.57rpx; + }