|
|
@ -316,7 +316,7 @@ |
|
|
|
<view class="diannei"> |
|
|
|
<view class="diannei"> |
|
|
|
<view class="dianneiTitle"> |
|
|
|
<view class="dianneiTitle"> |
|
|
|
<text>店内现货</text> |
|
|
|
<text>店内现货</text> |
|
|
|
<view class="lookMore" @click="goJump('/pages/user/vip/goods')"> |
|
|
|
<view class="lookMore" @click="goJump('/pages/user/vip/goods?type=1')"> |
|
|
|
查看更多 |
|
|
|
查看更多 |
|
|
|
<u-icon name="arrow-right" color="#909090"></u-icon> |
|
|
|
<u-icon name="arrow-right" color="#909090"></u-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -719,13 +719,17 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
getTypeList() { |
|
|
|
getTypeList() { |
|
|
|
GoodsApi.typeList().then(res => { |
|
|
|
GoodsApi.typeList({ |
|
|
|
|
|
|
|
is_in_store: this.current==0?0:1 |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
if (res.status == 200) { |
|
|
|
if (res.status == 200) { |
|
|
|
this.tabList = res.data.list; |
|
|
|
this.tabList = res.data.list; |
|
|
|
this.catagoryList = res.data.list[0].children |
|
|
|
this.catagoryList = res.data.list[0].children |
|
|
|
|
|
|
|
if(this.current==0){ |
|
|
|
this.getRankingList(this.tabList[0].category_id) |
|
|
|
this.getRankingList(this.tabList[0].category_id) |
|
|
|
this.getNewGoods(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, |
|
|
|
categoryId: val, |
|
|
|
is_brand: 0, |
|
|
|
is_brand: 0, |
|
|
|
is_new: 1, |
|
|
|
is_new: 1, |
|
|
|
order: 1 |
|
|
|
order: 1, |
|
|
|
} |
|
|
|
} |
|
|
|
GoodsApi.brandList(param).then(res => { |
|
|
|
GoodsApi.brandList(param).then(res => { |
|
|
|
let arr = res.data.data |
|
|
|
let arr = res.data.data |
|
|
@ -860,7 +864,8 @@ |
|
|
|
categoryId: val, |
|
|
|
categoryId: val, |
|
|
|
is_brand: 1, |
|
|
|
is_brand: 1, |
|
|
|
is_new: 0, |
|
|
|
is_new: 0, |
|
|
|
order: 1 |
|
|
|
order: 1, |
|
|
|
|
|
|
|
is_in_store: this.current==0?0:1 |
|
|
|
} |
|
|
|
} |
|
|
|
GoodsApi.brandList(param).then(res => { |
|
|
|
GoodsApi.brandList(param).then(res => { |
|
|
|
let arr = res.data.data; |
|
|
|
let arr = res.data.data; |
|
|
@ -923,6 +928,8 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
changeHome(val) { |
|
|
|
changeHome(val) { |
|
|
|
this.current = val; |
|
|
|
this.current = val; |
|
|
|
|
|
|
|
this.getTypeList() |
|
|
|
|
|
|
|
// this.getBigList(this.tabList[this.tabCurrent].category_id) |
|
|
|
}, |
|
|
|
}, |
|
|
|
getCityInfo() { |
|
|
|
getCityInfo() { |
|
|
|
const that = this |
|
|
|
const that = this |
|
|
|