diff --git a/open-isle-cli/src/App.vue b/open-isle-cli/src/App.vue index 89aeb5dac..787560279 100644 --- a/open-isle-cli/src/App.vue +++ b/open-isle-cli/src/App.vue @@ -14,23 +14,60 @@ + diff --git a/open-isle-cli/src/components/ActivityPopup.vue b/open-isle-cli/src/components/ActivityPopup.vue new file mode 100644 index 000000000..20b6b568d --- /dev/null +++ b/open-isle-cli/src/components/ActivityPopup.vue @@ -0,0 +1,79 @@ + + + + + diff --git a/open-isle-cli/src/components/BasePopup.vue b/open-isle-cli/src/components/BasePopup.vue new file mode 100644 index 000000000..bc473e592 --- /dev/null +++ b/open-isle-cli/src/components/BasePopup.vue @@ -0,0 +1,58 @@ + + + + + diff --git a/open-isle-cli/src/components/MilkTeaActivityComponent.vue b/open-isle-cli/src/components/MilkTeaActivityComponent.vue index 46bae62c5..f8649594a 100644 --- a/open-isle-cli/src/components/MilkTeaActivityComponent.vue +++ b/open-isle-cli/src/components/MilkTeaActivityComponent.vue @@ -17,22 +17,28 @@
当前 {{ info.level1Count }} / 50
-
+
+ +
加载当前等级中...
+
+
+
+
请登录查看自身等级
+
兑换
兑换
-
-
-
- -
-
提交
-
取消
+ +
+ +
+
提交
+
取消
+
-
-
+
@@ -40,24 +46,30 @@ import ProgressBar from '../components/ProgressBar.vue' import LevelProgress from '../components/LevelProgress.vue' import BaseInput from './BaseInput.vue' +import BasePopup from './BasePopup.vue' import { API_BASE_URL, toast } from '../main' import { getToken, fetchCurrentUser } from '../utils/auth' +import { hatch } from 'ldrs' +hatch.register() export default { name: 'MilkTeaActivityComponent', - components: { ProgressBar, LevelProgress, BaseInput }, + components: { ProgressBar, LevelProgress, BaseInput, BasePopup }, data () { return { info: { level1Count: 0, ended: false }, user: null, dialogVisible: false, contact: '', - loading: false + loading: false, + isLoadingUser: true, } }, async mounted () { await this.loadInfo() + this.isLoadingUser = true this.user = await fetchCurrentUser() + this.isLoadingUser = false }, methods: { async loadInfo () { @@ -146,27 +158,6 @@ export default { background-color: var(--primary-color-disabled); } -.redeem-dialog { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - display: flex; - align-items: center; - justify-content: center; - z-index: 20; -} - -.redeem-dialog-overlay { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - backdrop-filter: blur(3px); - -webkit-backdrop-filter: blur(3px); -} .milk-tea-status-container { display: flex; @@ -188,9 +179,6 @@ export default { position: relative; z-index: 2; background-color: var(--background-color); - padding: 20px; - border-radius: 8px; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); display: flex; flex-direction: column; gap: 10px; @@ -231,6 +219,11 @@ export default { .redeem-cancel-button:hover { text-decoration: underline; } +.user-level-text { + opacity: 0.8; + font-size: 12px; + color: var(--primary-color); +} @media screen and (max-width: 768px) { diff --git a/open-isle-cli/src/views/ActivityListPageView.vue b/open-isle-cli/src/views/ActivityListPageView.vue index 71e731a6e..02ae2bd75 100644 --- a/open-isle-cli/src/views/ActivityListPageView.vue +++ b/open-isle-cli/src/views/ActivityListPageView.vue @@ -1,5 +1,9 @@