|
@@ -17,13 +17,14 @@ export default class Index extends Component {
|
17
|
17
|
],
|
18
|
18
|
StoreList: ['', '', '', '', ''],
|
19
|
19
|
NavList: [
|
20
|
|
- { id: 1, img: require('../../assets/img/icon1.png'), name: '雅居宝' },
|
21
|
|
- { id: 2, img: require('../../assets/img/icon2.png'), name: '乐粉福利' },
|
22
|
|
- { id: 3, img: require('../../assets/img/icon3.png'), name: '乐趣头条' },
|
23
|
|
- { id: 4, img: require('../../assets/img/icon4.png'), name: '乐客联盟' }
|
|
20
|
+ { id: 1, img: require('@/assets/img/icon1.png'), name: '雅居宝' },
|
|
21
|
+ { id: 2, img: require('@/assets/img/icon2.png'), name: '乐粉福利' },
|
|
22
|
+ { id: 3, img: require('@/assets/img/icon3.png'), name: '乐趣头条' },
|
|
23
|
+ { id: 4, img: require('@/assets/img/icon4.png'), name: '乐客联盟' }
|
24
|
24
|
]
|
25
|
25
|
}
|
26
|
26
|
render () {
|
|
27
|
+ const { NavList, StoreList, BannerData } = this.state
|
27
|
28
|
return (
|
28
|
29
|
<View className='Page'>
|
29
|
30
|
|
|
@@ -35,15 +36,17 @@ export default class Index extends Component {
|
35
|
36
|
<View>
|
36
|
37
|
<View>
|
37
|
38
|
<View className='DingWei'>
|
38
|
|
- <Image mode='widthFix' src='../../assets/img/icon5.png' />
|
|
39
|
+ <Image mode='widthFix' src={require('@/assets/img/icon5.png')} />
|
39
|
40
|
<Text>南京市</Text>
|
40
|
41
|
</View>
|
41
|
42
|
<Swiper className='Swiper' indicatorColor='rgba(0,0,0,0.4)' indicatorActiveColor='#fff' circular indicatorDots autoplay>
|
42
|
|
- {this.BannerData.map((item, index) => (
|
43
|
|
- <SwiperItem key={index}>
|
44
|
|
- <Image mode='widthFix' className='centerLabel' src={item.img} />
|
45
|
|
- </SwiperItem>
|
46
|
|
- ))}
|
|
43
|
+ {
|
|
44
|
+ BannerData.map((item, index) => (
|
|
45
|
+ <SwiperItem key={`Swiper-${index}`}>
|
|
46
|
+ <Image mode='widthFix' className='centerLabel' src={item.img} />
|
|
47
|
+ </SwiperItem>
|
|
48
|
+ ))
|
|
49
|
+ }
|
47
|
50
|
</Swiper>
|
48
|
51
|
</View>
|
49
|
52
|
</View>
|
|
@@ -51,14 +54,16 @@ export default class Index extends Component {
|
51
|
54
|
|
52
|
55
|
{/* nav */}
|
53
|
56
|
<View className='Nav flex-h'>
|
54
|
|
- {this.NavList.map((item, index) => (
|
55
|
|
- <Navigator className='flex-item' url={null} key={index}>
|
56
|
|
- <View>
|
57
|
|
- <Image mode='heightFix' className='centerLabel' src={item.img} />
|
58
|
|
- </View>
|
59
|
|
- <Text>{item.name}</Text>
|
60
|
|
- </Navigator>
|
61
|
|
- ))}
|
|
57
|
+ {
|
|
58
|
+ NavList.map((item, index) => (
|
|
59
|
+ <Navigator className='flex-item' url={null} key={`Nav-${index}`}>
|
|
60
|
+ <View>
|
|
61
|
+ <Image mode='heightFix' className='centerLabel' src={item.img} />
|
|
62
|
+ </View>
|
|
63
|
+ <Text>{item.name}</Text>
|
|
64
|
+ </Navigator>
|
|
65
|
+ ))
|
|
66
|
+ }
|
62
|
67
|
</View>
|
63
|
68
|
|
64
|
69
|
</View>
|
|
@@ -83,35 +88,37 @@ export default class Index extends Component {
|
83
|
88
|
{/* 乐客商家 */}
|
84
|
89
|
<View className='LeKeStore'>
|
85
|
90
|
<Text className='ListTitle'>乐客商家</Text>
|
86
|
|
- {this.StoreList.map((item, index) => (
|
87
|
|
- <Navigator key={index} className='flex-h' url={null}>
|
88
|
|
- <View className='Img'>
|
89
|
|
- <Image mode='widthFix' className='centerLabel' src={this.TestImg} />
|
90
|
|
- </View>
|
91
|
|
- <View className='flex-item'>
|
92
|
|
- <View>
|
93
|
|
- <View className='Title'><View>湖品</View><Text className='Type1'>买</Text><Text className='Type2'>订</Text><Text className='Type3'>外</Text><Text className='Type4'>促</Text></View>
|
94
|
|
- <View className='Score'>
|
95
|
|
- <Image mode='widthFix' src='../../assets/img/icon6.png' />
|
96
|
|
- <Image mode='widthFix' src='../../assets/img/icon6.png' />
|
97
|
|
- <Image mode='widthFix' src='../../assets/img/icon6.png' />
|
98
|
|
- <Image mode='widthFix' src='../../assets/img/icon6.png' />
|
99
|
|
- <Image mode='widthFix' src='../../assets/img/icon6.png' />
|
100
|
|
- <Text>¥97/人</Text>
|
101
|
|
- </View>
|
102
|
|
- <View className='flex-h'>
|
103
|
|
- <View className='flex-item'>
|
104
|
|
- <View>
|
105
|
|
- <Text>淮扬菜</Text>
|
106
|
|
- <Text>徐庄软件园</Text>
|
|
91
|
+ {
|
|
92
|
+ StoreList.map((item, index) => (
|
|
93
|
+ <Navigator key={`Store-${index}`} className='flex-h' url={null}>
|
|
94
|
+ <View className='Img'>
|
|
95
|
+ <Image mode='widthFix' className='centerLabel' src={this.TestImg} />
|
|
96
|
+ </View>
|
|
97
|
+ <View className='flex-item'>
|
|
98
|
+ <View>
|
|
99
|
+ <View className='Title'><View>湖品</View><Text className='Type1'>买</Text><Text className='Type2'>订</Text><Text className='Type3'>外</Text><Text className='Type4'>促</Text></View>
|
|
100
|
+ <View className='Score'>
|
|
101
|
+ <Image mode='widthFix' src={require('@/assets/img/icon6.png')} />
|
|
102
|
+ <Image mode='widthFix' src={require('@/assets/img/icon6.png')} />
|
|
103
|
+ <Image mode='widthFix' src={require('@/assets/img/icon6.png')} />
|
|
104
|
+ <Image mode='widthFix' src={require('@/assets/img/icon6.png')} />
|
|
105
|
+ <Image mode='widthFix' src={require('@/assets/img/icon6.png')} />
|
|
106
|
+ <Text>¥97/人</Text>
|
|
107
|
+ </View>
|
|
108
|
+ <View className='flex-h'>
|
|
109
|
+ <View className='flex-item'>
|
|
110
|
+ <View>
|
|
111
|
+ <Text>淮扬菜</Text>
|
|
112
|
+ <Text>徐庄软件园</Text>
|
|
113
|
+ </View>
|
107
|
114
|
</View>
|
|
115
|
+ <Text>10.5km</Text>
|
108
|
116
|
</View>
|
109
|
|
- <Text>10.5km</Text>
|
110
|
117
|
</View>
|
111
|
118
|
</View>
|
112
|
|
- </View>
|
113
|
|
- </Navigator>
|
114
|
|
- ))}
|
|
119
|
+ </Navigator>
|
|
120
|
+ ))
|
|
121
|
+ }
|
115
|
122
|
</View>
|
116
|
123
|
|
117
|
124
|
</View>
|