feat(home): 简介与视频前置、侧栏 Win/安卓直链;后台与 API 默认中文
Made-with: Cursor
This commit is contained in:
@@ -186,29 +186,25 @@ func DownloadHomepage(c *gin.Context) {
|
||||
|
||||
func defaultHomepageData() models.HomepageData {
|
||||
return models.HomepageData{
|
||||
LogoText: "YUHENG ONE",
|
||||
NavLinks: []models.NavLink{{Label: "MISSION", URL: "#"}, {Label: "DOWNLOAD", URL: "#"}, {Label: "CONTACT", URL: "#"}},
|
||||
LogoText: "宇恒一号",
|
||||
NavLinks: []models.NavLink{{Label: "产品简介", URL: "#intro"}, {Label: "产品视频", URL: "#videos"}, {Label: "联系我们", URL: "#contact"}},
|
||||
Title: "宇恒一号",
|
||||
Subtitle: "INTERSTELLAR EXPLORER EDITION",
|
||||
Description: "跨越星际的智能伙伴 · 探索无限可能<br>\n 引领您进入前所未有的数字宇宙",
|
||||
DownloadText: "START EXPLORING",
|
||||
Subtitle: "",
|
||||
Description: "",
|
||||
DownloadText: "下载",
|
||||
DownloadURL: "#",
|
||||
Platforms: []models.PlatformItem{
|
||||
{Name: "WINDOWS", URL: "#"},
|
||||
{Name: "MACOS", URL: "#"},
|
||||
{Name: "LINUX", URL: "#"},
|
||||
{Name: "IOS", URL: "#"},
|
||||
{Name: "ANDROID", URL: "#"},
|
||||
},
|
||||
Version: "VERSION 3.2.1",
|
||||
LaunchYear: "LAUNCH: 2024",
|
||||
BadgeText: "FREE ACCESS",
|
||||
Platforms: []models.PlatformItem{},
|
||||
Version: "",
|
||||
LaunchYear: "发布日期:以官网为准",
|
||||
BadgeText: "完全免费",
|
||||
DownloadWindowsURL: "/promotion/downloads/yuheng-windows.zip",
|
||||
DownloadAndroidURL: "/promotion/downloads/yuheng-android.apk",
|
||||
Features: []models.FeatureItem{
|
||||
{Title: "星际导航", Desc: "先进的AI导航系统,精准定位您的需求,引领探索之旅"},
|
||||
{Title: "星际导航", Desc: "先进的 AI 导航系统,精准定位您的需求,引领探索之旅"},
|
||||
{Title: "量子同步", Desc: "跨维度数据同步技术,您的数据在多宇宙中保持一致"},
|
||||
{Title: "星际防护", Desc: "来自未来的安全加密协议,守护您的数字资产安全"},
|
||||
},
|
||||
FooterText: "© 2024 YUHENG ONE // STELLAR EXPLORATION INITIATIVE",
|
||||
FooterText: "© 2024 宇恒一号 · 成都宇信达智能科技有限公司",
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,9 @@ type HomepageData struct {
|
||||
BadgeText string `json:"badge_text"` // FREE ACCESS
|
||||
Features []FeatureItem `json:"features"` // 星际导航等
|
||||
FooterText string `json:"footer_text"` // © 2024 YUHENG ONE
|
||||
// 侧栏直链(与 web 首页 Home.vue 一致,同域静态路径)
|
||||
DownloadWindowsURL string `json:"download_windows_url,omitempty"`
|
||||
DownloadAndroidURL string `json:"download_android_url,omitempty"`
|
||||
// BodyBuilder 首页下方扩展区:与网页积木相同 JSON 字符串 {"version":1,"blocks":[...]},空则仅展示上方模板
|
||||
BodyBuilder string `json:"body_builder,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user