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
6635699e
Commit
6635699e
authored
Aug 02, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
响应式布局
parent
f526ace5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
15 deletions
+23
-15
index.vue
src/pages/index/index.vue
+23
-15
No files found.
src/pages/index/index.vue
View file @
6635699e
<
template
>
<
template
>
<view
style=
"background-color: #f3f3f3; height: 100vh"
>
<view
style=
"background-color: #f3f3f3; height: 100vh"
>
<view
class=
"container"
>
<view
class=
"container"
>
<view>
<view
class=
"top"
>
<img
src=
"/static/assets/bottom.png"
style=
"width: 750rpx; height: 32rpx"
/>
<img
src=
"/static/assets/bacImg.png"
style=
"width: 750rpx; height: 440rpx"
/>
<img
src=
"/static/assets/bacImg.png"
style=
"width: 750rpx; height: 440rpx"
/>
<img
src=
"/static/assets/right.png"
/>
<view
class=
"left-icon"
></view>
<img
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"
>
<view
style=
"display: flex; flex-direction: row"
>
<img
src=
"/static/assets/sort.png"
style=
"width: 750rpx; height: 186rpx"
/>
<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:
96rpx; height: 96r
px"
/>
<img
src=
"/static/assets/buildingAgriculture.png"
style=
"width:
48px; height: 48
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:
96rpx; height: 96r
px"
/>
<img
src=
"/static/assets/rural.png"
style=
"width:
48px; height: 48
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:
96rpx; height: 96r
px"
/>
<img
src=
"/static/assets/adoption.png"
style=
"width:
48px; height: 48
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:
96rpx; height: 96r
px"
/>
<img
src=
"/static/assets/adoption.png"
style=
"width:
48px; height: 48
px"
/>
<view
class=
"sort-text"
>
特色农庄
</view>
<view
class=
"sort-text"
>
特色农庄
</view>
</view>
</view>
</view>
</view>
...
@@ -33,15 +41,15 @@
...
@@ -33,15 +41,15 @@
</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:
216rpx; height: 176r
px"
/>
<img
src=
"/static/assets/detailedMapOne.png"
style=
"width:
108px; height: 88
px"
/>
<view
class=
"detail-title"
>
干辣椒炒肉
</view>
<view
class=
"detail-title"
>
干辣椒炒肉
</view>
</view>
</view>
<view
class=
"detail-border"
>
<view
class=
"detail-border"
>
<img
src=
"/static/assets/detailedMapTwo.png"
style=
"width:
216rpx; height: 176r
px"
/>
<img
src=
"/static/assets/detailedMapTwo.png"
style=
"width:
108px; height: 88
px"
/>
<view
class=
"detail-title"
>
贵阳辣子鸡
</view>
<view
class=
"detail-title"
>
贵阳辣子鸡
</view>
</view>
</view>
<view
class=
"detail-border"
>
<view
class=
"detail-border"
>
<img
src=
"/static/assets/detailedMapThree.png"
style=
"width:
216rpx; height: 176r
px"
/>
<img
src=
"/static/assets/detailedMapThree.png"
style=
"width:
108px; height: 88
px"
/>
<view
class=
"detail-title"
>
麻辣鱼豆腐
</view>
<view
class=
"detail-title"
>
麻辣鱼豆腐
</view>
</view>
</view>
</view>
</view>
...
@@ -63,20 +71,20 @@
...
@@ -63,20 +71,20 @@
}
}
.bottom-image
{
.bottom-image
{
position
:
relative
;
position
:
relative
;
top
:
-
40
rpx
;
top
:
-
38
rpx
;
width
:
750rpx
;
width
:
750rpx
;
height
:
32rpx
;
height
:
32rpx
;
opacity
:
1
;
opacity
:
1
;
}
}
.right-image
{
.right-image
{
top
:
-1
92
rpx
;
top
:
-1
48
rpx
;
float
:
right
;
float
:
right
;
position
:
relative
;
position
:
relative
;
}
}
.sort
{
.sort
{
position
:
relative
;
position
:
relative
;
//left: 0rpx;
//left: 0rpx;
top
:
40
0rpx
;
top
:
-15
0rpx
;
width
:
750rpx
;
width
:
750rpx
;
height
:
186rpx
;
height
:
186rpx
;
opacity
:
1
;
opacity
:
1
;
...
@@ -106,8 +114,8 @@
...
@@ -106,8 +114,8 @@
border-radius
:
16rpx
;
border-radius
:
16rpx
;
opacity
:
1
;
opacity
:
1
;
background
:
#ffffff
;
background
:
#ffffff
;
top
:
420rpx
;
left
:
20rpx
;
left
:
20rpx
;
top
:
-60rpx
;
}
}
.page-title
{
.page-title
{
position
:
relative
;
position
:
relative
;
...
...
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