Commit 15805c21 authored by Junling Bu's avatar Junling Bu
Browse files

chore[litemall-vue]: 展示banner,而不是brand

parent a747c46b
...@@ -5,12 +5,11 @@ ...@@ -5,12 +5,11 @@
@click="$router.push({ name: 'search' })" /> @click="$router.push({ name: 'search' })" />
<div class="tal_class_searchMask"></div> <div class="tal_class_searchMask"></div>
</div> </div>
<!-- 品牌商 -->
<van-swipe :autoplay="3000" <van-swipe :autoplay="3000"
indicator-color="white"> indicator-color="white">
<van-swipe-item v-for="(image, index) in brandList" <van-swipe-item v-for="(banner, index) in shopInfos.banner"
:key="index"> :key="index">
<img :src="image" <img :src="banner.url"
style="height:230px"> style="height:230px">
</van-swipe-item> </van-swipe-item>
</van-swipe> </van-swipe>
...@@ -160,7 +159,6 @@ export default { ...@@ -160,7 +159,6 @@ export default {
data() { data() {
return { return {
brandList: [],
shopInfos: [], shopInfos: [],
isLoading: false isLoading: false
}; };
...@@ -191,10 +189,6 @@ export default { ...@@ -191,10 +189,6 @@ export default {
initViews() { initViews() {
getHome().then(res => { getHome().then(res => {
this.shopInfos = res.data.data; this.shopInfos = res.data.data;
this.brandList = [];
_.each(res.data.data.brandList, v => {
this.brandList.push(v.picUrl);
});
}); });
} }
}, },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment