Browse Source

fix:新增用户发布标识

xuemingyang 3 years ago
parent
commit
65c9c7a9f7

+ 2 - 1
src/jfw/modules/app/src/web/templates/frontRouter/collection/sess/index.html

@@ -91,7 +91,8 @@
               finished-text="没有更多了"
               @load="getList"
             >
-              <div class="collec_li" :class="{ visited: item.visited }" v-for="(item, index) in listState.list" :key="index" @click="linkRouter(item)">
+              <div class="collec_li" :class="{ visited: item.visited ,userpub:item.site === '剑鱼信息发布平台' || item.spidercode === 'a_jyxxfbpt_gg'}" v-for="(item, index) in listState.list" :key="index" @click="linkRouter(item)">
+                <div v-if="item.site === '剑鱼信息发布平台' || item.spidercode === 'a_jyxxfbpt_gg'" class="yhfb">用户发布</div>
                 <div class="collec_head">
                   <div class="collec_title ellipsis-2 visited-hd" v-html="item.title"></div>
                   <div class="collec_star" @click="collecClick(event,item._id)">

+ 16 - 0
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -155,6 +155,16 @@
         border: 1px solid #EBEBEB;
         text-align: center;
       }
+      .info .yhfb{
+        background-color: rgba(255, 58, 32, 0.1);
+        padding:0 8px;
+        border-bottom-right-radius: 12px;
+        width: 74px;
+        line-height: 22px;
+        font-size: 12px;
+        color: #FF3A20;
+        margin-bottom: -19px;
+      }
     </style>
 </head>
 <body>
@@ -297,6 +307,12 @@
                     }
                 });
             </script>
+<!--            <div v-if="item.site === '剑鱼信息发布平台' || item.spidercode === 'a_jyxxfbpt_gg'" class="yhfb">用户发布</div>-->
+            {{if .T.obj.site}}
+            {{if eq .T.obj.site "剑鱼信息发布平台"}}
+            <div class="yhfb">用户发布</div>
+            {{end}}
+            {{end}}
             <div class="title myfollow" id="title">{{.T.obj.title}}</div>
             <script>
                 var MoneyUnit = {

+ 15 - 0
src/web/staticres/common-module/collection/css/index.css

@@ -301,6 +301,21 @@
     border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
 }
 
