Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
buildingAgricultureSharing-miniapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭佳妮(贵阳日报)
buildingAgricultureSharing-miniapp
Commits
39a96259
Commit
39a96259
authored
Aug 03, 2024
by
dt-1640819025-xxmxd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'1'
parent
6635699e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
52 deletions
+91
-52
index.vue
src/pages/index/index.vue
+91
-52
No files found.
src/pages/index/index.vue
View file @
39a96259
<
template
>
<
template
>
<view
style=
"background-color: #f3f3f3; height: 100vh"
>
<view
style=
"background-color: #f3f3f3; height: 100vh"
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"top"
>
<view>
<img
src=
"/static/assets/bacImg.png"
style=
"width: 750rpx; height: 440rpx"
/>
<img
class=
"img1"
src=
"/static/assets/bacImg.png"
style=
"width: 750rpx; height: 440rpx"
/>
<view
class=
"left-icon"
></view>
<img
class=
"img2"
src=
"/static/assets/bottom.png"
style=
"width: 750rpx; height: 32rpx"
/>
<img
<img
class=
"img3"
src=
"/static/assets/right.png"
style=
"width: 288rpx; height: 124rpx"
/>
class=
"bottom-image"
src=
"/static/assets/bottom.png"
style=
"width: 750rpx; height: 32rpx"
/>
<view>
<img
class=
"right-image"
src=
"/static/assets/right.png"
/>
</view>
</view>
</view>
<view
class=
"sort"
>
<view
class=
"sort"
>
<img
src=
"/static/assets/sort.png"
style=
"width: 750rpx; height: 186rpx"
/>
<view
style=
"display: flex; flex-direction: row"
>
<view
style=
"display: flex; flex-direction: row; margin-top: -200rpx; margin-left: 20rpx"
>
<view
class=
"borderClass"
>
<view
class=
"borderClass"
>
<img
src=
"/static/assets/buildingAgriculture.png"
style=
"width:
48px; height: 48
px"
/>
<img
src=
"/static/assets/buildingAgriculture.png"
style=
"width:
96rpx; height: 96r
px"
/>
<view
class=
"sort-text"
>
筑农严选
</view>
<view
class=
"sort-text"
>
筑农严选
</view>
</view>
</view>
<view
class=
"borderClass"
>
<view
class=
"borderClass"
>
<img
src=
"/static/assets/rural.png"
style=
"width:
48px; height: 48
px"
/>
<img
src=
"/static/assets/rural.png"
style=
"width:
96rpx; height: 96r
px"
/>
<view
class=
"sort-text"
>
认养农业
</view>
<view
class=
"sort-text"
>
认养农业
</view>
</view>
</view>
<view
class=
"borderClass"
>
<view
class=
"borderClass"
>
<img
src=
"/static/assets/adoption.png"
style=
"width:
48px; height: 48
px"
/>
<img
src=
"/static/assets/adoption.png"
style=
"width:
96rpx; height: 96r
px"
/>
<view
class=
"sort-text"
>
乡村旅居
</view>
<view
class=
"sort-text"
>
乡村旅居
</view>
</view>
</view>
<view
class=
"borderClass"
>
<view
class=
"borderClass"
>
<img
src=
"/static/assets/adoption.png"
style=
"width:
48px; height: 48
px"
/>
<img
src=
"/static/assets/adoption.png"
style=
"width:
96rpx; height: 96r
px"
/>
<view
class=
"sort-text"
>
特色农庄
</view>
<view
class=
"sort-text"
>
特色农庄
</view>
</view>
</view>
</view>
</view>
...
@@ -41,16 +33,31 @@
...
@@ -41,16 +33,31 @@
</view>
</view>
<view
style=
"display: flex; flex-direction: row"
>
<view
style=
"display: flex; flex-direction: row"
>
<view
class=
"detail-border"
>
<view
class=
"detail-border"
>
<img
src=
"/static/assets/detailedMapOne.png"
style=
"width:
108px; height: 88
px"
/>
<img
src=
"/static/assets/detailedMapOne.png"
style=
"width:
216rpx; height: 176r
px"
/>
<view
class=
"detail-title"
>
干辣椒炒肉
</view>
<view
class=
"detail-title"
>
干辣椒炒肉
</view>
<view
class=
"jiage-page"
>
<text
class=
"jiage"
>
¥25
</text>
/份
</view>
<view
class=
"yushou"
>
预售
</view>
</view>
</view>
<view
class=
"detail-border"
>
<view
class=
"detail-border"
>
<img
src=
"/static/assets/detailedMapTwo.png"
style=
"width:
108px; height: 88
px"
/>
<img
src=
"/static/assets/detailedMapTwo.png"
style=
"width:
216rpx; height: 176r
px"
/>
<view
class=
"detail-title"
>
贵阳辣子鸡
</view>
<view
class=
"detail-title"
>
贵阳辣子鸡
</view>
<view
class=
"jiage-page"
>
<text
class=
"jiage"
>
¥25
</text>
/份
</view>
<view
class=
"yushou"
>
预售
</view>
</view>
</view>
<view
class=
"detail-border"
>
<view
class=
"detail-border"
>
<img
src=
"/static/assets/detailedMapThree.png"
style=
"width:
108px; height: 88
px"
/>
<img
src=
"/static/assets/detailedMapThree.png"
style=
"width:
216rpx; height: 176r
px"
/>
<view
class=
"detail-title"
>
麻辣鱼豆腐
</view>
<view
class=
"detail-title"
>
麻辣鱼豆腐
</view>
<view
class=
"jiage-page"
>
<text
class=
"jiage"
>
¥25
</text>
/份
</view>
<view
class=
"yushou"
>
预售
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -69,79 +76,85 @@
...
@@ -69,79 +76,85 @@
height
:
440rpx
;
height
:
440rpx
;
opacity
:
1
;
opacity
:
1
;
}
}
.img1
{
display
:
flex
;
}
.img2
{
display
:
flex
;
margin-top
:
-31rpx
;
}
.img3
{
display
:
flex
;
margin-top
:
-120rpx
;
margin-left
:
462rpx
;
}
.bottom-image
{
.bottom-image
{
position
:
relative
;
position
:
relative
;
top
:
-
38
rpx
;
top
:
-
40
rpx
;
width
:
750rpx
;
width
:
750rpx
;
height
:
32rpx
;
height
:
32rpx
;
opacity
:
1
;
opacity
:
1
;
}
}
.right-image
{
.right-image
{
top
:
-1
48
rpx
;
top
:
-1
92
rpx
;
float
:
right
;
float
:
right
;
position
:
relative
;
position
:
relative
;
}
}
.sort
{
.sort
{
position
:
relative
;
//left: 0rpx;
top
:
-150rpx
;
width
:
750rpx
;
width
:
750rpx
;
height
:
186rpx
;
height
:
186rpx
;
opacity
:
1
;
padding-left
:
40rpx
;
background
:
linear-gradient
(
180deg
,
#82ce8b
-39%
,
#ffffff
36%
);
}
}
.borderClass
{
.borderClass
{
width
:
200
rpx
;
width
:
96
rpx
;
height
:
200
rpx
;
height
:
96
rpx
;
background-color
:
transparent
;
margin-left
:
60rpx
;
margin
:
40
rpx
;
margin
-top
:
22
rpx
;
}
}
.sort-text
{
.sort-text
{
font-family
:
Source
Han
Sans
;
font-size
:
24rpx
;
font-size
:
24rpx
;
font-weight
:
500
;
font-weight
:
500
;
line-height
:
24rpx
;
line-height
:
24rpx
;
text-align
:
center
;
text-align
:
center
;
letter-spacing
:
0em
;
letter-spacing
:
0em
;
font-variation-settings
:
'opsz'
auto
;
font-feature-settings
:
'kern'
on
;
color
:
#3d3d3d
;
color
:
#3d3d3d
;
}
}
.product-page
{
.product-page
{
position
:
relative
;
width
:
710rpx
;
width
:
710rpx
;
height
:
742rpx
;
height
:
742rpx
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
opacity
:
1
;
margin-left
:
20rpx
;
background
:
#ffffff
;
margin-top
:
10rpx
;
left
:
20rpx
;
background-color
:
#ffffff
;
top
:
-60rpx
;
}
}
.page-title
{
.page-title
{
position
:
relative
;
left
:
20rpx
;
top
:
20rpx
;
width
:
112rpx
;
width
:
112rpx
;
height
:
28rpx
;
height
:
28rpx
;
opacity
:
1
;
font-family
:
Source
Han
Sans
;
font-family
:
Source
Han
Sans
;
font-size
:
28rpx
;
font-size
:
28rpx
;
font-weight
:
500
;
font-weight
:
500
;
line-height
:
28rpx
;
line-height
:
28rpx
;
text-align
:
center
;
text-align
:
center
;
letter-spacing
:
0em
;
letter-spacing
:
0em
;
position
:
absolute
;
font-variation-settings
:
'opsz'
auto
;
margin-top
:
20rpx
;
font-feature-settings
:
'kern'
on
;
margin-left
:
20rpx
;
color
:
#3d3d3d
;
color
:
#3d3d3d
;
}
}
.main-img
{
.main-img
{
width
:
670rpx
;
width
:
670rpx
;
height
:
362rpx
;
height
:
362rpx
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
opacity
:
1
;
margin-top
:
68rpx
;
margin-top
:
40rpx
;
margin-left
:
20rpx
;
}
.detail-border
{
width
:
216rpx
;
height
:
262rpx
;
margin-left
:
20rpx
;
margin-top
:
20rpx
;
border-radius
:
16px
;
}
}
.detail-title
{
.detail-title
{
font-family
:
Source
Han
Sans
;
font-family
:
Source
Han
Sans
;
...
@@ -149,9 +162,35 @@
...
@@ -149,9 +162,35 @@
font-weight
:
500
;
font-weight
:
500
;
line-height
:
28rpx
;
line-height
:
28rpx
;
letter-spacing
:
0em
;
letter-spacing
:
0em
;
margin-left
:
48rpx
;
font-variation-settings
:
'opsz'
auto
;
margin-top
:
-20rpx
;
font-feature-settings
:
'kern'
on
;
color
:
#3d3d3d
;
color
:
#3d3d3d
;
}
}
.jiage-page
{
width
:
96rpx
;
height
:
28rpx
;
margin-top
:
20rpx
;
font-size
:
24rpx
;
font-weight
:
500
;
color
:
#abaaaa
;
}
.jiage
{
font-size
:
24rpx
;
font-weight
:
500
;
line-height
:
28rpx
;
color
:
#fa5151
;
}
.yushou
{
width
:
48rpx
;
height
:
24rpx
;
border-radius
:
2px
;
font-size
:
16rpx
;
line-height
:
16rpx
;
background
:
#fcdbdb
;
text-align
:
center
;
line-height
:
24rpx
;
margin-left
:
120rpx
;
margin-top
:
-23rpx
;
color
:
#fa5151
;
}
</
style
>
</
style
>
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