|
@@ -21,11 +21,12 @@ import (
|
|
|
"app.yhyue.com/moapp/jybase/date"
|
|
|
mg "app.yhyue.com/moapp/jybase/mongodb"
|
|
|
|
|
|
- elastic "app.yhyue.com/moapp/jybase/es"
|
|
|
"regexp"
|
|
|
"strings"
|
|
|
"time"
|
|
|
|
|
|
+ elastic "app.yhyue.com/moapp/jybase/es"
|
|
|
+
|
|
|
"app.yhyue.com/moapp/jybase/encrypt"
|
|
|
"app.yhyue.com/moapp/jybase/go-xweb/xweb"
|
|
|
"app.yhyue.com/moapp/jybase/redis"
|
|
@@ -1127,6 +1128,41 @@ func (s *Short) NologinCommon(userId, stype, id, sid string) error {
|
|
|
s.T["newBidInfoList"] = tg.GetNewBidInfo()
|
|
|
s.T["industryInfoList"] = tg.GetConsult()
|
|
|
s.T["hotLabelList"] = tg.GetHotLabel(30)
|
|
|
+ s.T["simpleTemplateData"] = map[string]interface{}{
|
|
|
+ "obj": map[string]interface{}{
|
|
|
+ "subtype": obj["subtype"],
|
|
|
+ "purchasing": obj["purchasing"],
|
|
|
+ "package": obj["package"],
|
|
|
+ "fwtscode": obj["fwtscode"],
|
|
|
+ "fwtsname": obj["fwtsname"],
|
|
|
+ "s_winner": obj["s_winner"],
|
|
|
+ "projectname": obj["projectname"],
|
|
|
+ "title": obj["title"],
|
|
|
+ "area": obj["area"],
|
|
|
+ "city": obj["city"],
|
|
|
+ "agency": obj["agency"],
|
|
|
+ "buyer": obj["buyer"],
|
|
|
+ "buyerperson": obj["buyerperson"],
|
|
|
+ "buyertel": obj["buyertel"],
|
|
|
+ "winnertel": obj["winnertel"],
|
|
|
+ "winner_enttel": obj["winner_enttel"],
|
|
|
+ "bidamount": obj["bidamount"],
|
|
|
+ "winner": obj["winner"],
|
|
|
+ "budget": obj["budget"],
|
|
|
+ "_id": obj["_id"],
|
|
|
+ "projectinfo": obj["projectinfo"],
|
|
|
+ "href": obj["href"],
|
|
|
+ "winnerMap": obj["winnerMap"],
|
|
|
+ "entId": obj["entId"],
|
|
|
+ "publishtime": obj["publishtime"],
|
|
|
+ "industry": obj["industry"],
|
|
|
+ "s_subscopeclass": obj["s_subscopeclass"],
|
|
|
+ "areaadd": obj["areaadd"],
|
|
|
+ "stypeadd": obj["stypeadd"],
|
|
|
+ "indadd": obj["indadd"],
|
|
|
+ "type": obj["type"],
|
|
|
+ },
|
|
|
+ }
|
|
|
content, _ := s.Render4Cache("/pc/tags/detail.html", &s.T)
|
|
|
redis.Put("newother", catchKey, string(content), 60*2)
|
|
|
return s.SetBody(content)
|