浏览代码

fix:首页简报标题替换

duxin 3 月之前
父节点
当前提交
2f89637399
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 3 3
      src/jfw/front/hybg.go
  2. 3 3
      src/jfw/front/index.go

+ 3 - 3
src/jfw/front/hybg.go

@@ -167,13 +167,13 @@ func (l *DeskAnalysisReport) DeskReport() {
 					switch classifys { //1周报 2月报
 					case 1: //1周报
 						year, week := showTime.ISOWeek()
-						title = fmt.Sprintf("%s%s行业%d年第%d周(%s-%s)市场分析报", gconv.String(row["area"]), gconv.String(row["industry"]), year, week, showTime.Format(Date_MMdd), showTime.AddDate(0, 0, 6).Format(Date_MMdd))
+						title = fmt.Sprintf("%s%s行业%d年第%d周(%s-%s)市场分析报", gconv.String(row["area"]), gconv.String(row["industry"]), year, week, showTime.Format(Date_MMdd), showTime.AddDate(0, 0, 6).Format(Date_MMdd))
 					case 2: //2月报
 						year, month := showTime.Year(), int(showTime.Month())
-						title = fmt.Sprintf("%s%s行业%d年%d月份市场分析报", gconv.String(row["area"]), gconv.String(row["industry"]), year, month)
+						title = fmt.Sprintf("%s%s行业%d年%d月份市场分析报", gconv.String(row["area"]), gconv.String(row["industry"]), year, month)
 					}
 				} else {
-					title = fmt.Sprintf("%d年%d月份%s市场分析报", showTime.Year(), int(showTime.Month()), gconv.String(row["industry"]))
+					title = fmt.Sprintf("%d年%d月份%s市场分析报", showTime.Year(), int(showTime.Month()), gconv.String(row["industry"]))
 				}
 				row["title"] = title
 				sTime := showTime.AddDate(0, 0, 7)

+ 3 - 3
src/jfw/front/index.go

@@ -259,7 +259,7 @@ func (nIndex *NewIndex) NewIndex() error {
 	nIndex.T["hotBuyers"] = NewHotEnt(false, 5)
 	//供应商
 	nIndex.T["supplyEnt"] = GetBidInfoPublishEnt()
-	//行业分析
+	//行业分析报
 	nIndex.T["industryReport"] = GetIndustryAnalysisReport()
 	//招投标攻略
 	nIndex.T["strategyList"] = GetStrategyList()
@@ -733,11 +733,11 @@ func formatRow(row map[string]interface{}, isDetail ...bool) *InfoList {
 	case 1: //1周报
 		year, week := showTime.ISOWeek()
 		expandMap["year"], expandMap["date"] = year, week
-		title = fmt.Sprintf("%s%s行业%d年第%d周市场分析报", common.If(bl.Area == "", "全国", bl.Area), bl.Industry, year, week)
+		title = fmt.Sprintf("%s%s行业%d年第%d周市场分析报", common.If(bl.Area == "", "全国", bl.Area), bl.Industry, year, week)
 	case 2: //2月报
 		year, month := showTime.Year(), int(showTime.Month())
 		expandMap["year"], expandMap["date"] = year, month
-		title = fmt.Sprintf("%s%s行业%d年%d月份市场分析报", common.If(bl.Area == "", "全国", bl.Area), bl.Industry, year, month)
+		title = fmt.Sprintf("%s%s行业%d年%d月份市场分析报", common.If(bl.Area == "", "全国", bl.Area), bl.Industry, year, month)
 	}
 	bl.Title = title
 	if len(isDetail) > 0 {