From be3549008807578d96fef5c23d359f12a212effb Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 11 Jul 2026 16:00:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E8=B7=A8=E5=A2=83?= =?UTF-8?q?=E7=94=B5=E5=95=86D=E6=A8=A1=E6=9D=BF(shop4)=20-=20=E5=8F=A4?= =?UTF-8?q?=E6=A0=91=E5=8A=A8=E6=80=81=E5=A3=81=E7=BA=B8+=E5=85=89?= =?UTF-8?q?=E8=BF=BD=E7=94=9F=E5=91=BD=E5=8A=9B+=E6=A8=AA=E5=90=91?= =?UTF-8?q?=E9=A6=96=E9=A1=B5+=E5=95=86=E5=93=81=E8=A1=A8=E6=A0=BC+?= =?UTF-8?q?=E9=BB=91=E7=99=BD=E6=A8=A1=E5=BC=8F=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 12 + web/dist/index.html | 7 +- web/dist/shop4/index.html | 865 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 881 insertions(+), 3 deletions(-) create mode 100644 web/dist/shop4/index.html 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天

无理由退换

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

全部商品

+

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

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

购物车

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