Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-template
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
85cb752f
authored
Sep 05, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
零售shemaData
parent
6d56c66f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
src/templates/retail/defaultData/retail.js
+24
-0
src/templates/retail/pages/retail1.vue
+2
-3
No files found.
src/templates/retail/defaultData/retail.js
View file @
85cb752f
export
default
{
code
:
{
value
:
'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/code.jpg'
},
title
:
{
value
:
'地道美味麻辣香锅'
},
title2
:
{
value
:
'舌尖诱惑'
},
foodList
:
[
{
img
:
'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retail1Pan.png'
,
price
:
20
},
{
img
:
'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retail1Pan.png'
,
price
:
30
},
{
img
:
'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/retail1Pan.png'
,
price
:
40
}
]
}
src/templates/retail/pages/retail1.vue
View file @
85cb752f
...
...
@@ -5,13 +5,12 @@
地道美味
麻辣香锅
</div>
<div
class=
"title2"
>
舌尖诱惑
</div>
<div
class=
"img-list"
>
<swiper
:options=
"swiperOption"
ref=
"mySwiper"
style=
" width: 1080px;height: 581px;"
>
<swiper-slide
style=
"transform: translate3d(0,0,0); width: auto;"
v-for=
"(item, index) in foodList"
v-for=
"(item, index) in
schemaData.
foodList"
:key=
"index"
>
<!--
<img
:src=
"item.img"
alt
/>
-->
...
...
@@ -22,7 +21,7 @@
<div
class=
"item-price"
>
<div
class=
"content"
>
¥
<span
class=
"number"
>
{{
foodList
[
sliderActiveIndex
][
'price'
]
}}
</span>
<span
class=
"number"
>
{{
schemaData
.
foodList
[
sliderActiveIndex
][
'price'
]
}}
</span>
<span
class=
"unit"
>
元/份
</span>
</div>
<div
class=
"bg"
></div>
...
...
Write
Preview
Markdown
is supported
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