renjiaojiao 2 жил өмнө
parent
commit
9469dc5db6

+ 1 - 0
src/jfw/front/pcIndex.go

@@ -126,6 +126,7 @@ func (m *PcIndex) NewSordfish(flag string) error {
 			m.T["hotBuyers"] = HotBuyerList(entIsNew)
 			m.T["hasLogin"] = util.ObjToString(m.GetSession("userId")) != ""
 			m.T["includedInfo"] = GetIncludedInfo()
+			m.T["hotWinner"] = GetWinnerName()
 			m.T["newbids"] = NewIndexbids(m.Session(), m.Request)
 			m.T["hotkey"] = hotKeyArr
 			return m.Render("/pc/index.html", &m.T)

+ 1 - 1
src/web/templates/pc/index.html

@@ -250,7 +250,7 @@
               {{end}}
             </div>
             <div class="hot-winner-content simple-show">
-              {{range $i,$v := .T.hotSubject}}
+              {{range $i,$v := .T.hotWinner}}
               <a href="{{$v.url}}" target="_blank">{{$v.name}}</a>
               {{end}}
             </div>