Commit 85cb752f by hank

零售shemaData

parent 6d56c66f
export default { export default {
code: { code: {
value: 'https://visual-clouds.oss-cn-beijing.aliyuncs.com/resource/retail/code.jpg' 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
} }
]
} }
...@@ -5,13 +5,12 @@ ...@@ -5,13 +5,12 @@
地道美味 地道美味
麻辣香锅 麻辣香锅
</div> </div>
<div class="title2">舌尖诱惑</div> <div class="title2">舌尖诱惑</div>
<div class="img-list"> <div class="img-list">
<swiper :options="swiperOption" ref="mySwiper" style=" width: 1080px;height: 581px;"> <swiper :options="swiperOption" ref="mySwiper" style=" width: 1080px;height: 581px;">
<swiper-slide <swiper-slide
style="transform: translate3d(0,0,0); width: auto;" style="transform: translate3d(0,0,0); width: auto;"
v-for="(item, index) in foodList" v-for="(item, index) in schemaData.foodList"
:key="index" :key="index"
> >
<!-- <img :src="item.img" alt /> --> <!-- <img :src="item.img" alt /> -->
...@@ -22,7 +21,7 @@ ...@@ -22,7 +21,7 @@
<div class="item-price"> <div class="item-price">
<div class="content"> <div class="content">
¥ ¥
<span class="number">{{foodList[sliderActiveIndex]['price']}}</span> <span class="number">{{schemaData.foodList[sliderActiveIndex]['price']}}</span>
<span class="unit">元/份</span> <span class="unit">元/份</span>
</div> </div>
<div class="bg"></div> <div class="bg"></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment