|
@@ -1,8 +1,10 @@
|
1
|
1
|
|
2
|
2
|
import { View, Swiper, Image, SwiperItem, Text, Input } from "@tarojs/components"
|
3
|
|
-import addresss from '@/assets/mineImgaes/addresss.png'//地址
|
4
|
|
-import searchs from '@/assets/homesImgaes/searchs.png'//地址
|
|
3
|
+import ButtontWX from '@/components/ButtontWX'
|
5
|
4
|
|
|
5
|
+import addresss from '@/assets/mineImgaes/addresss.png'//地址
|
|
6
|
+import searchs from '@/assets/homesImgaes/searchs.png'//搜索图片
|
|
7
|
+import carsListImga from '@/assets/homesImgaes/carsListImga.png'//农机列表图片
|
6
|
8
|
|
7
|
9
|
|
8
|
10
|
import './HomesCss/style.less'
|
|
@@ -10,6 +12,14 @@ import './HomesCss/style.less'
|
10
|
12
|
export default (props) => {
|
11
|
13
|
// const { SwiperItem } = Swiper
|
12
|
14
|
|
|
15
|
+ const carsList = [
|
|
16
|
+ { carsName: '联合收割机', carsUrl: 'http://img3.jc001.cn/img/001/1/1512/15566fd0311736f.jpg', jiage: '300', carsLocation: '3.9' },
|
|
17
|
+ { carsName: '水稻播种机', carsUrl: 'http://img3.jc001.cn/img/001/1/1512/15566fd031719b1.jpg', jiage: '300', carsLocation: '3.9' },
|
|
18
|
+ { carsName: '秸秆统一处理 型号:GB2312', carsUrl: 'http://img3.jc001.cn/img/001/1/1512/15566fd03201503.jpg', jiage: '免费', carsLocation: '3.9' },
|
|
19
|
+ { carsName: '花生稻子小麦收割一体机', carsUrl: 'http://img3.jc001.cn/img/001/1/1512/15566fd0324f649.jpg', jiage: '550', carsLocation: '3.9' },
|
|
20
|
+ { carsName: '拖拉机', carsUrl: 'https://image.cnhnb.com/image/jpg/miniapp/2020/03/26/ef945970d2cc4948b61d45ce57ac1179.jpg', jiage: '180', carsLocation: '3.9' },
|
|
21
|
+ { carsName: '自行车', carsUrl: 'https://image.cnhnb.com/image/jpg/miniapp/2020/03/26/e8745759793d48398f82e6658186686a.jpg', jiage: '20', carsLocation: '3.9' },
|
|
22
|
+ ]
|
13
|
23
|
|
14
|
24
|
const imglist = [
|
15
|
25
|
{ url: 'https://profile.csdnimg.cn/3/1/5/0_qq_42551866' },
|
|
@@ -25,7 +35,9 @@ export default (props) => {
|
25
|
35
|
}
|
26
|
36
|
|
27
|
37
|
return (
|
28
|
|
- <View>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+ <scroll-view className='scrollView' scrollY style='height: 100%;' >
|
29
|
41
|
<View className='heads-top-box'>
|
30
|
42
|
<View className='heads-top-box-left'>
|
31
|
43
|
<Image src={addresss} className='heads-top-box-left-addresssImg' />
|
|
@@ -48,7 +60,40 @@ export default (props) => {
|
48
|
60
|
</SwiperItem>
|
49
|
61
|
))}
|
50
|
62
|
</Swiper>
|
|
63
|
+ <View className='content-header-box'>
|
|
64
|
+ <View className='content-header-box-liftCentent'>
|
|
65
|
+ <Image src={carsListImga} />
|
|
66
|
+ <View>农机列表</View>
|
|
67
|
+ </View>
|
|
68
|
+ <View className='content-header-box-rightCentent'>更多>></View>
|
|
69
|
+ </View>
|
|
70
|
+
|
|
71
|
+ {
|
|
72
|
+ carsList.map((item, index) => {
|
|
73
|
+ return (
|
|
74
|
+ <View key={index} className='carsListImga-bottom-box'>
|
|
75
|
+ <Image src={item.carsUrl} />
|
|
76
|
+ <View className='carsListImga-bottom-box-flaxBox'>
|
|
77
|
+ <View className='carsListImga-bottom-box-flaxBox-liftText'>
|
|
78
|
+ <View className='carsListImga-bottom-box-flaxBox-liftText-Titles'>{item.carsName}</View>
|
|
79
|
+ <View className='carsListImga-bottom-box-flaxBox-liftText-price'>{item.jiage}/<Text>公顷</Text></View>
|
|
80
|
+ </View>
|
|
81
|
+ <View className='carsListImga-bottom-box-flaxBox-rightBut'>
|
|
82
|
+ <ButtontWX butText='预约' butWidth={80} butHeight={34} butFontSize={19} butBorderRadius={0} />
|
|
83
|
+ </View>
|
|
84
|
+ </View>
|
|
85
|
+ <View className='content-header-box-map'>
|
|
86
|
+ <View className='content-header-box-map-liftCentent'>
|
|
87
|
+ <Image src={addresss} />
|
|
88
|
+ <View>距离当前位置{item.carsLocation}公里</View>
|
|
89
|
+ </View>
|
|
90
|
+ <View className='content-header-box-map-rightCentent'>进入地图>></View>
|
|
91
|
+ </View>
|
|
92
|
+ </View>
|
|
93
|
+ )
|
|
94
|
+ })
|
|
95
|
+ }
|
51
|
96
|
|
52
|
|
- </View>
|
|
97
|
+ </scroll-view>
|
53
|
98
|
)
|
54
|
99
|
}
|