From 56855bbbcd514a6e7d729b262f166d6073f474c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=97=E6=B5=94?= <2919054393@qq.com> Date: Sat, 9 Aug 2025 22:56:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 3 - src/assets/images/qq.png | Bin 0 -> 3399 bytes src/components/ApiFormModal.vue | 148 ++++---- src/components/CardLoading.vue | 19 + src/components/DataTable.vue | 12 +- src/components/OrderDataTable.vue | 23 +- src/components/UserFormModal.vue | 3 + src/request/api.js | 90 ++++- src/request/request.js | 2 +- src/router/index.js | 55 ++- src/store/modules/userinfo.js | 3 +- src/views/HomeView.vue | 393 +++++++++++++------ src/views/auth/Login.vue | 14 +- src/views/layout/APIList.vue | 276 ++++++++++++++ src/views/layout/APIs.vue | 25 +- src/views/layout/Balance.vue | 565 +++++++++++++++++----------- src/views/layout/BuyPackage.vue | 243 +++++++++--- src/views/layout/Dashboard.vue | 396 ++++--------------- src/views/layout/Home.vue | 39 +- src/views/layout/MyPackages.vue | 117 ++++++ src/views/layout/Orders.vue | 54 ++- src/views/layout/Packages.vue | 13 +- src/views/layout/PayConfig.vue | 263 +++++++++++++ src/views/layout/PersonalCenter.vue | 147 ++++++-- src/views/layout/SystemConfig.vue | 268 +++++++++---- src/views/layout/Users.vue | 15 +- 26 files changed, 2243 insertions(+), 943 deletions(-) create mode 100644 src/assets/images/qq.png create mode 100644 src/components/CardLoading.vue create mode 100644 src/views/layout/APIList.vue create mode 100644 src/views/layout/MyPackages.vue create mode 100644 src/views/layout/PayConfig.vue diff --git a/src/App.vue b/src/App.vue index cc3d219..9bb7b14 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,9 +10,6 @@ \ No newline at end of file diff --git a/src/components/DataTable.vue b/src/components/DataTable.vue index 1067285..662bc4c 100644 --- a/src/components/DataTable.vue +++ b/src/components/DataTable.vue @@ -1,6 +1,6 @@ diff --git a/src/views/auth/Login.vue b/src/views/auth/Login.vue index 26c2b3b..120ad9f 100644 --- a/src/views/auth/Login.vue +++ b/src/views/auth/Login.vue @@ -32,12 +32,15 @@
- +
-

没有账户?点击创建

+

没有账户?点击创建

