From 91a5420a763f20c535ec74ee817f436dbf07d1f6 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Tue, 5 Apr 2022 17:27:57 +0800 Subject: [PATCH] update --- src/App.vue | 15 ++++++++++++ src/components/common/VerificationAlert.vue | 27 +++++++++++++++++++++ src/i18n/zh/auth/message.ts | 4 ++- src/i18n/zh/common/button.ts | 3 ++- src/i18n/zh/common/message.ts | 4 ++- src/pages/course/Detail.vue | 24 +++++++++++++++--- src/services/user/service.ts | 16 +++++++++--- vite.config.ts | 4 +++ 8 files changed, 88 insertions(+), 9 deletions(-) create mode 100644 src/components/common/VerificationAlert.vue diff --git a/src/App.vue b/src/App.vue index 98240aef..08102c12 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,3 +1,18 @@ + + diff --git a/src/components/common/VerificationAlert.vue b/src/components/common/VerificationAlert.vue new file mode 100644 index 00000000..2d7f20f2 --- /dev/null +++ b/src/components/common/VerificationAlert.vue @@ -0,0 +1,27 @@ + + + diff --git a/src/i18n/zh/auth/message.ts b/src/i18n/zh/auth/message.ts index 4cae18e7..541b22fa 100644 --- a/src/i18n/zh/auth/message.ts +++ b/src/i18n/zh/auth/message.ts @@ -1,3 +1,5 @@ export default { - scanToLogin: '使用微信扫码关注公众号「知数云」即可登录/注册' + scanToLogin: '使用微信扫码关注公众号「知数云」即可登录/注册', + needVerification: '由于您尚未完成实名认证,所以无法查看课程。', + goVerification: '去实名认证' }; diff --git a/src/i18n/zh/common/button.ts b/src/i18n/zh/common/button.ts index 94727db1..14eb3f2e 100644 --- a/src/i18n/zh/common/button.ts +++ b/src/i18n/zh/common/button.ts @@ -10,5 +10,6 @@ export default { alert: '警告', info: '提示', publish: '发布', - watch: '观看' + watch: '观看', + verify: '去实名认证' }; diff --git a/src/i18n/zh/common/message.ts b/src/i18n/zh/common/message.ts index 4cbc21d0..7b9e1aae 100644 --- a/src/i18n/zh/common/message.ts +++ b/src/i18n/zh/common/message.ts @@ -1,4 +1,6 @@ export default { copied: '复制成功', - confirmDelete: '确认删除吗?' + confirmDelete: '确认删除吗?', + alert: '警告', + info: '温馨提示' }; diff --git a/src/pages/course/Detail.vue b/src/pages/course/Detail.vue index 42c88aef..3727578a 100644 --- a/src/pages/course/Detail.vue +++ b/src/pages/course/Detail.vue @@ -1,4 +1,5 @@