|
@@ -142,15 +142,11 @@ pre {
|
|
|
.toolbar .follow_vip{
|
|
|
float: right;
|
|
|
color: #ffba00;
|
|
|
- position: relative;
|
|
|
- top: 10px;
|
|
|
}
|
|
|
-.toolbar .follow i{
|
|
|
+.toolbar .follow i,.toolbar .follow_vip i{
|
|
|
top: 2px;
|
|
|
}
|
|
|
-.toolbar .follow_vip i{
|
|
|
- top: 3px;
|
|
|
-}
|
|
|
+
|
|
|
.timebefore{
|
|
|
color: #888888;
|
|
|
position: relative;
|
|
@@ -158,10 +154,8 @@ pre {
|
|
|
}
|
|
|
.timebefore_vip{
|
|
|
color: #888888;
|
|
|
- position: relative;
|
|
|
- top: 10px;
|
|
|
- right: 3.3rem;
|
|
|
font-size: 14px;
|
|
|
+
|
|
|
}
|
|
|
.timebefore i{
|
|
|
color: #7a7a7a;
|
|
@@ -491,6 +485,23 @@ pre {
|
|
|
margin-right: 3px;
|
|
|
float: left;
|
|
|
}
|
|
|
+
|
|
|
+.projectMatch{
|
|
|
+ padding: 1px 3px;
|
|
|
+ background: #B4B4B8;
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 3px;
|
|
|
+ margin-right: 3px;
|
|
|
+ float: left;
|
|
|
+}
|
|
|
+
|
|
|
+.time_label{
|
|
|
+ margin-top:5px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+}
|
|
|
+
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -513,6 +524,84 @@ pre {
|
|
|
<div class="info">
|
|
|
<div class="title myfollow" id="title">{{.T.obj.title}}</div>
|
|
|
<div class="toolbar">
|
|
|
+ {{if .T.obj.isVip}}
|
|
|
+ <!--VIP-->
|
|
|
+ <div class="type_label clearfix">
|
|
|
+ <script>var area="{{.T.obj.area}}"; if(area!="A" && area.replace(/\s+/g,"")!=""){document.write('<span class="area">'+area+'</span>');}</script>
|
|
|
+ <script>
|
|
|
+ var type = "";
|
|
|
+ if ({{.T.obj.subtype}} !=""){
|
|
|
+ type = {{.T.obj.subtype}};
|
|
|
+ }else if({{.T.obj.toptype}} !=""){
|
|
|
+ type = {{.T.obj.toptype}};
|
|
|
+ }else{
|
|
|
+ type = {{.T.obj.type}};
|
|
|
+ if(type == "bid"){
|
|
|
+ type = "中标";
|
|
|
+ }else if(type == "tender"){
|
|
|
+ type = "招标";
|
|
|
+ }else{
|
|
|
+ type = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(type != ""){
|
|
|
+ document.write("<span class='type'>"+type+"</span>");
|
|
|
+ }
|
|
|
+
|
|
|
+ var industry = {{.T.obj.industry}};
|
|
|
+ var subscopeclass = {{.T.obj.s_subscopeclass}};
|
|
|
+ //vip用户显示与普通用户不同
|
|
|
+ var buyerclass={{.T.obj.buyerclass}};
|
|
|
+ if(industry){
|
|
|
+ document.write("<span class='industry'>"+industry+"</span>");
|
|
|
+ }else if(subscopeclass){
|
|
|
+ var suclass = subscopeclass.split(",")[0];
|
|
|
+ document.write("<span class='industry'>"+ suclass.split("_")[0]+"</span>");
|
|
|
+ }
|
|
|
+ if(buyerclass){
|
|
|
+ document.write("<span class='buyerclass'>"+ buyerclass+"</span>");
|
|
|
+ }
|
|
|
+ projectMatch=getParam("projectMatch");
|
|
|
+ if (projectMatch!=""){
|
|
|
+ document.write("<span class='projectMatch'>"+projectMatch+"</span>")
|
|
|
+ }
|
|
|
+ /******* 获取url参数(正则)********/
|
|
|
+ function getParam(name) {
|
|
|
+ var search = document.location.search;
|
|
|
+ // alert(search);
|
|
|
+ var pattern = new RegExp("[?&]" + name + "\=([^&]+)", "g");
|
|
|
+ var matcher = pattern.exec(search);
|
|
|
+ var items = null;
|
|
|
+ if (null != matcher) {
|
|
|
+ try {
|
|
|
+ items = decodeURIComponent(decodeURIComponent(matcher[1]));
|
|
|
+ } catch (e) {
|
|
|
+ try {
|
|
|
+ items = decodeURIComponent(matcher[1]);
|
|
|
+ } catch (e) {
|
|
|
+ items = matcher[1];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return items;
|
|
|
+ };
|
|
|
+ </script>
|
|
|
+ </div>
|
|
|
+ <div class="time_label">
|
|
|
+ <script>
|
|
|
+ var l_publishtime = {{.T.obj.l_publishtime}};
|
|
|
+ if(l_publishtime != ""){
|
|
|
+ var tdf = timeDiff(new Date(Number(l_publishtime+"000")))
|
|
|
+ if(tdf != null){
|
|
|
+ document.write("<div class='timebefore_vip'><i class='glyphicon bofangjilu'></i>"+tdf+"</div>");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+
|
|
|
+ {{if .T.obj.hasSession}}{{if or .T.obj.projectname .T.obj.projectcode}}<div class="follow_vip" >{{if .T.obj.followFlag}}<i class="glyphicon yiguanzhu"></i>已关注{{else}}<i class="glyphicon weiguanzhu"></i>关注项目{{end}}</div>{{end}}{{else}}<!--<a href="/swordfish/share/-1" style="text-decoration: none;color:#24C0D7;"><span class="follow"><i class="glyphicon weiguanzhu"></i></span>关注项目</a>-->{{end}}
|
|
|
+ </div>
|
|
|
+ {{else}}
|
|
|
+ <!--非VIP-->
|
|
|
<script>var area="{{.T.obj.area}}"; if(area!="A" && area.replace(/\s+/g,"")!=""){document.write('<span class="area">'+area+'</span>');}</script>
|
|
|
<script>
|
|
|
var type = "";
|
|
@@ -537,7 +626,6 @@ pre {
|
|
|
var industry = {{.T.obj.industry}};
|
|
|
var subscopeclass = {{.T.obj.s_subscopeclass}};
|
|
|
//vip用户显示与普通用户不同
|
|
|
- var isvip={{.T.obj.isVip}};
|
|
|
var buyerclass={{.T.obj.buyerclass}};
|
|
|
if(industry){
|
|
|
document.write("<span class='industry'>"+industry+"</span>");
|
|
@@ -545,25 +633,40 @@ pre {
|
|
|
var suclass = subscopeclass.split(",")[0];
|
|
|
document.write("<span class='industry'>"+ suclass.split("_")[0]+"</span>");
|
|
|
}
|
|
|
- if(isvip){
|
|
|
- document.write("<span class='buyerclass'>"+ buyerclass+"</span></br>");
|
|
|
+ projectMatch=getParam("projectMatch");
|
|
|
+ if (projectMatch!=""){
|
|
|
+ document.write("<span class='projectMatch'>"+projectMatch+"</span>")
|
|
|
}
|
|
|
var l_publishtime = {{.T.obj.l_publishtime}};
|
|
|
if(l_publishtime != ""){
|
|
|
var tdf = timeDiff(new Date(Number(l_publishtime+"000")))
|
|
|
if(tdf != null){
|
|
|
- if(isvip){
|
|
|
- document.write("<span class='timebefore_vip'><i class='glyphicon bofangjilu'></i>"+tdf+"</span>");
|
|
|
- }else{
|
|
|
- document.write("<span class='timebefore'><i class='glyphicon bofangjilu'></i>"+tdf+"</span>");
|
|
|
- }
|
|
|
+ document.write("<span class='timebefore'><i class='glyphicon bofangjilu'></i>"+tdf+"</span>");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /******* 获取url参数(正则)********/
|
|
|
+ function getParam(name) {
|
|
|
+ var search = document.location.search;
|
|
|
+ // alert(search);
|
|
|
+ var pattern = new RegExp("[?&]" + name + "\=([^&]+)", "g");
|
|
|
+ var matcher = pattern.exec(search);
|
|
|
+ var items = null;
|
|
|
+ if (null != matcher) {
|
|
|
+ try {
|
|
|
+ items = decodeURIComponent(decodeURIComponent(matcher[1]));
|
|
|
+ } catch (e) {
|
|
|
+ try {
|
|
|
+ items = decodeURIComponent(matcher[1]);
|
|
|
+ } catch (e) {
|
|
|
+ items = matcher[1];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return items;
|
|
|
+ };
|
|
|
</script>
|
|
|
- {{if .T.obj.isVip}}
|
|
|
- {{if .T.obj.hasSession}}{{if or .T.obj.projectname .T.obj.projectcode}}<span class="follow_vip" >{{if .T.obj.followFlag}}<i class="glyphicon yiguanzhu"></i>已关注{{else}}<i class="glyphicon weiguanzhu"></i>关注项目{{end}}</span>{{end}}{{else}}<!--<a href="/swordfish/share/-1" style="text-decoration: none;color:#24C0D7;"><span class="follow"><i class="glyphicon weiguanzhu"></i></span>关注项目</a>-->{{end}}
|
|
|
- {{else}}
|
|
|
- {{if .T.obj.hasSession}}{{if or .T.obj.projectname .T.obj.projectcode}}<span class="follow" >{{if .T.obj.followFlag}}<i class="glyphicon yiguanzhu"></i>已关注{{else}}<i class="glyphicon weiguanzhu"></i>关注项目{{end}}</span>{{end}}{{else}}<!--<a href="/swordfish/share/-1" style="text-decoration: none;color:#24C0D7;"><span class="follow"><i class="glyphicon weiguanzhu"></i></span>关注项目</a>-->{{end}}
|
|
|
+ {{if .T.obj.hasSession}}{{if or .T.obj.projectname .T.obj.projectcode}}<span class="follow" >{{if .T.obj.followFlag}}<i class="glyphicon yiguanzhu"></i>已关注{{else}}<i class="glyphicon weiguanzhu"></i>关注项目{{end}}</span>{{end}}{{else}}<!--<a href="/swordfish/share/-1" style="text-decoration: none;color:#24C0D7;"><span class="follow"><i class="glyphicon weiguanzhu"></i></span>关注项目</a>-->{{end}}
|
|
|
{{end}}
|
|
|
</div>
|
|
|
<!--{{if .T.obj.hasSession}}
|