feat: update tabBar to 3 items, add qrcode page skeleton, rename app

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
jacobxu666
2026-06-24 19:20:32 +08:00
co-authored by Claude
parent 93253f5a13
commit d1cdc53f6a
5 changed files with 120 additions and 96 deletions
+107 -95
View File
@@ -1,97 +1,109 @@
{ {
"easycom": { "easycom": {
"autoscan": true, "autoscan": true,
"custom": { "custom": {
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
} }
}, },
"pages": [ "pages": [
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "文旅专区" "navigationBarTitleText": "爱上萍乡"
} }
}, },
{ {
"path": "pages/login/login", "path": "pages/qrcode/index",
"style": { "style": {
"navigationBarTitleText": "登录" "navigationBarTitleText": "入园码"
} }
}, },
{ {
"path": "pages/profile/index", "path": "pages/login/login",
"style": { "style": {
"navigationBarTitleText": "个人中心" "navigationBarTitleText": "登录"
} }
} },
], {
"subPackages": [ "path": "pages/profile/index",
{ "style": {
"root": "packages/user", "navigationBarTitleText": "个人中心"
"pages": [ }
{ }
"path": "pages/card/list", ],
"style": { "subPackages": [
"navigationBarTitleText": "年卡列表" {
} "root": "packages/user",
}, "pages": [
{ {
"path": "pages/card/detail", "path": "pages/card/list",
"style": { "style": {
"navigationBarTitleText": "年卡详情" "navigationBarTitleText": "年卡列表"
} }
}, },
{ {
"path": "pages/card/buy", "path": "pages/card/detail",
"style": { "style": {
"navigationBarTitleText": "确认购买" "navigationBarTitleText": "年卡详情"
} }
}, },
{ {
"path": "pages/card/activate", "path": "pages/card/buy",
"style": { "style": {
"navigationBarTitleText": "激活年卡" "navigationBarTitleText": "确认购买"
} }
}, },
{ {
"path": "pages/card/qrcode", "path": "pages/card/activate",
"style": { "style": {
"navigationBarTitleText": "入园码" "navigationBarTitleText": "激活年卡"
} }
}, },
{ {
"path": "pages/card/bind", "path": "pages/card/qrcode",
"style": { "style": {
"navigationBarTitleText": "绑定年卡" "navigationBarTitleText": "入园码"
} }
} },
] {
} "path": "pages/card/bind",
], "style": {
"globalStyle": { "navigationBarTitleText": "绑定年卡"
"navigationBarTextStyle": "black", }
"navigationBarTitleText": "湖南12301", }
"navigationBarBackgroundColor": "#FFFFFF", ]
"backgroundColor": "#F5F5F5" }
}, ],
"tabBar": { "globalStyle": {
"color": "#7A7E83", "navigationBarTextStyle": "black",
"selectedColor": "#4A90D9", "navigationBarTitleText": "爱上萍乡",
"borderStyle": "white", "navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#ffffff", "backgroundColor": "#F5F5F5"
"list": [ },
{ "tabBar": {
"pagePath": "pages/index/index", "color": "#7A7E83",
"text": "首页", "selectedColor": "#4A90D9",
"iconPath": "static/tabbar/home.png", "borderStyle": "white",
"selectedIconPath": "static/tabbar/home-active.png" "backgroundColor": "#ffffff",
}, "list": [
{ {
"pagePath": "pages/profile/index", "pagePath": "pages/index/index",
"text": "我的", "text": "首页",
"iconPath": "static/tabbar/profile.png", "iconPath": "static/tabbar/home.png",
"selectedIconPath": "static/tabbar/profile-active.png" "selectedIconPath": "static/tabbar/home-active.png"
} },
] {
} "pagePath": "pages/qrcode/index",
"text": "入园码",
"iconPath": "static/tabbar/qrcode.png",
"selectedIconPath": "static/tabbar/qrcode-active.png"
},
{
"pagePath": "pages/profile/index",
"text": "我的",
"iconPath": "static/tabbar/profile.png",
"selectedIconPath": "static/tabbar/profile-active.png"
}
]
}
} }
+1 -1
View File
@@ -6,7 +6,7 @@
</view> </view>
<view class="user-info"> <view class="user-info">
<text class="nickname">{{ userStore.userInfo?.nickname || '未登录' }}</text> <text class="nickname">{{ userStore.userInfo?.nickname || '未登录' }}</text>
<text class="user-desc" v-if="userStore.isLogin">欢迎使用湖南12301文旅专区</text> <text class="user-desc" v-if="userStore.isLogin">欢迎使用爱上萍乡</text>
<text class="user-desc" v-else @click="goLogin">点击登录</text> <text class="user-desc" v-else @click="goLogin">点击登录</text>
</view> </view>
</view> </view>
+12
View File
@@ -0,0 +1,12 @@
<template>
<view class="page">
<text>入园码页面(开发中)</text>
</view>
</template>
<script setup lang="ts">
</script>
<style scoped>
.page { min-height: 100vh; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
</style>
Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B