|
@@ -96,39 +96,6 @@ pre {
|
|
|
font-size: 16px;
|
|
|
top: 3px;
|
|
|
}
|
|
|
-.area{
|
|
|
- padding: 1px 3px;
|
|
|
- color: #fff;
|
|
|
- background-color: #24C0D7;
|
|
|
- border-radius: 2px;
|
|
|
- margin-right: 3px;
|
|
|
- float: left;
|
|
|
- height: 0.40rem;
|
|
|
- line-height: 0.40rem;
|
|
|
- display: inline-block;
|
|
|
-}
|
|
|
-.type{
|
|
|
- padding: 1px 3px;
|
|
|
- background: #ffba00;
|
|
|
- color: #fff;
|
|
|
- border-radius: 2px;
|
|
|
- margin-right: 3px;
|
|
|
- float: left;
|
|
|
- height: 0.40rem;
|
|
|
- line-height: 0.40rem;
|
|
|
- display: inline-block;
|
|
|
-}
|
|
|
-.industry{
|
|
|
- padding: 1px 3px;
|
|
|
- background: #25c78c;
|
|
|
- color: #fff;
|
|
|
- border-radius: 3px;
|
|
|
- margin-right: 3px;
|
|
|
- float: left;
|
|
|
- height: 0.40rem;
|
|
|
- line-height: 0.40rem;
|
|
|
- display: inline-block;
|
|
|
-}
|
|
|
.guide{
|
|
|
text-align: center;
|
|
|
position: absolute;
|
|
@@ -255,16 +222,6 @@ pre {
|
|
|
font-size: 15px;
|
|
|
border-radius: 15px;
|
|
|
}
|
|
|
-/*.onekey{
|
|
|
- float: right;
|
|
|
- border: 1px solid #2cb7ca;
|
|
|
- background-color: #2cb7ca;
|
|
|
- color: #fff;
|
|
|
- padding: 3px 10px 2px;
|
|
|
- font-size: 13px;
|
|
|
- border-radius: 2px;
|
|
|
- margin-top: -5px;
|
|
|
-}*/
|
|
|
.sion-left{
|
|
|
height: 1px;
|
|
|
border-bottom: 1px dashed #cecece;
|
|
@@ -295,8 +252,6 @@ pre {
|
|
|
display:none;
|
|
|
}
|
|
|
.adv-cont{
|
|
|
- /*height: 65pt;
|
|
|
- width: 90%;*/
|
|
|
margin: auto;
|
|
|
padding: 20px 15px;
|
|
|
}
|
|
@@ -335,12 +290,6 @@ pre {
|
|
|
text-align: center;
|
|
|
padding: 0px 20px 15px;
|
|
|
}
|
|
|
-/*#onekey{
|
|
|
- padding:8px 28px;
|
|
|
- width: 100%;
|
|
|
- background-color: #24C0D7;
|
|
|
- border-radius: 6px;
|
|
|
-}*/
|
|
|
.modal-body {
|
|
|
padding:15px 20px;
|
|
|
}
|
|
@@ -415,18 +364,6 @@ pre {
|
|
|
left: 90%;
|
|
|
top: 20px;
|
|
|
}
|
|
|
-
|
|
|
-.buyerclass{
|
|
|
- background: #CFAD89;
|
|
|
- padding: 1px 3px;
|
|
|
- color: #fff;
|
|
|
- border-radius: 3px;
|
|
|
- margin-right: 3px;
|
|
|
- float: left;
|
|
|
- height: 0.40rem;
|
|
|
- line-height: 0.40rem;
|
|
|
- display: inline-block;
|
|
|
-}
|
|
|
.timebefore_vip{
|
|
|
color: #888888;
|
|
|
font-size: 14px;
|
|
@@ -464,9 +401,52 @@ pre {
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
|
|
|
-.projectMatch{
|
|
|
+.buyerclass{
|
|
|
+ background: #CFAD89;
|
|
|
+ padding: 1px 3px;
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 3px;
|
|
|
+ margin-right: 3px;
|
|
|
+ float: left;
|
|
|
+ height: 0.40rem;
|
|
|
+ line-height: 0.40rem;
|
|
|
+ display: inline-block;
|
|
|
+}
|
|
|
+/* .area{
|
|
|
+ padding: 1px 3px;
|
|
|
+ color: #fff;
|
|
|
+ background-color: #24C0D7;
|
|
|
+ border-radius: 2px;
|
|
|
+ margin-right: 3px;
|
|
|
+ float: left;
|
|
|
+ height: 0.40rem;
|
|
|
+ line-height: 0.40rem;
|
|
|
+ display: inline-block;
|
|
|
+}
|
|
|
+.type{
|
|
|
+ padding: 1px 3px;
|
|
|
+ background: #ffba00;
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 2px;
|
|
|
+ margin-right: 3px;
|
|
|
+ float: left;
|
|
|
+ height: 0.40rem;
|
|
|
+ line-height: 0.40rem;
|
|
|
+ display: inline-block;
|
|
|
+}
|
|
|
+.industry{
|
|
|
padding: 1px 3px;
|
|
|
- background: #B4B4B8;
|
|
|
+ background: #25c78c;
|
|
|
+ color: #fff;
|
|
|
+ border-radius: 3px;
|
|
|
+ margin-right: 3px;
|
|
|
+ float: left;
|
|
|
+ height: 0.40rem;
|
|
|
+ line-height: 0.40rem;
|
|
|
+ display: inline-block;
|
|
|
+}
|
|
|
+
|
|
|
+.projectMatch{
|
|
|
color: #fff;
|
|
|
border-radius: 3px;
|
|
|
margin-right: 3px;
|
|
@@ -474,6 +454,29 @@ pre {
|
|
|
height: 0.40rem;
|
|
|
line-height: 0.40rem;
|
|
|
display: inline-block;
|
|
|
+}*/
|
|
|
+
|
|
|
+.tag {
|
|
|
+ display: inline-block;
|
|
|
+ padding: 1px 8px;
|
|
|
+ height: 0.40rem;
|
|
|
+ color: #5F5E64;
|
|
|
+ background-color: #F7F9FA;
|
|
|
+ margin-right: 4px;
|
|
|
+ border-radius: 4px;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 0.40rem;
|
|
|
+}
|
|
|
+.area {}
|
|
|
+
|
|
|
+.buyerclass{}
|
|
|
+
|
|
|
+.type{}
|
|
|
+
|
|
|
+.industry{}
|
|
|
+
|
|
|
+.projectMatch{
|
|
|
+ padding: 1px 3px;
|
|
|
}
|
|
|
.join{
|
|
|
color:#fff;
|
|
@@ -509,13 +512,63 @@ pre {
|
|
|
{{end}}
|
|
|
<div class="mask" style="display: none;"></div>
|
|
|
<div class="maskl"></div>
|
|
|
+<script>
|
|
|
+ var MoneyUnit = {
|
|
|
+ levelArr: ['元', '万元', '亿元', '万亿元'],
|
|
|
+ test: function (num, type, lv) {
|
|
|
+ if (type === void 0) {
|
|
|
+ type = 'string';
|
|
|
+ }
|
|
|
+ if (lv === void 0) {
|
|
|
+ lv = 0;
|
|
|
+ }
|
|
|
+ if (num === 0) {
|
|
|
+ if (type === 'string') {
|
|
|
+ return '0';
|
|
|
+ }
|
|
|
+
|
|
|
+ if (type === 'lv') {
|
|
|
+ return this.levelArr[lv];
|
|
|
+ }
|
|
|
+
|
|
|
+ if (type === 'number') {
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (type === 'index') {
|
|
|
+ return lv;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ var result = num / Math.pow(10000, lv);
|
|
|
+ if (result > 10000 && lv < 2) {
|
|
|
+ return this.test(num, type, lv + 1);
|
|
|
+ } else {
|
|
|
+ if (type === 'string') {
|
|
|
+ return String(Math.floor(result * 100) / 100).replace('.00', '') + this.levelArr[lv];
|
|
|
+ }
|
|
|
+
|
|
|
+ if (type === 'lv') {
|
|
|
+ return this.levelArr[lv];
|
|
|
+ }
|
|
|
+
|
|
|
+ if (type === 'index') {
|
|
|
+ return lv;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (type === 'number') {
|
|
|
+ return String(Math.floor(result * 100) / 100).replace('.00', '');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log({{.T.isVip}})
|
|
|
+</script>
|
|
|
<div class="info">
|
|
|
<div class="title myfollow" id="title">{{.T.obj.title}}</div>
|
|
|
<div class="toolbar">
|
|
|
- {{if .T.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 area="{{.T.obj.area}}"; if(area!="A" && area.replace(/\s+/g,"")!=""){document.write('<span class="tag area">'+area+'</span>');}</script>
|
|
|
<script>
|
|
|
var type = "";
|
|
|
if ({{.T.obj.subtype}} !=""){
|
|
@@ -533,7 +586,7 @@ pre {
|
|
|
}
|
|
|
}
|
|
|
if(type != ""){
|
|
|
- document.write("<span class='type'>"+type+"</span>");
|
|
|
+ document.write("<span class='tag type'>"+type+"</span>");
|
|
|
}
|
|
|
|
|
|
var industry = {{.T.obj.industry}};
|
|
@@ -541,20 +594,38 @@ pre {
|
|
|
//vip用户显示与普通用户不同
|
|
|
var buyerclass={{.T.obj.buyerclass}};
|
|
|
if(industry){
|
|
|
- document.write("<span class='industry'>"+industry+"</span>");
|
|
|
+ document.write("<span class='tag industry'>"+industry+"</span>");
|
|
|
}else if(subscopeclass){
|
|
|
var suclass = subscopeclass.split(",")[0];
|
|
|
- document.write("<span class='industry'>"+ suclass.split("_")[0]+"</span>");
|
|
|
+ document.write("<span class='tag industry'>"+ suclass.split("_")[0]+"</span>");
|
|
|
+ }
|
|
|
+ // 金额标签数据
|
|
|
+ var moneyTag = {
|
|
|
+ content: '',
|
|
|
+ bidamount: {{.T.obj.bidamount}},
|
|
|
+ budget: {{.T.obj.budget}}
|
|
|
}
|
|
|
- if(buyerclass){
|
|
|
- document.write("<span class='buyerclass'>"+ buyerclass+"</span>");
|
|
|
+ // 金额标签处理
|
|
|
+ if(typeof(moneyTag.budget) != "undefined" && moneyTag.budget != null && moneyTag.budget != ""){
|
|
|
+ moneyTag.content = MoneyUnit.test(moneyTag.budget);
|
|
|
}
|
|
|
- //项目匹配
|
|
|
- projectMatch=getParam("projectMatch");
|
|
|
- if (projectMatch){
|
|
|
- document.write("<span class='projectMatch'>"+projectMatch+"</span>")
|
|
|
+ if(typeof(moneyTag.bidamount) != "undefined" && moneyTag.bidamount != null && moneyTag.bidamount != ""){
|
|
|
+ moneyTag.content = MoneyUnit.test(moneyTag.bidamount);
|
|
|
}
|
|
|
-
|
|
|
+ if(moneyTag.content){
|
|
|
+ document.write("<span class='tag budget'>"+ moneyTag.content+"</span>");
|
|
|
+ }
|
|
|
+ {{if .T.isVip}}
|
|
|
+ // VIP用户
|
|
|
+ if(buyerclass){
|
|
|
+ document.write("<span class='tag buyerclass'>"+ buyerclass+"</span>");
|
|
|
+ }
|
|
|
+ //项目匹配
|
|
|
+ projectMatch=getParam("projectMatch");
|
|
|
+ if (projectMatch){
|
|
|
+ document.write("<span class='tag projectMatch'>"+projectMatch+"</span>")
|
|
|
+ }
|
|
|
+ {{ end }}
|
|
|
</script>
|
|
|
</div>
|
|
|
<div class="time_label">
|
|
@@ -569,46 +640,6 @@ pre {
|
|
|
</script>
|
|
|
{{if .T.obj.hasSession}}{{if or .T.obj.projectname .T.obj.projectcode}}<div class="follow" style="top:0px !important">{{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 = "";
|
|
|
- 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}};
|
|
|
- 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>");
|
|
|
- }
|
|
|
- var l_publishtime = {{.T.obj.l_publishtime}};
|
|
|
- if(l_publishtime != ""){
|
|
|
- var tdf = timeDiff(new Date(Number(l_publishtime+"000")))
|
|
|
- if(tdf != null){
|
|
|
- document.write("<span class='timebefore'><i class='glyphicon bofangjilu'></i>"+tdf+"</span>");
|
|
|
- }
|
|
|
- }
|
|
|
- </script>
|
|
|
- {{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>
|
|
|
|
|
|
<div class="newuser hidden">
|