Browse Source

wip:详情页拟建标签不可点击

wangkaiyue 1 year ago
parent
commit
0f56546af4

+ 5 - 1
src/web/staticres/public-pc/js/article-content.js

@@ -1826,7 +1826,11 @@ if(typeof(type) == "undefined" || type == null || type == ""){
   }
 }
 if(typeof(type) != "undefined" && type != null && type != ""){ // 标签栏插入标签
-  $(".com-tagsbar").append('<span class="com-type"><a href="/list/stype/'+goTemplateData.params.obj.stypeadd+'.html">'+type+'</a></span>');
+  if(type=="拟建"||type=="采购意向"){
+    $(".com-tagsbar").append('<span class="com-type"><a href="javascript:volid(0);">'+type+'</a></span>');
+  }else{
+    $(".com-tagsbar").append('<span class="com-type"><a href="/list/stype/'+goTemplateData.params.obj.stypeadd+'.html">'+type+'</a></span>');
+  }
 }
 // 2023-5-24 P341去掉
 // if(industry && industry!="undefined"){

+ 23 - 3
src/web/templates/pc/biddetail.html

@@ -455,7 +455,15 @@ function isWechat() {
 					<div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
 					<div class="com-status">
 						{{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
-						{{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
+            {{if $v.type}}
+              {{if eq  $v.stypeadd "NJXM"}}
+              <span class="com-type"><a href="javascript:volid(0);">{{$v.type}}</a></span>
+              {{else if eq  $v.stypeadd "ZBCGYX"}}
+              <span class="com-type"><a href="javascript:volid(0);">{{$v.type}}</a></span>
+              {{else}}
+              <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>
+              {{end}}
+            {{end}}
 						{{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
 						{{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
 					</div>
@@ -473,7 +481,15 @@ function isWechat() {
 					<div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
 					<div class="com-status">
 						{{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
-						{{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
+            {{if $v.type}}
+            {{if eq  $v.stypeadd "NJXM"}}
+            <span class="com-type"><a href="javascript:volid(0);">{{$v.type}}</a></span>
+            {{else if eq  $v.stypeadd "ZBCGYX"}}
+            <span class="com-type"><a href="javascript:volid(0);">{{$v.type}}</a></span>
+            {{else}}
+            <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>
+            {{end}}
+            {{end}}
 						{{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
 						{{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
 					</div>
@@ -1146,7 +1162,11 @@ if(typeof(type) == "undefined" || type == null || type == ""){
 	}
 }
 if(typeof(type) != "undefined" && type != null && type != ""){
-		$(".com-statusbar").append('<span class="com-type"><a href="/list/stype/'+{{.T.obj.stypeadd}}+'.html">'+type+'</a></span>');
+  if(type=="拟建"||type=="采购意向"){
+    $(".com-statusbar").append('<span class="com-type"><a href="javascript:volid(0);">'+type+'</a></span>');
+  }else{
+    $(".com-statusbar").append('<span class="com-type"><a href="/list/stype/'+{{.T.obj.stypeadd}}+'.html">'+type+'</a></span>');
+  }
 }
 //
 if(industry && industry!="undefined"){

+ 15 - 3
src/web/templates/pc/biddetail_rec.html

@@ -1345,7 +1345,11 @@
                         <div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
                         <div class="com-status">
                             {{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
-                            {{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
+                            {{if or (eq  $v.type "拟建") ( eq  $v.type "采购意向")}}
+                            <span class="com-type"><a href="javascript:volid(0);">{{$v.type}}</a></span>
+                            {{else}}
+                            <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>
+                            {{end}}
                             {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
                             {{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
                         </div>
@@ -1363,7 +1367,11 @@
                         <div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
                         <div class="com-status">
                             {{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
-                            {{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
+                            {{if or (eq  $v.type "拟建") ( eq  $v.type "采购意向")}}
+                            <span class="com-type"><a href="javascript:volid(0);">{{$v.type}}</a></span>
+                            {{else}}
+                            <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>
+                            {{end}}
                             {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
                             {{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
                         </div>
@@ -1381,7 +1389,11 @@
                         <div class="com-title"><a href="/article/content/{{$v._id}}.html{{if $v.industry}}?industry={{$v.industry}}{{end}}" target="_blank">{{$v.title}}</a></div>
                         <div class="com-status">
                             {{if $v.area}}<span class="com-area"><a href="/list/area/{{$v.areaadd}}.html">{{$v.area}}</a></span>{{end}}
-                            {{if $v.type}}<span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>{{end}}
+                            {{if or (eq  $v.type "拟建") ( eq  $v.type "采购意向")}}
+                            <span class="com-type"><a href="javascript:volid(0);">{{$v.type}}</a></span>
+                            {{else}}
+                            <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>
+                            {{end}}
                             {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
                             {{if $v.publishtime}}<span class="com-time" data-value="{{$v.pbtime}}"><i class="glyphicon bofangjilu"></i>{{$v.publishtime}}</span>{{end}}
                         </div>

+ 3 - 3
src/web/templates/pc/tags/detail.html

@@ -223,7 +223,7 @@
                       {{else if eq  $v.stypeadd "ZBCGYX"}}
                         <span class="com-type"><a href="javascript:volid(0);">{{$v.type}}</a></span>
                       {{else}}
-                        <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}--{{$v.stypeadd}}</a></span>
+                        <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>
                       {{end}}
                     {{end}}
                     {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
@@ -249,7 +249,7 @@
                       {{else if eq  $v.stypeadd "ZBCGYX"}}
                       <span class="com-type"><a href="javascript:volid(0);">{{$v.type}}</a></span>
                       {{else}}
-                      <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}--{{$v.stypeadd}}</a></span>
+                      <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>
                       {{end}}
                     {{end}}
                     {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}
@@ -276,7 +276,7 @@
                       {{else if eq  $v.stypeadd "ZBCGYX"}}
                       <span class="com-type"><a href="javascript:volid(0);">{{$v.type}}</a></span>
                       {{else}}
-                      <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}--{{$v.stypeadd}}</a></span>
+                      <span class="com-type"><a href="/list/stype/{{$v.stypeadd}}.html">{{$v.type}}</a></span>
                       {{end}}
                     {{end}}
                     {{if $v.industry}}<span class="com-industry"><a href="/list/industry/{{$v.indadd}}.html">{{$v.industry}}</a></span>{{end}}