diff --git a/main.go b/main.go index e41cfa9..13ce45f 100644 --- a/main.go +++ b/main.go @@ -127,6 +127,7 @@ func main() { log.Println(" 跨境电商 A (红色): http://localhost:8080/shop") log.Println(" 跨境电商 B (暗黑): http://localhost:8080/shop2") log.Println(" 跨境电商 C (北欧): http://localhost:8080/shop3") + log.Println(" 跨境电商 D (古树): http://localhost:8080/shop4") log.Println(" 外卖平台 A (橙黄): http://localhost:8080/food1") log.Println(" 外卖平台 B (深色): http://localhost:8080/food2") log.Println(" 外卖平台 C (清新): http://localhost:8080/food3") @@ -196,6 +197,7 @@ func setupFrontend(r *gin.Engine) { shopIndex, _ := fs.ReadFile(distFS, "shop/index.html") shop2Index, _ := fs.ReadFile(distFS, "shop2/index.html") shop3Index, _ := fs.ReadFile(distFS, "shop3/index.html") + shop4Index, _ := fs.ReadFile(distFS, "shop4/index.html") food1Index, _ := fs.ReadFile(distFS, "food1/index.html") food2Index, _ := fs.ReadFile(distFS, "food2/index.html") food3Index, _ := fs.ReadFile(distFS, "food3/index.html") @@ -274,6 +276,11 @@ func setupFrontend(r *gin.Engine) { c.Data(http.StatusOK, "text/html; charset=utf-8", shop3Index) }) } + if len(shop4Index) > 0 { + r.GET("/shop4", func(c *gin.Context) { + c.Data(http.StatusOK, "text/html; charset=utf-8", shop4Index) + }) + } if len(food1Index) > 0 { r.GET("/food1", func(c *gin.Context) { c.Data(http.StatusOK, "text/html; charset=utf-8", food1Index) @@ -375,6 +382,11 @@ func setupFrontend(r *gin.Engine) { c.Data(http.StatusOK, "text/html; charset=utf-8", shop3Index) return } + case strings.HasPrefix(path, "/shop4"): + if len(shop4Index) > 0 { + c.Data(http.StatusOK, "text/html; charset=utf-8", shop4Index) + return + } case strings.HasPrefix(path, "/shop"): if len(shopIndex) > 0 { c.Data(http.StatusOK, "text/html; charset=utf-8", shopIndex) diff --git a/web/dist/index.html b/web/dist/index.html index 948fc78..597ddc9 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -64,9 +64,9 @@ body{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI',Ro

Gotest 模板导航

-

6 大行业,18 套精心设计的网站模板,一键切换,即刻预览

+

6 大行业,19 套精心设计的网站模板,一键切换,即刻预览

- 18 套模板 + 19 套模板 6 大行业 3 套 / 行业 响应式设计 @@ -85,11 +85,12 @@ body{font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI',Ro diff --git a/web/dist/shop4/index.html b/web/dist/shop4/index.html new file mode 100644 index 0000000..075735a --- /dev/null +++ b/web/dist/shop4/index.html @@ -0,0 +1,865 @@ + + + + + +古树商城 · TreeShop + + + + + + + + + +
+ +
+
+ +
+
+
古树商城 · 2026 新季
+

扎根全球
枝连万物

+

如古树般扎根品质,如枝叶般连接全球好物。精选 18+ 品类,从智能电子到家居生活,每一件商品都经过严选,为您带来自然纯粹的购物体验。

+
+ + +
+
+
+ +
+
+
品质承诺
+

四大根基
品质如树

+
+
🌍

全球直邮

满 $99 免运费,覆盖全球 200+ 国家和地区

+
✅

正品保障

品牌授权直供,假一赔十承诺

+
🔄

7天退换

无理由退货,购物零风险

+
🔒

安全支付

多渠道加密,保障支付安全

+
+
+ + +
+
+
+ +
+
+
数据一览
+

数字见证
用户信赖

+
+
📦

18+

品类好物

+
👥

50万

全球用户

+
⭐

99%

好评率

+
🌿

7天

无理由退换

+
+
+ +
+
+
+
+
+
+
+
+
+
横向滚动 →
+
+ + +
+
+
+
+

全部商品

+

精选好物,品质如树,扎根全球

+
+
+ + +
+
+ + + + + + + + + + + + + +
图片商品名称分类价格评分销量操作
+
+ +
+
+ + + + + +
+
+
+

购物车

+ +
+
+ +
+ + + + + +
+ + + +