diff --git a/.env.production b/.env.production index 94a593f..bc2a177 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,7 @@ VITE_USE_MOCK=false VITE_PROXY_TARGET= -VITE_API_BASE_URL=https://biz.nianxx.cn/ +#VITE_API_BASE_URL=https://biz.nianxx.cn/ +VITE_API_BASE_URL= VITE_AUTH_BASE=/auth VITE_ADMIN_BASE=/admin VITE_STAFF_BASE=/hotelStaff diff --git a/.env.test b/.env.test index 8dd73f3..1ab81b8 100644 --- a/.env.test +++ b/.env.test @@ -1,6 +1,7 @@ VITE_USE_MOCK=false VITE_PROXY_TARGET= -VITE_API_BASE_URL=http://8.138.234.141/ingress +# VITE_API_BASE_URL=http://8.138.234.141/ingress +VITE_API_BASE_URL= VITE_AUTH_BASE=/auth VITE_ADMIN_BASE=/admin VITE_STAFF_BASE=/hotelStaff diff --git a/src/views/events/EventCreateView.vue b/src/views/events/EventCreateView.vue index 148f365..38c1f7e 100644 --- a/src/views/events/EventCreateView.vue +++ b/src/views/events/EventCreateView.vue @@ -38,7 +38,7 @@ const afterRead = async (fileItem: UploaderFileListItem | UploaderFileListItem[] const submit = async () => { if (!form.entityName.trim()) { - showToast('请输入实体名称') + showToast('请输入事件标题') return } if (!form.eventDescription.trim()) { @@ -73,7 +73,7 @@ const submit = async () => {
- + {
- + diff --git a/src/views/verify/VerifyView.vue b/src/views/verify/VerifyView.vue index 79bde92..4f2f643 100644 --- a/src/views/verify/VerifyView.vue +++ b/src/views/verify/VerifyView.vue @@ -1,63 +1,141 @@ @@ -70,6 +148,57 @@ const scanPlaceholder = () => { var(--surface); } +.scanner-live { + position: relative; + overflow: hidden; + min-height: 260px; + border-radius: var(--radius); + background: #111827; +} + +.scanner-live video { + display: block; + width: 100%; + height: 260px; + object-fit: cover; +} + +.scan-frame { + position: absolute; + inset: 50% auto auto 50%; + width: min(68vw, 230px); + height: min(68vw, 230px); + border: 2px solid rgba(255, 255, 255, 0.92); + border-radius: 12px; + box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.22); + transform: translate(-50%, -50%); +} + +.scan-frame::after { + position: absolute; + top: 50%; + right: 14px; + left: 14px; + height: 2px; + background: var(--primary); + box-shadow: 0 0 16px rgba(15, 139, 114, 0.9); + content: ''; +} + +.stop-button { + position: absolute; + top: 10px; + right: 10px; + display: grid; + width: 34px; + height: 34px; + border: 0; + border-radius: 999px; + background: rgba(17, 24, 39, 0.68); + color: #fff; + place-items: center; +} + .scan-button { display: grid; width: 100%; @@ -79,21 +208,18 @@ const scanPlaceholder = () => { background: rgba(255, 255, 255, 0.78); color: var(--primary-deep); font-weight: 750; + gap: 10px; place-items: center; } -.scan-button span { - margin-top: 10px; +.scan-button:disabled { + opacity: 0.72; } -.form-panel { - display: grid; - gap: 12px; - margin-top: 12px; -} - -.form-panel :deep(.van-cell) { - border: 1px solid var(--line); - border-radius: var(--radius); +.scan-error { + margin: 10px 0 0; + color: var(--rose); + font-size: 12px; + line-height: 1.5; }