diff --git a/src/App.vue b/src/App.vue
index a88280c..7d3258d 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -13,8 +13,8 @@ import PublicComponent from '@/components/PublicComponent/PublicComponent.vue'
body,
html,
#app {
- width: 1080px;
- height: 1920px;
+ width: 100vw;
+ height: 100vh;
background-color: #dee6f6;
overflow: hidden;
}
diff --git a/src/base/Temperature/Temperature.vue b/src/base/Temperature/Temperature.vue
index f219d9b..5e307a4 100644
--- a/src/base/Temperature/Temperature.vue
+++ b/src/base/Temperature/Temperature.vue
@@ -14,7 +14,7 @@ const { weather, icon } = useWeather()
diff --git a/src/views/Index/Index.vue b/src/views/Index/Index.vue
index 5881b6c..e3e717a 100644
--- a/src/views/Index/Index.vue
+++ b/src/views/Index/Index.vue
@@ -52,22 +52,24 @@
-
-
-
-
-
{{ switchLanguage(tab, 'title') }}
-
-
-
-
-
-
-
![]()
-
{{ item.activityName }}
+
+
+
+
+
{{ switchLanguage(tab, 'title') }}
-
-
+
+
+
+
+
+
![]()
+
{{ item.activityName }}
+
+
+
+
+
@@ -130,8 +132,9 @@ getActivityList(3).then(({ data }) => {
top: 0;
.header {
width: 100%;
- height: 515px;
- padding: 392px 0 0 68px;
+ height: 280px;
+ flex: 0 0 280px;
+ padding: 157px 0 0 0;
.hot-search {
.title {
font-style: normal;
@@ -139,8 +142,11 @@ getActivityList(3).then(({ data }) => {
font-size: 20px;
line-height: 23px;
color: rgba(0, 0, 0, 0.8);
+ text-align: center;
}
.row {
+ display: flex;
+ justify-content: center;
margin-top: 16px;
.item {
position: relative;
@@ -179,26 +185,26 @@ getActivityList(3).then(({ data }) => {
.content {
width: 100%;
flex: 1;
- padding: 40px 68px 0 68px;
+ padding: 84px 68px;
.r1 {
display: flex;
- height: 557px;
+ height: 625px;
.guide {
position: relative;
flex: 0 0 339px;
width: 339px;
- height: 557px;
+ height: 625px;
background: linear-gradient(99.5deg, #f0b92b 0%, #f9d556 100%);
border-radius: 32px;
overflow: hidden;
- padding: 460px 0 0 40px;
+ padding: 528px 0 0 40px;
.top {
position: absolute;
top: 0;
left: 0;
width: 100%;
- height: 432px;
+ height: 500px;
background: linear-gradient(180deg, #435acd 0%, #749cf3 100%);
border-radius: 32px;
padding: 40px;
@@ -342,91 +348,97 @@ getActivityList(3).then(({ data }) => {
padding: 32px 0 0 40px;
}
}
- }
- .r2 {
- display: flex;
- margin-top: 40px;
- .item {
+ .c3 {
+ margin-left: 56px;
display: flex;
flex-direction: column;
- flex: 1;
- height: 151px;
- justify-content: space-between;
- .icon {
+ justify-content: flex-end;
+ .r2 {
display: flex;
- justify-content: center;
- align-items: center;
- height: 118px;
- background: #ffffff;
- border-radius: 24px;
- img {
- width: 80px;
- height: 80px;
- }
- }
- .title {
- font-weight: 700;
- font-size: 18px;
- line-height: 21px;
- text-align: center;
- color: rgba(0, 0, 0, 0.8);
- }
- }
- .item + .item {
- margin-left: 24px;
- }
- }
- .r3 {
- margin-top: 40px;
- width: 944px;
- height: 531px;
- :deep(.swiper) {
- .swiper-pagination {
- top: 20px;
- right: 27px;
- bottom: auto;
- left: auto;
- width: auto;
- .swiper-pagination-bullet {
- width: 34px !important;
- height: 4px !important;
- background: rgba(0, 0, 0, 0.6);
- border-radius: 6px !important;
- opacity: inherit !important;
- margin: 0;
- &.swiper-pagination-bullet-active {
+ margin-top: 40px;
+ .item {
+ display: flex;
+ flex-direction: column;
+ flex: 1;
+ height: 151px;
+ justify-content: space-between;
+ .icon {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 118px;
background: #ffffff;
- border-radius: 6px !important;
+ border-radius: 24px;
+ img {
+ width: 80px;
+ height: 80px;
+ }
+ }
+ .title {
+ font-weight: 700;
+ font-size: 18px;
+ line-height: 21px;
+ text-align: center;
+ color: rgba(0, 0, 0, 0.8);
}
}
+ .item + .item {
+ margin-left: 24px;
+ }
}
- }
- .banner-wrapper {
- position: relative;
- width: 944px;
- height: 531px;
- border-radius: 24px;
- overflow: hidden;
- .banner {
- width: 944px;
- height: 531px;
- object-fit: cover;
- }
- .name {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 944px;
- height: 58px;
- background: rgba(0, 0, 0, 0.4);
- font-weight: 700;
- font-size: 24px;
- line-height: 58px;
- color: #ffffff;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- padding: 0 30px;
+ .r3 {
+ margin-top: 32px;
+ width: 784px;
+ height: 442px;
+ :deep(.swiper) {
+ .swiper-pagination {
+ top: 20px;
+ right: 27px;
+ bottom: auto;
+ left: auto;
+ width: auto;
+ .swiper-pagination-bullet {
+ width: 34px !important;
+ height: 4px !important;
+ background: rgba(0, 0, 0, 0.6);
+ border-radius: 6px !important;
+ opacity: inherit !important;
+ margin: 0;
+ &.swiper-pagination-bullet-active {
+ background: #ffffff;
+ border-radius: 6px !important;
+ }
+ }
+ }
+ }
+ .banner-wrapper {
+ position: relative;
+ width: 784px;
+ height: 442px;
+ border-radius: 24px;
+ overflow: hidden;
+ .banner {
+ width: 784px;
+ height: 442px;
+ object-fit: cover;
+ }
+ .name {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ width: 784px;
+ height: 58px;
+ background: rgba(0, 0, 0, 0.4);
+ font-weight: 700;
+ font-size: 24px;
+ line-height: 58px;
+ color: #ffffff;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ padding: 0 30px;
+ }
+ }
}
}
}