feat: add account management page and update navigation paths

This commit is contained in:
Ray.Hao
2026-03-07 19:42:37 +08:00
parent 6ea8f2e7bc
commit fcff0cbd67
5 changed files with 4 additions and 147 deletions

View File

@@ -14,7 +14,7 @@
"type": "page",
"name": "login",
"style": {
"navigationStyle": "custom",
"navigationStyle": "custom"
}
},
{
@@ -40,7 +40,7 @@
"type": "page"
},
{
"path": "pages/mine/faq/index",
"path": "pages/mine/account/index",
"type": "page"
},
{
@@ -142,10 +142,6 @@
"navigationBarTitleText": "用户管理"
}
},
{
"path": "pages/mine/settings/account/index",
"type": "page"
},
{
"path": "pages/mine/settings/agreement/index",
"type": "page",

View File

@@ -1,138 +0,0 @@
<template>
<view class="page-container dark:text-[var(--wot-color-text)]">
<view>
<view class="text-center font-600">
<text>长按关注有来技术公众号获取交流群二维码</text>
</view>
<view class="flex-center">
<image
class="w-158px h-158px"
:show-menu-by-longpress="true"
src="/static/images/qrcode-official.png"
mode="aspectFit"
/>
</view>
<view class="mt-10rpx">
<text>如果交流群的二维码过期请加微信(</text>
<text :user-select="true" :selectable="true">haoxianrui</text>
<text>)并备注前端后端全栈以获取最新二维码</text>
</view>
<view class="mt-10rpx">
<text>为确保交流群质量防止营销广告人群混入我们采取了此措施望各位理解</text>
</view>
</view>
<wd-collapse v-model="value">
<wd-collapse-item title="开源项目issues" name="item1">
<!-- #ifdef H5 -->
<a href="https://gitee.com/youlaiorg/vue-uniapp-template/issues">#issues</a>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<text :user-select="true">https://gitee.com/youlaiorg/vue-uniapp-template/issues</text>
<!-- #endif -->
</wd-collapse-item>
<wd-collapse-item title="小程序分包" name="item2">
<view>
<text>
分包主要是因为小程序平台对主包大小有限制微信小程序的规则是主包不超过2M每个分包不超过2M总体积一共不能超过20M
分包不需要按照业务模块来分可以将多个业务模块放入一个分包中直到这个分包达到小程序的大小限制才考虑下一个分包
uniapp的用法与微信官方文档一样具体参见
</text>
<!-- #ifdef H5 -->
<a
href="https://developers.weixin.qq.com/miniprogram/dev/framework/subpackages/basic.html"
>
微信官方文档-分包
</a>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<text :user-select="true" :selectable="true">
https://developers.weixin.qq.com/miniprogram/dev/framework/subpackages/basic.html
</text>
<!-- #endif -->
</view>
<view class="mt-15rpx">
<text>
以下是一个简单示例以下示例中创建了两个分包分包a中包含两个页面分包b中包含一个页面
</text>
<text class="mt-15rpx">
请注意如果想把分包页面中使用的组件打包到分包中则需要将组件放入对应的分包目录下否则组件会被打包到主包中
</text>
</view>
<view class="mt-15rpx">
<text>目录结构</text>
</view>
<rich-text :nodes="subListStr" />
<view class="mt-15rpx">
<text>在pages.json文件中声明分包结构</text>
</view>
<rich-text :nodes="pagesStr" />
</wd-collapse-item>
</wd-collapse>
</view>
</template>
<script lang="ts" setup>
const value = ref<string[]>(["item1"]);
const subListStr = ref<string>(`
<pre style="background-color: #f9f9fa"><code>
|-- components //主包组件目录
|-- pages //主包页面目录
| |-- index
|-- sub-pkg-a
| |-- components //分包组件目录
| |-- pages //分包页面目录
| | |-- cat
| | |-- dog
|-- sub-pkg-b
| |-- components //分包组件目录
| |-- pages //分包页面目录
| | |-- apple</code></pre>
`);
const pagesStr = ref<string>(`<pre style="background-color: #f9f9fa"><code>
{
"pages":[
{
"path": "pages/index",
"style": {
"navigationBarTitleText": "主页"
}
}
],
"subPackages": [
{
"root": "sub-pkg-a",
"pages": [
{
"path": "pages/cat",
"style": {
"navigationBarTitleText": "cat"
}
},
{
"path": "pages/dog",
"style": {
"navigationBarTitleText": "dog"
}
}
]
},
{
"root": "sub-pkg-b",
"pages": [
{
"path": "pages/apple",
"style": {
"navigationBarTitleText": "apple"
}
}
]
}
]
}</code></pre>
`);
onMounted(() => {});
</script>
<style lang="scss" scoped></style>

View File

@@ -202,7 +202,7 @@ const navigateToAccount = () => {
navigateToLoginPage();
return;
}
router.push({ path: "/pages/mine/settings/account/index" });
router.push({ path: "/pages/mine/account/index" });
};
const navigateToNotifications = () => {

View File

@@ -9,7 +9,7 @@ interface NavigateToOptions {
"/pages/mine/index" |
"/pages/work/index" |
"/pages/mine/about/index" |
"/pages/mine/faq/index" |
"/pages/mine/account/index" |
"/pages/mine/feedback/index" |
"/pages/mine/official/index" |
"/pages/mine/profile/complete-profile" |
@@ -23,7 +23,6 @@ interface NavigateToOptions {
"/pages/work/permission/index" |
"/pages/work/role/index" |
"/pages/work/user/index" |
"/pages/mine/settings/account/index" |
"/pages/mine/settings/agreement/index" |
"/pages/mine/settings/network/index" |
"/pages/mine/settings/privacy/index" |