+.collection .userpub{
+  padding: 0 0 .4rem;
+}
+
+.collection .collec_li .yhfb{
+  background-color: rgba(255, 58, 32, 0.1);
+  padding:0 8px;
+  border-bottom-right-radius: 12px;
+  width: 74px;
+  line-height: 22px;
+  font-size: 12px;
+  color: #FF3A20;
+  margin-left: -0.32rem;
+}
+
 .collection .collec_li .collec_head {
     display: -webkit-box;
     display: -webkit-flex;

+ 10 - 1
src/web/staticres/frontRouter/pc/collection/css/index-pc.css

@@ -121,6 +121,15 @@
 .collect-list-content .list {
     min-height: 400px;
 }
+.collect-list-content .yhfb{
+  background-color: rgba(255, 58, 32, 0.1);
+  padding: 2px 12px;
+  border-radius: 4px;
+  line-height: 22px;
+  font-size: 14px;
+  color: #FF3A20;
+  margin-right: 10px;
+}
 .c-tab-container {
     height: 49px;
     width: 100%;
@@ -316,4 +325,4 @@
 .selector-card-header .s-h-title {
     font-weight: 700;
     color: #996118;
-}
+}

+ 1 - 0
src/web/templates/frontRouter/pc/collection/sess/index.html

@@ -177,6 +177,7 @@
                         <div class="list-item flex" :class="{ visited: item.visited }" v-for="(item, index) in listState.list" :key="item._id">
                             <div class="pre-container flex visited-hd">
                                 <el-checkbox v-model="item.selected" @change="listItemCheckboxChange(item._id, item.selected)"></el-checkbox>
+                                <div v-if="item.site === '剑鱼信息发布平台' || item.spidercode === 'a_jyxxfbpt_gg'" class="yhfb">用户发布</div>
                                 <div class="list-index">${ item.index }. </div>
                             </div>
                             <div class="visited-hd" style="flex: 1;" @click="toListDetail(item)">

+ 57 - 1
src/web/templates/pc/biddetail_rec.html

@@ -46,6 +46,48 @@
     .com-detail table tr td,.com-detail table th{
       border-right: 1px solid #EBEBEB;
       padding: 10px;
+    }
+    .yhfb{
+      background-color: rgba(255, 58, 32, 0.1);
+      padding:0 13px 2px 11px;
+      border-radius: 4px 0px 16px 0px;
+      height: 24px;
+      width: 80px;
+      line-height: 22px;
+      font-size: 14px;
+      color: #FF3A20;
+      position: absolute;
+      top: 0;
+      left: 0;
+      z-index: 99;
+    }
+    .tab3{
+      display: flex;
+      align-items: center;
+      text-align: center;
+    }
+    .tab3 .pubinfo{
+      margin-left: 86px;
+      width: 246px;
+      height: 24px;
+      background-color: rgba(255, 58, 32, 0.2);
+      border-radius: 53px;
+      line-height: 24px;
+      font-weight: 400;
+      color: #FF3A20 ;
+      font-size: 14px;
+      padding-right: 25px;
+    }
+    .tab3 .pubinfo .btnn{
+      width: 80px;
+      height: 24px;
+      background: linear-gradient(180deg, #FF8787 0%, #FF5E5E 35%, #FF2E2E 68%, #FD4444 100%);
+      border-radius: 88px 53px 53px 0px;
+      color: #ffffff;
+      line-height: 24px;
+      position: absolute;
+      margin-left: 12px;
+      cursor: pointer;
     }
 	</style>
 </head>
@@ -96,6 +138,11 @@
 	<div id="vue-collect-bid-info"></div>
 	<div class="main-content" style="width: 1200px; position: relative; margin: 0 auto">
 		<div class="biddetail-content" style="width:980px; margin-left:0px;">
+      {{if .T.obj.site}}
+      {{if eq .T.obj.site "剑鱼信息发布平台"}}
+      <div class="yhfb">用户发布</div>
+      {{end}}
+      {{end}}
 			<div class="com-title" id="com-title">
 				<!--			<span style="border-bottom:1px solid #2cb7ca">{{.T.obj.title}}</span>-->
 				{{.T.obj.title}}
@@ -564,7 +611,16 @@
 				<div class="recoveryhead">
 					<div class="tab2 active" onclick="jumpTab('2')">公告摘要</div>
 					<div class="tab1" onclick="jumpTab('1')">公告正文</div>
-					<div class="tab3"></div>
+					<div class="tab3">
+            {{if .T.obj.site}}
+            {{if eq .T.obj.site "剑鱼信息发布平台"}}
+            <div class="pubinfo">
+              <span>该信息由用户发布,急寻供应商</span>
+              <span class="btnn">点击报名</span>
+            </div>
+            {{end}}
+            {{end}}
+          </div>
 					<div style="clear:none"></div>
 				</div>
 			</div>

+ 16 - 1
src/web/templates/weixin/wxinfocontent_rec.html

@@ -751,6 +751,16 @@ em {
       #h_content table tr td,.h_content table th{
         border: 1px solid #EBEBEB;
       }
+      .info .yhfb{
+        background-color: rgba(255, 58, 32, 0.1);
+        padding:0 8px;
+        border-bottom-right-radius: 12px;
+        width: 74px;
+        line-height: 22px;
+        font-size: 12px;
+        color: #FF3A20;
+        margin-bottom: -19px;
+      }
 </style>
 </head>
 <body>
@@ -843,6 +853,11 @@ em {
 <!-- 多条广告如下脚本只需引入一次 -->
 <script type="text/javascript" src="//cpro.baidustatic.com/cpro/ui/cm.js" async="async" defer="defer" >
 </script>
+  {{if .T.obj.site}}
+  {{if eq .T.obj.site "剑鱼信息发布平台"}}
+  <div class="yhfb">用户发布</div>
+  {{end}}
+  {{end}}
 	<div class="title myfollow" id="title">{{.T.obj.title}}</div>
 	<div class="toolbar">
 		<div class="type_label clearfix">
@@ -1790,7 +1805,7 @@ function openFileDown (url) {
   //   }
   // } catch (e) {
   //   console.log(e)
-  //   
+  //
   // }
 }