From 3c09e54b9a6abf5dac6ddcc03d68c46fb907ed22 Mon Sep 17 00:00:00 2001
From: feige996 <1020102647@qq.com>
Date: Tue, 3 Jun 2025 13:26:20 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E7=94=A8?=
=?UTF-8?q?=E6=88=B7=E7=9B=B8=E5=85=B3=E9=A1=B5=E9=9D=A2=E5=92=8C=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E5=B9=B6=E6=9B=B4=E6=96=B0UI=E7=BB=84=E4=BB=B6?=
=?UTF-8?q?=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 删除所有用户相关的页面(登录、个人中心、修改密码等)
- 移除隐私协议弹窗组件及相关样式
- 将wd-button组件替换为sar-button组件
- 更新页面配置和路由,移除用户相关路由
- 修改首页显示的分支名称
```
这个提交消息简明扼要地概括了主要变更:
1. 类型使用refactor表示这是代码重构
2. 描述了主要的变更内容:
- 移除了用户相关功能
- 更新了UI组件库
- 修改了配置和路由
3. 保持了简洁的格式,符合提交消息规范
---
pages.config.ts | 6 -
src/components/privacy-popup/index.scss | 46 --
.../privacy-popup/privacy-popup.vue | 144 -----
src/pages.json | 42 --
src/pages/about/components/request.vue | 4 +-
src/pages/about/components/upload.vue | 2 +-
src/pages/index/index.vue | 2 +-
src/pages/login/index.vue | 584 ------------------
src/pages/mine/about/index.vue | 173 ------
src/pages/mine/index.vue | 365 -----------
src/pages/mine/info/index.vue | 190 ------
src/pages/mine/password/index.vue | 203 ------
12 files changed, 4 insertions(+), 1757 deletions(-)
delete mode 100644 src/components/privacy-popup/index.scss
delete mode 100644 src/components/privacy-popup/privacy-popup.vue
delete mode 100644 src/pages/login/index.vue
delete mode 100644 src/pages/mine/about/index.vue
delete mode 100644 src/pages/mine/index.vue
delete mode 100644 src/pages/mine/info/index.vue
delete mode 100644 src/pages/mine/password/index.vue
diff --git a/pages.config.ts b/pages.config.ts
index 630b032..ed2c4f4 100644
--- a/pages.config.ts
+++ b/pages.config.ts
@@ -40,12 +40,6 @@ export default defineUniPages({
pagePath: 'pages/about/about',
text: '关于',
},
- {
- iconPath: 'static/tabbar/personal.png',
- selectedIconPath: 'static/tabbar/personalHL.png',
- pagePath: 'pages/mine/index',
- text: '我的',
- },
],
},
})
diff --git a/src/components/privacy-popup/index.scss b/src/components/privacy-popup/index.scss
deleted file mode 100644
index 6227976..0000000
--- a/src/components/privacy-popup/index.scss
+++ /dev/null
@@ -1,46 +0,0 @@
-:deep(.wd-privacy-popup) {
- width: 600rpx;
- padding: 0 24rpx;
- box-sizing: border-box;
- border-radius: 32rpx;
- overflow: hidden;
-}
-
-.wd-privacy-popup {
- &__header {
- width: 100%;
- height: 128rpx;
- line-height: 128rpx;
- color: rgba(0, 0, 0, 0.85);
- font-size: 30rpx;
- padding: 0 12rpx;
- box-sizing: border-box;
- }
-
- &__container {
- width: 100%;
- box-sizing: border-box;
- padding: 0 12rpx;
- margin-bottom: 32rpx;
-
- font-size: 28rpx;
- line-height: 1.8;
- color: #3e3e3e;
- text-align: left;
- font-weight: 550;
- &-protocol {
- color: #4d80f0;
- }
- }
-
- &__footer {
- display: flex;
- justify-content: space-between;
- padding-bottom: 36rpx;
-
- button {
- border: none;
- outline: none;
- }
- }
-}
diff --git a/src/components/privacy-popup/privacy-popup.vue b/src/components/privacy-popup/privacy-popup.vue
deleted file mode 100644
index 9bf9ec9..0000000
--- a/src/components/privacy-popup/privacy-popup.vue
+++ /dev/null
@@ -1,144 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/pages.json b/src/pages.json
index 6aae172..2f28d80 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -35,12 +35,6 @@
"selectedIconPath": "static/tabbar/exampleHL.png",
"pagePath": "pages/about/about",
"text": "关于"
- },
- {
- "iconPath": "static/tabbar/personal.png",
- "selectedIconPath": "static/tabbar/personalHL.png",
- "pagePath": "pages/mine/index",
- "text": "我的"
}
]
},
@@ -59,42 +53,6 @@
"style": {
"navigationBarTitleText": "关于"
}
- },
- {
- "path": "pages/login/index",
- "type": "page",
- "style": {
- "navigationBarTitleText": "登录",
- "navigationStyle": "custom"
- }
- },
- {
- "path": "pages/mine/index",
- "type": "page",
- "style": {
- "navigationBarTitleText": "我的"
- }
- },
- {
- "path": "pages/mine/about/index",
- "type": "page",
- "style": {
- "navigationBarTitleText": "关于我们"
- }
- },
- {
- "path": "pages/mine/info/index",
- "type": "page",
- "style": {
- "navigationBarTitleText": "个人资料"
- }
- },
- {
- "path": "pages/mine/password/index",
- "type": "page",
- "style": {
- "navigationBarTitleText": "修改密码"
- }
}
],
"subPackages": []
diff --git a/src/pages/about/components/request.vue b/src/pages/about/components/request.vue
index 5e0dfc5..8aa820c 100644
--- a/src/pages/about/components/request.vue
+++ b/src/pages/about/components/request.vue
@@ -23,7 +23,7 @@
- 发送请求
+ 发送请求
loading...
@@ -31,7 +31,7 @@
{{ JSON.stringify(data) }}
- 重置数据
+ 重置数据
diff --git a/src/pages/about/components/upload.vue b/src/pages/about/components/upload.vue
index 07f81f5..e773ca1 100644
--- a/src/pages/about/components/upload.vue
+++ b/src/pages/about/components/upload.vue
@@ -9,7 +9,7 @@
- 选择图片并上传
+ 选择图片并上传
上传...
上传后返回的接口数据:
diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 3757593..fe872f3 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -25,7 +25,7 @@
模板分支是:
- base
+ base sard-ui
diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue
deleted file mode 100644
index 5195f14..0000000
--- a/src/pages/login/index.vue
+++ /dev/null
@@ -1,584 +0,0 @@
-
-{
- style: {
- navigationBarTitleText: '登录',
- navigationStyle: 'custom',
- },
-}
-
-
-
-
-
-
-
-
-
-
- 欢迎登录
- 请输入您的账号和密码
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 登录
-
-
-
-
-
- 或
-
-
-
- 微信一键登录
-
-
-
-
-
-
-
-
- 我已阅读并同意
- 《用户协议》
- 和
- 《隐私政策》
-
-
-
-
-
-
-
-
-
-
diff --git a/src/pages/mine/about/index.vue b/src/pages/mine/about/index.vue
deleted file mode 100644
index d7e152a..0000000
--- a/src/pages/mine/about/index.vue
+++ /dev/null
@@ -1,173 +0,0 @@
-
-{
- style: {
- navigationBarTitleText: '关于我们',
- },
-}
-
-
-
-
-
-
-
-
-
-
- {{ appTitle }}
- 版本 {{ packageJson.version }}
-
-
-
-
- 联系我们
-
-
-
- 客服电话:400-XXX-XXXX
-
-
-
- 邮箱:support@unibest.tech
-
-
-
- 地址:中国·深圳
-
-
-
-
-
-
- Copyright © 2025-{{ currentYear }} {{ appTitle }}
- All Rights Reserved
-
-
-
-
-
-
-
-
diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue
deleted file mode 100644
index 9ece87e..0000000
--- a/src/pages/mine/index.vue
+++ /dev/null
@@ -1,365 +0,0 @@
-
-{
- style: {
- navigationBarTitleText: '我的',
- },
-}
-
-
-
-
- {{ JSON.stringify(userStore.userInfo) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ userStore.userInfo.username }}
-
- ID: {{ userStore.userInfo.id }}
-
-
-
-
-
-
- 账号管理
-
-
-
-
-
-
-
-
-
-
-
-
-
- 通用设置
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 退出登录
- 登录
-
-
-
-
-
-
-
-
diff --git a/src/pages/mine/info/index.vue b/src/pages/mine/info/index.vue
deleted file mode 100644
index 2feb64d..0000000
--- a/src/pages/mine/info/index.vue
+++ /dev/null
@@ -1,190 +0,0 @@
-
-{
- style: {
- navigationBarTitleText: '个人资料',
- },
-}
-
-
-
-
-
-
-
-
-
-
- 昵称
-
-
-
-
-
- 性别
-
- 男
- 女
-
-
-
-
-
-
-
- 保存修改
-
-
-
-
-
-
-
-
-
diff --git a/src/pages/mine/password/index.vue b/src/pages/mine/password/index.vue
deleted file mode 100644
index a92d2d5..0000000
--- a/src/pages/mine/password/index.vue
+++ /dev/null
@@ -1,203 +0,0 @@
-
-{
- style: {
- navigationBarTitleText: '修改密码',
- },
-}
-
-
-
-
-
-
-
-
-
-
- 旧密码
-
-
-
- 新密码
-
-
-
- 确认密码
-
-
-
-
-
-
-
- 保存修改
-
-
-
-
-
-
-
-
-