UI: 预览环境显示构建时间 + 售价默认299
Some checks failed
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 5s
Test / build-check (push) Successful in 4s
PR Preview / test (pull_request) Successful in 6s
PR Preview / deploy-preview (pull_request) Successful in 9s
Test / e2e-test (push) Has been cancelled

- 预览栏显示部署时间(如 04/11 10:05)
- 售价默认299
- vite构建时注入__BUILD_TIME__

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-11 09:56:16 +00:00
parent b7315219c7
commit d3e3b89701
3 changed files with 10 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div v-if="isPreview" style="background:#e65100;color:white;text-align:center;padding:6px 16px;font-size:13px;font-weight:600;letter-spacing:0.5px;position:sticky;top:0;z-index:100">
预览环境 · PR #{{ prId }} · 数据为生产副本修改不影响正式环境
预览环境 · PR #{{ prId }} · 数据为生产副本修改不影响正式环境 · {{ buildInfo }}
</div>
<div class="app-header">
<div class="header-inner">
@@ -116,6 +116,7 @@ const hostname = window.location.hostname
const prMatch = hostname.match(/^pr-(\d+)\./)
const isPreview = !!prMatch
const prId = prMatch ? prMatch[1] : ''
const buildInfo = __BUILD_TIME__ || ''
function handleTabClick(tab) {
if (tab.require === 'login' && !auth.isLoggedIn) {