Jelajahi Sumber

feat:pc标讯公告 收藏留资

malin 3 tahun lalu
induk
melakukan
7d5d4f3647

+ 20 - 2
src/web/staticres/js/pc-collect-user-info.js

@@ -472,6 +472,19 @@ var vm = new Vue({
           break
         }
       }
+      // 判断收藏留资显示
+      if (vm.source = "article_collection"  ){
+        // for (var k in vm.moduleShow) {
+        //   vm.moduleShow[k] = false
+        // }
+        vm.moduleShow[k] = false
+      }
+       // 判断阅读原文留资显示
+      // if (vm.source = "article_original"  ){
+      //   for (var k in vm.moduleShow) {
+      //     vm.moduleShow[k] = false
+      //   }
+      // }
       if (text) {
         if (source.indexOf('_freeuser') > -1 && text.indexOf('【') > -1) {
           var r = text.match(/\【(.+?)\】/g)
@@ -483,7 +496,12 @@ var vm = new Vue({
         } else if(source.indexOf('jyarticle_see3_plus_pc') > -1){
           this.dialogTitle = text
           this.dialogTitleTop = '完善信息'
-        }else {
+        } 
+        // else if (source.indexOf("article_collection") > -1){
+        //   this.dialogTitle = text
+        //   this.dialogTitleTop = "为给您匹配精准的推荐信息,请完善个人信息"
+        // }
+          else {
           this.dialogTitle = text
           this.dialogTitleTop = '欢迎体验剑鱼大会员'
         }
@@ -567,7 +585,7 @@ var vm = new Vue({
               _this.getOldInfo()
               _this.curDom = dom
             } else {
-              callback && callback()
+              callback && callback( res)
             }
             _this.isForce = res.data.fource
           }

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

@@ -1212,7 +1212,11 @@ $(function(){
     }
     console.log('三级页-阅读原文:article_original')
     vm.dialogTitle = '为给您匹配精准的推荐信息,请完善个人信息,免费查看原文'
-    vm.isNeedSubmit('article_original', function() {
+    vm.isNeedSubmit('article_original', function(res) {
+      if(source == 'article_original') {
+        // 如果是阅读原文点击的 留完用户资料执行原点击操作
+        $(".com-original").trigger('click')
+      }
       window.open(originalhref)
     })
   })

+ 11 - 6
src/web/templates/pc/biddetail_rec.html

@@ -1346,8 +1346,8 @@ var ucbs_source="pc_rec",ucbsId="{{.T.obj.ucbsId}}";
 		};
 	</script>
 	<script type="text/javascript">
-		var canRead = {{.T.canRead}}
-		// var canRead =false
+		// var canRead = {{.T.canRead}}
+		var canRead =false
 		//是否显示遮罩层
 		function checkShowDialog (res) {
 			var bidmember = false
@@ -1367,15 +1367,20 @@ var ucbs_source="pc_rec",ucbsId="{{.T.obj.ucbsId}}";
 				$(".tip-box .tip-text").eq(0).text('采购意向项目全公开,抢先获知采购项目需求,')
 				$(".tip-box .tip-text").eq(1).text('提前主动介入,中标几率更高!')
 			}
+			if(subType == "拟建项目") {
+				$('#tip-title').text('拟建项目抢先获知')
+				$(".tip-box .tip-text").eq(0).text('提前获取正在审批中的新项目,比招标信息更超前!')
+				$(".tip-box .tip-text").eq(1).text('助您提前了解项目信息,把握重要商机!')
+			}
 			// 免费用户每日查看三次
-			if(canRead == false) {
+			if(canRead ) {
 				$('#tip-title').text('免费查看更多公告!')
 				$(".tip-box .tip-text").eq(0).text('请完善个人信息,获取更多免费查看公告权限')
 				$(".tip-box .tip-text").eq(1).text('')
-				$(".tabfat").remove()
-				$(".recoveryfat").remove()
+				// $(".tabfat").remove()
+				// $(".recoveryfat").remove()
 			}
-			if ((subType == '拟建' || subType == '采购意向' || canRead==false) && !bidmember && !entniche && vip <=0 && !privatedata){
+			if ((subType == '拟建' || subType == '采购意向' || canRead) && !bidmember && !entniche && vip <=0 && !privatedata){
 				$(".com-prebuilt").removeClass("hidden");
 				$(".com-prebuilt").css('height', '408px')
 				$('.original-text').remove()