101 lines
2.1 KiB
Vue
101 lines
2.1 KiB
Vue
<template>
|
|
<view class="commodity-list">
|
|
<!-- 商品列表组件 -->
|
|
<Commodity :dataList='commodityList' itemW='250rpx' bigH='250rpx'></Commodity>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import Commodity from './Commodity.vue'
|
|
import process from '../../utils/process.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
commodityList: [{
|
|
id: 1,
|
|
imgUrl: "../../static/image/A1.png",
|
|
name: "样式1",
|
|
Flowerpattern:0x1,
|
|
pprice: 1
|
|
},
|
|
{
|
|
id: 2,
|
|
imgUrl: "../../static/image/A2.png",
|
|
name: "样式2",
|
|
Flowerpattern:0x2,
|
|
pprice: 1
|
|
},
|
|
{
|
|
id: 3,
|
|
imgUrl: "../../static/image/A3.png",
|
|
name: "样式3",
|
|
Flowerpattern:0x3,
|
|
pprice: 1
|
|
},
|
|
{
|
|
id: 4,
|
|
imgUrl: "../../static/image/A4.png",
|
|
name: "样式4",
|
|
Flowerpattern:0x4,
|
|
pprice: 1
|
|
},
|
|
{
|
|
id: 5,
|
|
imgUrl: "../../static/image/A5.png",
|
|
name: "样式5",
|
|
Flowerpattern:0x5,
|
|
pprice: 1
|
|
},
|
|
{
|
|
id: 6,
|
|
imgUrl: "../../static/image/A6.png",
|
|
name: "样式6",
|
|
Flowerpattern:0x6,
|
|
pprice: 1
|
|
},
|
|
{
|
|
id: 7,
|
|
imgUrl: "../../static/image/A7.png",
|
|
Flowerpattern:0x07,
|
|
name: "样式7",
|
|
pprice: 1
|
|
},
|
|
{
|
|
id: 8,
|
|
imgUrl: "../../static/image/A8.png",
|
|
name: "样式8",
|
|
Flowerpattern:0x08,
|
|
pprice: 1
|
|
},
|
|
{
|
|
id: 9,
|
|
imgUrl: "../../static/image/A9.png",
|
|
name: "样式9",
|
|
Flowerpattern:0x09,
|
|
pprice: 1
|
|
}
|
|
]
|
|
}
|
|
},
|
|
components: {
|
|
Commodity
|
|
},
|
|
onShow() {
|
|
// Flowerpattern1 = process.SugarType[0] = 0x01;
|
|
// Flowerpattern2 = process.SugarType[0] = 0x02;
|
|
// Flowerpattern3 = process.SugarType[0] = 0x03;
|
|
// Flowerpattern4 = process.SugarType[0] = 0x04;
|
|
// Flowerpattern5 = process.SugarType[0] = 0x05;
|
|
// Flowerpattern6 = process.SugarType[0] = 0x06;
|
|
// Flowerpattern7 = process.SugarType[0] = 0x07;
|
|
// Flowerpattern8 = process.SugarType[0] = 0x08;
|
|
// Flowerpattern9 = process.SugarType[0] = 0x09;
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|