pull/7/head
温雍敬 1 year ago
parent 9789cecedc
commit daf026ea81

@ -1,8 +1,10 @@
{ {
"pages": [ "pages": [
"pages/index/index", "pages/index/index",
"pages/msg/index", "pages/msg/msg",
"pages/profile/index" "pages/profile/profile",
"pages/msg 1/msg 1",
"pages/msg 2/msg 2"
], ],
"window": { "window": {
"backgroundColor": "#FFF", "backgroundColor": "#FFF",
@ -12,25 +14,26 @@
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
}, },
"tabBar": { "tabBar": {
"list": [{ "list": [
"pagePath": "pages/index/index", {
"text": "main", "pagePath": "pages/index/index",
"iconPath": "images/main.png", "text": "main",
"selectedIconPath": "images/main_on.png" "iconPath": "images/main.png",
}, "selectedIconPath": "images/main_on.png"
{ },
"pagePath": "pages/msg/index", {
"text": "msg", "pagePath": "pages/msg/msg",
"iconPath": "images/msg.png", "text": "msg",
"selectedIconPath": "images/msg_on.png" "iconPath": "images/msg.png",
}, "selectedIconPath": "images/msg_on.png"
{ },
"pagePath": "pages/profile/index", {
"text": "profile", "pagePath": "pages/profile/profile",
"iconPath": "images/profile.png", "text": "profile",
"selectedIconPath": "images/profile_on.png" "iconPath": "images/profile.png",
} "selectedIconPath": "images/profile_on.png"
] }
]
}, },
"sitemapLocation": "sitemap.json", "sitemapLocation": "sitemap.json",
"style": "v2" "style": "v2"

@ -1,14 +1,16 @@
<view > <view >
<view>
<view class="button-wrapper">
<button class="custom-button" onclick="goToPageA()">Recommend</button>
<button class="custom-button" onclick="goToPageB()">Demand</button>
</view>
</view>
<view class="cover"> <view class="cover">
<image src="/images/app.png"class="app"/> <image src="/images/app.png"class="app"/>
</view> </view>
<view class="title" bind:tap="change">{{hello}}</view> <view class="title" bind:tap="change">{{hello}}</view>
<view class="desc">这里是家教帮平台,再也不用担心孩子的学习了</view> <view class="desc">这里是家教帮平台,再也不用担心孩子的学习了</view>
<view class="choose">
<navigator class="join" url="/pages/form/index">创建小组</navigator>
<navigator class="join" url="/pages/list/index">加入小组</navigator>
<navigator class="join" url="/pages/tip/index">其他小组</navigator>
<navigator class="join" url="/pages/group/index">我的小组</navigator>
</view>>
</view> </view>

@ -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{ .cover{
background-color: #f1f1f1; background-color: #f1f1f1;
text-align: center; text-align: center;

Loading…
Cancel
Save