-
🔐 管理
+
+
Campux
+ {{ $store.state.metadata.brand }}
+
+
+ 🪪 账号
+ 🚫 封禁记录
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
{{ uin }}
-
{{ userGroup }}
-
+
+
+
+
-
-
-
-
-
-
-
-
Campux
-
{{ $store.state.metadata.brand }}
+
+
+
+
-
- 🪪 账号
- 🚫 封禁记录
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ snackbar.text }}
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ {{ snackbar.text }}
+
+
+
+
+
+
+
+
+
+
@@ -146,9 +103,6 @@ export default {
},
value: 2,
displayInnerWindow: '',
- avatarUrl: '',
- uin: '',
- userGroup: 'user',
tab: null,
accounts: [],
filter: {
@@ -182,31 +136,10 @@ export default {
},
mounted() {
- this.tokenLogin()
},
methods: {
- tokenLogin() {
- this.$axios.get('/v1/account/token-check')
- .then(res => {
- if (res.data.code === 0) {
- this.uin = res.data.data.uin
- this.avatarUrl = "http://q1.qlogo.cn/g?b=qq&nk=" + res.data.data.uin + "&s=100"
- this.userGroup = res.data.data.user_group
- } else {
- this.toast('登录失败:' + res.data.msg)
- }
- })
- .catch(err => {
- if (err.response.data.code === -1) {
- this.$router.push('/auth?hint=请先登录嗷')
- return
- }
- this.toast('登录失败:' + err.response.data.msg)
- console.error(err)
- })
- },
randomColor() {
let colors = ["#FFC107", "#42A5F5", "#9CCC65", "#F06292", "#76FF03", "#9E9E9E", "#8D6E63"]
return colors[Math.floor(Math.random() * 100) % colors.length]
@@ -254,7 +187,7 @@ export default {
if (res.data.code === 0) {
this.accounts = res.data.data.list
- for (let i = 0; this.accounts!=null && i < this.accounts.length; i++) {
+ for (let i = 0; this.accounts != null && i < this.accounts.length; i++) {
let date = new Date(this.accounts[i].created_at)
this.accounts[i].created_at = date.toLocaleString()
diff --git a/frontend/src/pages/auth.vue b/frontend/src/pages/auth.vue
index 42f0056..b23baee 100644
--- a/frontend/src/pages/auth.vue
+++ b/frontend/src/pages/auth.vue
@@ -1,5 +1,5 @@
-
+
{{ authTitle }}
@@ -118,6 +118,7 @@ export default {
.then(res => {
if (res.data.code === 0) {
this.toast('登录成功', 'success')
+ this.$store.commit('tokenCheck')
this.$router.push('/')
} else {
this.toast('登录失败:' + res.data.msg)
@@ -147,7 +148,7 @@ export default {
padding: 20px;
border-radius: 9px;
background-color: #fff;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.cursor {
diff --git a/frontend/src/pages/index.vue b/frontend/src/pages/index.vue
index 961ce3b..9a10bd7 100644
--- a/frontend/src/pages/index.vue
+++ b/frontend/src/pages/index.vue
@@ -1,170 +1,54 @@
+
-
+
Campux
-
+
-
- 📝 投稿
-
-
- 🌏 稿件
-
-
- 🛠 服务
-
-
- 🔐 管理
-
+
+
+ 📝 投稿
+
+
+
+
+
+ 🌏 稿件
+
+
+
+
+
+ 🛠 服务
+
+
+
+
+
+ 🔐 管理
+
+
-
+
-
{{ uin }}
-
{{userGroup}}
+
{{ $store.state.account.uin }}
+
{{ $store.state.account.userGroup }}
-
-
+
-
-
Campux
- {{ $store.state.metadata.brand }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 真的要退出吗
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 标签
-
-
- {{ tag.name }}
-
-
-
🤔 添加标签可更快过审,不要选择不完全符合内容的标签。
-
-
-
-
-
-
-
-
-
-
-
-
- {{ index + 1 }}. {{ rule }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $store.state.metadata.beianhao }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ snackbar.text }}
-
-
+
@@ -175,7 +59,6 @@
\ No newline at end of file
diff --git a/frontend/src/pages/service.vue b/frontend/src/pages/service.vue
index a78bac7..7cebd02 100644
--- a/frontend/src/pages/service.vue
+++ b/frontend/src/pages/service.vue
@@ -2,135 +2,96 @@
-
-
-
Campux
-
-
-
- 📝 投稿
-
-
- 🌏 稿件
-
-
- 🛠 服务
-
-
- 🔐 管理
-
-
-
-
+
+
Campux
+ {{ $store.state.metadata.brand }}
+
+
+
+
🎲 服务
+
+
🙂 账号服务
+
+
+
-
{{ uin }}
-
{{ userGroup }}
+
修改密码
+
>
-
+
-
+
+
-
-
-
+
+
+
-
-
-
Campux
- {{ $store.state.metadata.brand }}
-
-
-
-
🎲 服务
-
-
🙂 账号服务
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 真的要退出吗?
-
-
-
-
-
-
-
-
-
-
-
-
🤩 推荐网站
-
+
+
+
+
+
+
+
+
+
+
+
+
-
{{ service.emoji }} {{ service.name }}
-
{{ service.link }}
+
退出登录
-
点击查看
+
>
+
- 更多服务正在开发...
-
-
+
+
-
- {{ snackbar.text }}
-
+
+ 真的要退出吗?
+
-
-
-
-
-
-
+
+
+
+
+
-
+
+
+
🤩 推荐网站
+
+
+
{{ service.emoji }} {{ service.name }}
+
{{ service.link }}
+
+
点击查看
+
+
更多服务正在开发...
+
+
+ {{ snackbar.text }}
+
+
+
+
+
+
+
+
+
+
+
+