This commit is contained in:
@zuopngfei 2025-06-16 18:33:18 +08:00
parent ec32bf4c60
commit 808e1f5be9
6 changed files with 24 additions and 7 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

View File

@ -1,5 +1,5 @@
{ {
"navigationStyle": "default", "navigationStyle": "custom",
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"usingComponents": { "usingComponents": {
"t-tabs": "tdesign-miniprogram/tabs/tabs", "t-tabs": "tdesign-miniprogram/tabs/tabs",

View File

@ -4,12 +4,21 @@
.home-container { .home-container {
height: calc(100vh - @tab-bar-height); 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 { .home-content {
// height: calc(100% - @nav-bar-height); // height: calc(100% - @nav-bar-height);
padding: 30rpx; padding: 30rpx;
padding-bottom: 160rpx; position: relative;
z-index: 1;
.item-content { .item-content {
background-color: #fff; background-color: #fff;
border-radius: 12rpx; border-radius: 12rpx;

View File

@ -1,8 +1,9 @@
<!-- <nav nav-type="search" /> --> <!-- <nav nav-type="search" /> -->
<view class="home-container"> <view class="home-container">
<image class="home-top-bg" mode="widthFix" src="../../assets/images/home/top-bg.png" />
<view class="home-content"> <view class="home-content">
<view class="item-title">宝宝成长曲线</view>
<view class="item-content"> <view class="item-content">
<view class="item-title">宝宝成长曲线</view>
<view class="echarts-legend"> <view class="echarts-legend">
<view class="{{ activeIndex == 0 ? 'active' : '' }}" data-index="0" bindtap="changeChart"> <view class="{{ activeIndex == 0 ? 'active' : '' }}" data-index="0" bindtap="changeChart">
身高曲线 身高曲线

View File

@ -1,7 +1,7 @@
/* pages/clockIn/index.wxss */ /* pages/clockIn/index.wxss */
.clockin{ .clockin{
padding: 28rpx; padding: 28rpx;
padding-bottom: 200rpx; padding-bottom: 160rpx;
padding-top: 200rpx; padding-top: 200rpx;
position: relative; position: relative;
.clockin-img{ .clockin-img{
@ -68,7 +68,7 @@
} }
.footer-example{ .footer-example{
position: fixed; position: fixed;
bottom: 202rpx; bottom: 40rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
width: 100%; width: 100%;

View File

@ -2,6 +2,13 @@
"condition": { "condition": {
"miniprogram": { "miniprogram": {
"list": [ "list": [
{
"name": "pages/home/index",
"pathName": "pages/home/index",
"query": "",
"launchMode": "default",
"scene": null
},
{ {
"name": "pages/articleList/index", "name": "pages/articleList/index",
"pathName": "pages/articleList/index", "pathName": "pages/articleList/index",