罗世杰:style;主页样式修改

This commit is contained in:
LuoShijie
2023-11-04 12:50:55 +08:00
parent 0cb065122f
commit b94ebd5486
3 changed files with 17 additions and 17 deletions

View File

@@ -50,12 +50,12 @@
<style lang="scss"> <style lang="scss">
.nav-card { .nav-card {
margin: 15px 7px; margin: 15px 0px;
padding: 10px 0; padding: 10px 0;
background-color: $uni-bg-color; background-color: $uni-bg-color;
border-radius: $uni-border-radius-lg; border-radius: $uni-border-radius-lg;
box-shadow: 0 3px 3px 0 $u-border-color; box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
.grid-text { .grid-text {
font-size: 14px; font-size: 14px;
} }

View File

@@ -63,14 +63,14 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.list-border { .list-border {
margin: 10px; margin-top: 10px;
padding: 10px; padding: 10px;
background-color: #fff; background-color: #fff;
border-radius: 7px; border-radius: 7px;
box-shadow: 0 1px 2px 0 rgba(224, 224, 224, 0.50);
.list-container { .list-container {
display: flex; display: flex;
height: 80px; height: 80px;
// background-color: #000;
margin-bottom: 5px; margin-bottom: 5px;
font-size: 12px; font-size: 12px;
} }

View File

@@ -1,13 +1,12 @@
<template> <template>
<view class="home-base-bg"> <view class="home-base-bg">
<InputAndSwiper></InputAndSwiper> <InputAndSwiper></InputAndSwiper>
<TabBar :current-page="0"></TabBar> <view class="home-content">
<HomeNavCard></HomeNavCard> <HomeNavCard></HomeNavCard>
<view class="news-box"> <view class="news-box"><u-notice-bar :text="newsTextLists" bgColor="#fff"></u-notice-bar></view>
<u-notice-bar :text="newsTextLists" :bg-color="$uni-bg-color"></u-notice-bar> <ShowShopList></ShowShopList>
</view> </view>
<TabBar :current-page="0"></TabBar>
<ShowShopList></ShowShopList>
</view> </view>
</template> </template>
@@ -18,12 +17,7 @@
}, },
data() { data() {
return { return {
newsTextLists: [ newsTextLists: '寒雨连江夜入吴 平明送客楚山孤 洛阳亲友如相问 一片冰心在玉壶'
'寒雨连江夜入吴',
'平明送客楚山孤',
'洛阳亲友如相问',
'一片冰心在玉壶'
],
} }
}, },
onLoad() { onLoad() {
@@ -39,6 +33,12 @@
.home-base-bg { .home-base-bg {
background-color: $uni-bg-color-grey; background-color: $uni-bg-color-grey;
width: 100%; width: 100%;
.home-content {
margin: 0 10px;
}
}
.news-box {
border-radius: 8px;
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.10);
} }
</style> </style>