From daf026ea818de745c52d7819232bc772cd079b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=A9=E9=9B=8D=E6=95=AC?= <2622604517@qq.com> Date: Tue, 26 Sep 2023 21:48:27 +0800 Subject: [PATCH] program --- src/miniprogram/app.json | 45 ++++++++++++++------------ src/miniprogram/pages/index/index.wxml | 16 +++++---- src/miniprogram/pages/index/index.wxss | 18 +++++++++++ 3 files changed, 51 insertions(+), 28 deletions(-) diff --git a/src/miniprogram/app.json b/src/miniprogram/app.json index cc944ed..484885d 100644 --- a/src/miniprogram/app.json +++ b/src/miniprogram/app.json @@ -1,8 +1,10 @@ { "pages": [ "pages/index/index", - "pages/msg/index", - "pages/profile/index" + "pages/msg/msg", + "pages/profile/profile", + "pages/msg 1/msg 1", + "pages/msg 2/msg 2" ], "window": { "backgroundColor": "#FFF", @@ -12,25 +14,26 @@ "navigationBarTextStyle": "black" }, "tabBar": { - "list": [{ - "pagePath": "pages/index/index", - "text": "main", - "iconPath": "images/main.png", - "selectedIconPath": "images/main_on.png" - }, - { - "pagePath": "pages/msg/index", - "text": "msg", - "iconPath": "images/msg.png", - "selectedIconPath": "images/msg_on.png" - }, - { - "pagePath": "pages/profile/index", - "text": "profile", - "iconPath": "images/profile.png", - "selectedIconPath": "images/profile_on.png" - } - ] + "list": [ + { + "pagePath": "pages/index/index", + "text": "main", + "iconPath": "images/main.png", + "selectedIconPath": "images/main_on.png" + }, + { + "pagePath": "pages/msg/msg", + "text": "msg", + "iconPath": "images/msg.png", + "selectedIconPath": "images/msg_on.png" + }, + { + "pagePath": "pages/profile/profile", + "text": "profile", + "iconPath": "images/profile.png", + "selectedIconPath": "images/profile_on.png" + } + ] }, "sitemapLocation": "sitemap.json", "style": "v2" diff --git a/src/miniprogram/pages/index/index.wxml b/src/miniprogram/pages/index/index.wxml index 7d6ccbb..86f1d02 100644 --- a/src/miniprogram/pages/index/index.wxml +++ b/src/miniprogram/pages/index/index.wxml @@ -1,14 +1,16 @@ + + + + + + + - + {{hello}} 这里是家教帮平台,再也不用担心孩子的学习了 - - 创建小组 - 加入小组 - 其他小组 - 我的小组 - > + \ No newline at end of file diff --git a/src/miniprogram/pages/index/index.wxss b/src/miniprogram/pages/index/index.wxss index 82ab862..1423d01 100644 --- a/src/miniprogram/pages/index/index.wxss +++ b/src/miniprogram/pages/index/index.wxss @@ -1,3 +1,21 @@ +.button-wrapper { + display: flex; + justify-content: space-between; /* 将两个按钮分别放置在容器的两端 */ +} +.custom-button { + padding: 10px 20px; + background-color: #007bff; + color: #fff; + border: none; + border-radius: 5px; + font-size: 16px; + cursor: pointer; +} + +.custom-button:hover { + background-color: #0056b3; +} + .cover{ background-color: #f1f1f1; text-align: center;