@@ -57,7 +60,8 @@ export default { formdata: { username: '', password: '' - } + }, + isLogining:false } }, methods: { @@ -65,6 +69,7 @@ export default { * 用户登录 */ async login() { + this.isLogining = true //记录原始密码,用于修改MD5后还原原始文本 const passwordOld = this.formdata.password this.formdata.password = md5(passwordOld) @@ -94,10 +99,11 @@ export default { } catch (e) { console.log(e) - this.$alert('未知错误', 'error') + this.$alert('服务不可用', 'danger') } finally { //还原密码文本 this.formdata.password = passwordOld + this.isLogining = false } } }, diff --git a/src/views/layout/APIList.vue b/src/views/layout/APIList.vue new file mode 100644 index 0000000..d2692eb --- /dev/null +++ b/src/views/layout/APIList.vue @@ -0,0 +1,276 @@ + + + + + diff --git a/src/views/layout/APIs.vue b/src/views/layout/APIs.vue index 05ad3cf..e4e60e5 100644 --- a/src/views/layout/APIs.vue +++ b/src/views/layout/APIs.vue @@ -2,7 +2,8 @@
-
+
+
+ +
@@ -19,13 +22,15 @@ diff --git a/src/views/layout/Balance.vue b/src/views/layout/Balance.vue index 2a39368..9ac027e 100644 --- a/src/views/layout/Balance.vue +++ b/src/views/layout/Balance.vue @@ -1,273 +1,390 @@ diff --git a/src/views/layout/BuyPackage.vue b/src/views/layout/BuyPackage.vue index 2d717da..eb4455d 100644 --- a/src/views/layout/BuyPackage.vue +++ b/src/views/layout/BuyPackage.vue @@ -1,64 +1,197 @@ + + diff --git a/src/views/layout/Dashboard.vue b/src/views/layout/Dashboard.vue index 6c0c1ea..6a77185 100644 --- a/src/views/layout/Dashboard.vue +++ b/src/views/layout/Dashboard.vue @@ -1,12 +1,13 @@ \ No newline at end of file + + + \ No newline at end of file diff --git a/src/views/layout/Home.vue b/src/views/layout/Home.vue index 62ef0c0..1d2d44f 100644 --- a/src/views/layout/Home.vue +++ b/src/views/layout/Home.vue @@ -10,7 +10,7 @@ -
-
- +
@@ -161,13 +161,20 @@ import auth from '@/utils/auth' import feather from 'feather-icons' import { mapGetters } from 'vuex' +import axiosIntance from '@/request/request' +import { Avatar } from 'ant-design-vue' export default { data(){ return{ - routeMenu: [] + routeMenu: [], + baseURL: null, + componentKey:0 } }, methods:{ + refreshHandle(){ + this.componentKey += 1 + }, /** * 展开/关闭侧边菜单栏 */ @@ -197,9 +204,10 @@ export default { } }, computed:{ - ...mapGetters('userinfo',['isAdmin']) + ...mapGetters('userinfo',['isAdmin','Avatar']) }, mounted(){ + this.baseURL = axiosIntance.defaults.baseURL feather.replace() }, beforeCreate(){ @@ -209,6 +217,19 @@ export default { } - \ No newline at end of file diff --git a/src/views/layout/MyPackages.vue b/src/views/layout/MyPackages.vue new file mode 100644 index 0000000..dbb85b7 --- /dev/null +++ b/src/views/layout/MyPackages.vue @@ -0,0 +1,117 @@ + + + + + diff --git a/src/views/layout/Orders.vue b/src/views/layout/Orders.vue index 85c653d..f35722d 100644 --- a/src/views/layout/Orders.vue +++ b/src/views/layout/Orders.vue @@ -2,9 +2,12 @@
-
- +
+ + +
@@ -12,10 +15,13 @@ diff --git a/src/views/layout/Packages.vue b/src/views/layout/Packages.vue index a9c62fa..3b0cb18 100644 --- a/src/views/layout/Packages.vue +++ b/src/views/layout/Packages.vue @@ -2,10 +2,14 @@
-
+
+
+ +
+
@@ -16,11 +20,13 @@ + + diff --git a/src/views/layout/PersonalCenter.vue b/src/views/layout/PersonalCenter.vue index 252a78b..96e6a4b 100644 --- a/src/views/layout/PersonalCenter.vue +++ b/src/views/layout/PersonalCenter.vue @@ -11,7 +11,7 @@
- +
@@ -20,24 +20,34 @@
  • - 昵称:{{ user.nickname }} - + 用户名:{{ user.userName }} +
  • 邮箱:{{ user.email }} - +
  • - 手机号:{{ user.phone }} - + 权限:{{ (user.roles[1] ? '管理员' : '普通用户') || '无' }} +
  • - 性别:{{ getGenderLabel(user.gender) }} - -
  • -
  • - 个人简介:{{ user.bio || '未填写' }} - +
    + API Key: + ************ + {{ user.apiKey ? user.apiKey : '首次请重置Key' }} +
    +
    + + + +
  • 登录密码:******** @@ -79,10 +89,10 @@
- -
两次密码不一致
+
+ 两次密码不一致
@@ -100,21 +110,27 @@ @@ -175,9 +260,11 @@ export default { .bg-gradient { background: linear-gradient(to right, #4e73df, #1cc88a); } + .modal { z-index: 1050; } + .btn-close { background: none; border: none; diff --git a/src/views/layout/SystemConfig.vue b/src/views/layout/SystemConfig.vue index c3bb5cc..eb3e451 100644 --- a/src/views/layout/SystemConfig.vue +++ b/src/views/layout/SystemConfig.vue @@ -1,80 +1,151 @@ +
+
+
+ +
+ + +
+ +
+ + + 我们将在网站显示此邮箱。 +
+ + +
+ + + 我们将在网站显示此手机号。 +
+ + +
+ + +
+ + +
+ +
+ +
+ logo +
+
+
+ + +
+ +
+ +
+ favicon +
+
+
+ + +
+ + +
+ + +
+ + +
+
+
+
+ +
+
+
+
+ + \ No newline at end of file + + \ No newline at end of file diff --git a/src/views/layout/Users.vue b/src/views/layout/Users.vue index 8b7f14d..d3ccb64 100644 --- a/src/views/layout/Users.vue +++ b/src/views/layout/Users.vue @@ -2,10 +2,13 @@
-
+
+
+ +
@@ -16,11 +19,13 @@