diff --git a/package.json b/package.json index d7d11b6..8e03edf 100644 --- a/package.json +++ b/package.json @@ -89,10 +89,9 @@ "@dcloudio/uni-mp-weixin": "3.0.0-4020420240722002", "@dcloudio/uni-mp-xhs": "3.0.0-4020420240722002", "@dcloudio/uni-quickapp-webview": "3.0.0-4020420240722002", - "@qiun/uni-ucharts": "2.5.0-20230101", "pinia": "^2.2.2", - "vue": "^3.4.21", - "wot-design-uni": "^1.3.11" + "vue": "^3.5.13", + "wot-design-uni": "^1.4.0" }, "devDependencies": { "@commitlint/cli": "^19.5.0", @@ -117,7 +116,7 @@ "postcss-html": "^1.7.0", "postcss-scss": "^4.0.9", "prettier": "^3.3.3", - "sass": "1.79.3", + "sass": "1.78.0", "sass-loader": "^16.0.2", "stylelint": "^16.9.0", "stylelint-config-html": "^1.1.0", diff --git a/src/pages.json b/src/pages.json index ff9fb4a..50a8202 100644 --- a/src/pages.json +++ b/src/pages.json @@ -33,21 +33,33 @@ } }, { - "path": "pages/mine/user-agreement/index", + "path": "pages/mine/settings/index", + "style": { + "navigationBarTitleText": "设置" + } + }, + { + "path": "pages/mine/settings/account/index", + "style": { + "navigationBarTitleText": "账号和安全" + } + }, + { + "path": "pages/mine/settings/agreement/index", "style": { "navigationBarTitleText": "用户协议" } }, { - "path": "pages/mine/privacy/index", + "path": "pages/mine/settings/privacy/index", "style": { "navigationBarTitleText": "隐私政策" } }, { - "path": "pages/mine/network-test/index", + "path": "pages/mine/settings/network/index", "style": { - "navigationBarTitleText": "网络测试" + "navigationBarTitleText": "网络检测" } }, { @@ -62,6 +74,7 @@ "navigationBarTitleText": "个人资料" } }, + { "path": "pages/work/user/index", "style": { diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 5806204..f3ee4aa 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -27,7 +27,7 @@ - + {{ item.title }} - {{ item.todayCount }} + {{ item.todayCount }} @@ -136,7 +136,10 @@ const chartData = ref({}); // 日期范围 const recentDaysRange = ref(7); -const swiperList = ref(["https://oss.youlai.tech/blog/banner3.png"]); +const swiperList = ref([ + "https://oss.youlai.tech/blog/banner9.png", + "https://oss.youlai.tech/blog/banner8.png", +]); // 快捷导航列表 const navList = reactive([ diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 95e199e..cb45597 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -32,13 +32,9 @@ 登录即同意 - 《用户协议》 + 《用户协议》 - 《隐私政策》 - - - Copyright © {{ getYear() }} 有来开源组织 - All Rights Reserved + 《隐私政策》 @@ -75,19 +71,16 @@ const handleLogin = () => { } }); }; -const goToUserAgreement = () => { +const navigateToUserAgreement = () => { uni.navigateTo({ url: "/pages/mine/user-agreement/index", }); }; -const goToPrivacy = () => { +const navigateToPrivacy = () => { uni.navigateTo({ url: "/pages/mine/privacy/index", }); }; -const getYear = () => { - return new Date().getFullYear(); -}; diff --git a/src/pages/mine/user-agreement/index.vue b/src/pages/mine/settings/agreement/index.vue similarity index 100% rename from src/pages/mine/user-agreement/index.vue rename to src/pages/mine/settings/agreement/index.vue diff --git a/src/pages/mine/settings/index.vue b/src/pages/mine/settings/index.vue new file mode 100644 index 0000000..198123f --- /dev/null +++ b/src/pages/mine/settings/index.vue @@ -0,0 +1,193 @@ + + + + diff --git a/src/pages/mine/network-test/index.vue b/src/pages/mine/settings/network/index.vue similarity index 99% rename from src/pages/mine/network-test/index.vue rename to src/pages/mine/settings/network/index.vue index 075ba79..ffae164 100644 --- a/src/pages/mine/network-test/index.vue +++ b/src/pages/mine/settings/network/index.vue @@ -1,5 +1,5 @@