diff --git a/frontend/src/renderer/src/assets/license/tab1.png b/frontend/src/renderer/src/assets/license/tab1.png new file mode 100644 index 00000000..f1c7abf8 Binary files /dev/null and b/frontend/src/renderer/src/assets/license/tab1.png differ diff --git a/frontend/src/renderer/src/assets/license/tab1_1.png b/frontend/src/renderer/src/assets/license/tab1_1.png new file mode 100644 index 00000000..4794e199 Binary files /dev/null and b/frontend/src/renderer/src/assets/license/tab1_1.png differ diff --git a/frontend/src/renderer/src/assets/license/tab2.png b/frontend/src/renderer/src/assets/license/tab2.png new file mode 100644 index 00000000..476287d6 Binary files /dev/null and b/frontend/src/renderer/src/assets/license/tab2.png differ diff --git a/frontend/src/renderer/src/assets/license/tab2_1.png b/frontend/src/renderer/src/assets/license/tab2_1.png new file mode 100644 index 00000000..2cdf6044 Binary files /dev/null and b/frontend/src/renderer/src/assets/license/tab2_1.png differ diff --git a/frontend/src/renderer/src/assets/license/upload.png b/frontend/src/renderer/src/assets/license/upload.png new file mode 100644 index 00000000..9831e284 Binary files /dev/null and b/frontend/src/renderer/src/assets/license/upload.png differ diff --git a/frontend/src/renderer/src/views/Header.vue b/frontend/src/renderer/src/views/Header.vue index 45972061..192e4222 100644 --- a/frontend/src/renderer/src/views/Header.vue +++ b/frontend/src/renderer/src/views/Header.vue @@ -9,7 +9,10 @@
平衡体态检测系统 {{ licenseBadge }} + + +
@@ -20,19 +23,6 @@ {{ userInfo.name }}
退出 -
@@ -52,10 +42,13 @@ - + + + @@ -286,22 +279,43 @@ font-size: 12px; margin-left: 8px; } - .badge-invalid { background-color: rgba(67, 67, 67, 1); color: #949494; } + .badge-invalid { + width: 79px; + height: 28px; + line-height:28px ; + text-align: center; + background-color: #324065; + font-weight: 400; + font-style: normal; + color: rgb(255, 255, 255); + text-align: center; + } .badge-trial { background-color: rgba(67, 67, 67, 1); color: #949494; } - .badge-valid { background-color: rgba(38, 111, 255, 1); color: #fff; } + .badge-valid { + width: 79px; + height: 28px; + line-height:28px ; + border-radius: 24px; + padding:0; + text-align: center; + background-color: rgba(38, 111, 255, 1); color: #fff; + } .activate-btn { + width: 58px; + height: 24px; margin-left: 8px; - padding: 2px 10px; - font-size: 12px; - border: 1px solid rgba(38, 111, 255, 1); - background-color: rgba(38, 111, 255, 1); - color: #fff; + font-weight: 400; + font-style: normal; + color: rgb(25, 29, 40); + font-size: 13px; + border: 1px solid rgb(59, 242, 198); + background-color: rgb(59, 242, 198); border-radius: 12px; cursor: pointer; } .activate-btn:hover { - background-color: #66b1ff; - border-color: #66b1ff; + background-color: #6cf9d8; + border-color: #6cf9d8; } .userInfoviewDialog{ background-color: #323232 !important; @@ -326,4 +340,14 @@ color: rgb(0, 140, 255); text-decoration: underline; } +.License-dialog-box{ + position: fixed; + z-index: 99; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background: rgba(0, 0, 0, 0.7); +} + \ No newline at end of file diff --git a/frontend/src/renderer/src/views/License.vue b/frontend/src/renderer/src/views/License.vue index 06dfdce7..b4d4f6de 100644 --- a/frontend/src/renderer/src/views/License.vue +++ b/frontend/src/renderer/src/views/License.vue @@ -1,10 +1,96 @@ @@ -68,11 +154,15 @@ const software = reactive({ version: '1.0.0', machine_id: '' }) - +function handleTabClick(e){ + activeTab.value = e +} const exporting = ref(false) const activating = ref(false) const zipFile = ref(null) - +function handleCancel() { + emit('closeLicense', false); +} onMounted(async () => { try { // 获取机器码 @@ -179,26 +269,183 @@ const activatePackage = async () => { \ No newline at end of file