diff --git a/pages/index/index.vue b/pages/index/index.vue
index 7749067..db7146d 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -316,7 +316,7 @@
店内现货
-
+
查看更多
@@ -459,7 +459,7 @@
return {
isLogin: false,
isTop: false,
- logoImage:'',
+ logoImage: '',
// background: {
// backgroundColor: 'transparent',
// },
@@ -719,13 +719,17 @@
})
},
getTypeList() {
- GoodsApi.typeList().then(res => {
+ GoodsApi.typeList({
+ is_in_store: this.current==0?0:1
+ }).then(res => {
if (res.status == 200) {
this.tabList = res.data.list;
this.catagoryList = res.data.list[0].children
+ if(this.current==0){
this.getRankingList(this.tabList[0].category_id)
this.getNewGoods(this.tabList[0].category_id)
- this.getBigList(this.tabList[0].category_id)
+ }
+ this.getBigList(this.current==0?(this.tabList[0].category_id):(this.tabList[this.tabCurrent].category_id))
}
})
},
@@ -831,7 +835,7 @@
categoryId: val,
is_brand: 0,
is_new: 1,
- order: 1
+ order: 1,
}
GoodsApi.brandList(param).then(res => {
let arr = res.data.data
@@ -860,7 +864,8 @@
categoryId: val,
is_brand: 1,
is_new: 0,
- order: 1
+ order: 1,
+ is_in_store: this.current==0?0:1
}
GoodsApi.brandList(param).then(res => {
let arr = res.data.data;
@@ -923,6 +928,8 @@
},
changeHome(val) {
this.current = val;
+ this.getTypeList()
+ // this.getBigList(this.tabList[this.tabCurrent].category_id)
},
getCityInfo() {
const that = this
@@ -937,7 +944,7 @@
async getStore() {
newFunApi.storeData().then(res => {
if (res.status == 200) {
- this.logoImage=res.data.storeInfo.logoImage.preview_url
+ this.logoImage = res.data.storeInfo.logoImage.preview_url
}
})
.finally(() => {})
@@ -2263,4 +2270,4 @@
// height:10px;
// width:10px;
// }
-
+
diff --git a/pages/invite/index.vue b/pages/invite/index.vue
index 2cf124f..5072613 100644
--- a/pages/invite/index.vue
+++ b/pages/invite/index.vue
@@ -5,7 +5,7 @@
-
+
@@ -55,10 +55,10 @@
-
+