diff --git a/assets/images/home/top-bg.png b/assets/images/home/top-bg.png new file mode 100644 index 0000000..88e64cf Binary files /dev/null and b/assets/images/home/top-bg.png differ diff --git a/pages/home/index.json b/pages/home/index.json index 0a4f1f0..efb5c0b 100644 --- a/pages/home/index.json +++ b/pages/home/index.json @@ -1,5 +1,5 @@ { - "navigationStyle": "default", + "navigationStyle": "custom", "navigationBarTitleText": "首页", "usingComponents": { "t-tabs": "tdesign-miniprogram/tabs/tabs", diff --git a/pages/home/index.less b/pages/home/index.less index c3188fd..3bd3dc6 100644 --- a/pages/home/index.less +++ b/pages/home/index.less @@ -4,12 +4,21 @@ .home-container { height: calc(100vh - @tab-bar-height); - + padding-top: 160rpx; + position: relative; + image{ + width: 100%; + height: auto; + position: absolute; + top: 0; + left: 0; + z-index: 0; + } .home-content { // height: calc(100% - @nav-bar-height); padding: 30rpx; - padding-bottom: 160rpx; - + position: relative; + z-index: 1; .item-content { background-color: #fff; border-radius: 12rpx; diff --git a/pages/home/index.wxml b/pages/home/index.wxml index 3fa54c3..88d8f6a 100644 --- a/pages/home/index.wxml +++ b/pages/home/index.wxml @@ -1,8 +1,9 @@ + + 宝宝成长曲线 - 宝宝成长曲线 身高曲线 diff --git a/pages/message/index.less b/pages/message/index.less index f475cdf..4d0aba9 100644 --- a/pages/message/index.less +++ b/pages/message/index.less @@ -1,7 +1,7 @@ /* pages/clockIn/index.wxss */ .clockin{ padding: 28rpx; - padding-bottom: 200rpx; + padding-bottom: 160rpx; padding-top: 200rpx; position: relative; .clockin-img{ @@ -68,7 +68,7 @@ } .footer-example{ position: fixed; - bottom: 202rpx; + bottom: 40rpx; display: flex; justify-content: center; width: 100%; diff --git a/project.private.config.json b/project.private.config.json index bc6c079..ba8470b 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -2,6 +2,13 @@ "condition": { "miniprogram": { "list": [ + { + "name": "pages/home/index", + "pathName": "pages/home/index", + "query": "", + "launchMode": "default", + "scene": null + }, { "name": "pages/articleList/index", "pathName": "pages/articleList/index",