Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
15805c21
Commit
15805c21
authored
Jul 10, 2019
by
Junling Bu
Browse files
chore[litemall-vue]: 展示banner,而不是brand
parent
a747c46b
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-vue/src/views/home/tabbar-home.vue
View file @
15805c21
...
...
@@ -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
);
});
});
}
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment