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
6 大行业,18 套精心设计的网站模板,一键切换,即刻预览
+6 大行业,19 套精心设计的网站模板,一键切换,即刻预览
如古树般扎根品质,如枝叶般连接全球好物。精选 18+ 品类,从智能电子到家居生活,每一件商品都经过严选,为您带来自然纯粹的购物体验。
+满 $99 免运费,覆盖全球 200+ 国家和地区
品牌授权直供,假一赔十承诺
无理由退货,购物零风险
多渠道加密,保障支付安全
品类好物
全球用户
好评率
无理由退换
精选好物,品质如树,扎根全球
+| 图片 | +商品名称 | +分类 | +价格 | +评分 | +销量 | +操作 | +
|---|