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

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

parent a747c46b
......@@ -5,12 +5,11 @@
@click="$router.push({ name: 'search' })" />
<div class="tal_class_searchMask"></div>
</div>
<!-- 品牌商 -->
<van-swipe :autoplay="3000"
indicator-color="white">
<van-swipe-item v-for="(image, index) in brandList"
<van-swipe-item v-for="(banner, index) in shopInfos.banner"
:key="index">
<img :src="image"
<img :src="banner.url"
style="height:230px">
</van-swipe-item>
</van-swipe>
......@@ -160,7 +159,6 @@ export default {
data() {
return {
brandList: [],
shopInfos: [],
isLoading: false
};
......@@ -191,10 +189,6 @@ export default {
initViews() {
getHome().then(res => {
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