fuwencai 2 жил өмнө
parent
commit
a5e43fe0e4

+ 6 - 6
src/jfw/modules/app/src/app/front/tags.go

@@ -215,7 +215,7 @@ onceAgain:
 			} else if name == "all" {
 				biddingInfo.IsEffective = true
 				biddingInfo.IsSearch = false
-				tg.T["industryData"] = jyutil.GetIndustry("/jyapp/s/tags/industry/%d_all_all_%d.html") // 行业标的物全部
+				tg.T["industryData"] = jyutil.GetIndustry("/tags/industry/%d_all_all_%d.html") // 行业标的物全部
 			}
 		case jyutil.Label["buyer"]: //采购单位
 			biddingInfo.IsEffective = true
@@ -278,8 +278,8 @@ onceAgain:
 		if biddingInfo.PageNum == (biddingInfo.Total-1)/biddingInfo.PageSize+1 {
 			nextPage = ""
 		}
-		tg.T["prevPage"] = qu.If(prevPage != "", fmt.Sprintf("/jyapp/s/tags/%s/%s.html", types, prevPage), "").(string)
-		tg.T["nextPage"] = qu.If(nextPage != "", fmt.Sprintf("/jyapp/s/tags/%s/%s.html", types, nextPage), "").(string)
+		tg.T["prevPage"] = qu.If(prevPage != "", fmt.Sprintf("/tags/%s/%s.html", types, prevPage), "").(string)
+		tg.T["nextPage"] = qu.If(nextPage != "", fmt.Sprintf("/tags/%s/%s.html", types, nextPage), "").(string)
 		tg.T["totalPage"] = (biddingInfo.Total-1)/biddingInfo.PageSize + 1
 		tg.T["pageNum"] = biddingInfo.PageNum
 		tg.T["hotArea"] = jyutil.HotAreas
@@ -298,13 +298,13 @@ onceAgain:
 			//}
 		}
 		if hasIndustryNav {
-			tg.T["industryNav"] = jyutil.GetIndustryNav(jyutil.GetIndustry("/jyapp/s/tags/industry/%d_all_all_%d.html")) // 标的物小于等于5个字的
+			tg.T["industryNav"] = jyutil.GetIndustryNav(jyutil.GetIndustry("/tags/industry/%d_all_all_%d.html")) // 标的物小于等于5个字的
 		}
 		tg.T["areaTopTip"] = areaTopTip
 		//todo 获取tdk
 		tg.T["tdk"] = jyutil.GetTdk(types, tdk)
-		tg.T["HomeOrigin"] = "/jyapp/s/tags/home/home.html"
-		tg.T["Home"] = "/jyapp/jylab/mainSearch"
+		tg.T["HomeOrigin"] = "/tags/home/home.html"
+		tg.T["Home"] = "/"
 		tg.T["isInfoList"] = isInfoList
 		//模板redis缓存
 		content, _ := tg.Render4Cache("/tags/index.html", &tg.T)

+ 2 - 2
src/jfw/modules/app/src/app/jyutil/tags.go

@@ -22,7 +22,7 @@ import (
 )
 
 var (
-	mobileHref          = "/jyapp/s/tags/%s/%s.html"
+	mobileHref          = "/tags/%s/%s.html"
 	infoTypeRedisKey    = "mobile_seo_infoType_home"
 	biddingListKey      = "mobile_seo_list_%s_%s_%d"
 	biddingListTotalKey = "mobile_seo_list_total_%s_%s"
@@ -212,7 +212,7 @@ type IndustryStruct struct {
 func GetIndustry(industryHref string) *IndustryStruct {
 	saveData := IndustryStruct{
 		Name: "招标导航",
-		Url:  "/jyapp/s/tags/industry/all.html",
+		Url:  "/tags/industry/all.html",
 	}
 	redisKey := fmt.Sprintf(industryRedisKey)
 	if l, err := GetIndustryCache(redisKey); l != nil && (l.List != nil) && len(l.List) > 0 && err == nil {