Browse Source

Merge remote-tracking branch 'origin/dev4.6.3.14' into dev4.6.3.14

wangkaiyue 3 years ago
parent
commit
733b6ed6d2

+ 1 - 1
src/jfw/modules/app/src/web/templates/common/baiducc.html

@@ -37,7 +37,7 @@ function adv_statistics(e){
     if ($(e).find("a").attr("openurl")!=undefined){//app三级页调用打开方法
       $.post('/salesLeads/retainedCapital', { source: 'article_original' }).done(function (r) {
         // 判断当前信息否在其他页面留资  如果全部留资 直接弹窗提交成功
-        var checkKeys = ['name', 'phone', 'company', 'branch', 'position', 'mail']
+        var checkKeys = ['name', 'phone', 'company', 'branch', 'position']
         var result = checkRequiredKeys(checkKeys, r.info)
         if (result) {
           JyObj.openExternalLink($(e).find("a").attr("openurl"),"查看原文");

+ 7 - 5
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -1221,12 +1221,13 @@
     }
     //是否显示遮罩层
     function checkShowDialog () {
-
-        if (subtype == '采购意向') {
+        var hasSubType = subtype == '拟建'|| subtype == '采购意向'
+        if (hasSubType) {
+          if (subtype == '采购意向') {
             $('#dialog-tip-title').text('想中标?提前介入很关键!')
             $(".dialog-tip-text").html('采购意向项目全公开,抢先获知采购项目需求,<br> 提前主动介入,中标几率更高!')
-        }
-        if (!canRead){
+          }
+        } else if (!canRead) {
             $('#dialog-tip-title').text('免费查看更多公告')
             $(".dialog-tip-text").html('请完善个人信息,获取更多免费查看公告权限')
             $(".free-btn-reword").text('立即解锁')
@@ -1234,7 +1235,8 @@
             $(".atta-list").hide()
             $(".abs").hide()
         }
-        if (subtype == '拟建'||subtype == '采购意向' || !canRead) {
+
+        if (hasSubType || !canRead) {
             $(".prebuilt").remove()
             $(".mask-zz").removeClass("hidden");
         } else {

+ 1 - 1
src/web/staticres/public-pc/js/baiducc.js

@@ -53,7 +53,7 @@ function adv_statistics(e) {
         data: {source: 'article_original'},
         success: function (r) {
           // 判断当前信息否在其他页面留资  如果全部留资 直接弹窗提交成功
-          var checkKeys = ['name', 'phone', 'company', 'branch', 'position', 'mail']
+          var checkKeys = ['name', 'phone', 'company', 'branch', 'position']
           var result = checkRequiredKeys(checkKeys, r.info)
           if (result) {
             location.href = dataHref

+ 15 - 12
src/web/templates/weixin/wxinfocontent_rec.html

@@ -1630,19 +1630,22 @@ $(window).scroll(function(event){
 //
 //是否显示遮罩层
 function checkShowDialog () {
-	if (subtype == '采购意向') {
-		$('#dialog-tip-title').text('想中标?提前介入很关键!')
-		$(".dialog-tip-text").html('采购意向项目全公开,抢先获知采购项目需求,<br> 提前主动介入,中标几率更高!')
-	}
-	if (!canRead){
-      $('#dialog-tip-title').text('免费查看更多公告')
-      $(".dialog-tip-text").html('请完善个人信息,获取更多免费查看公告权限')
-      $(".free-btn-reword").text('立即解锁')
-      $(".tab-ct").hide()
-      $(".atta-list").hide()
-      $(".abs").hide()
+
+  var hasSubType = subtype == '拟建'|| subtype == '采购意向'
+  if (hasSubType) {
+    if (subtype == '采购意向') {
+      $('#dialog-tip-title').text('想中标?提前介入很关键!')
+      $(".dialog-tip-text").html('采购意向项目全公开,抢先获知采购项目需求,<br> 提前主动介入,中标几率更高!')
+    }
+  } else if (!canRead) {
+    $('#dialog-tip-title').text('免费查看更多公告')
+    $(".dialog-tip-text").html('请完善个人信息,获取更多免费查看公告权限')
+    $(".free-btn-reword").text('立即解锁')
+    $(".tab-ct").hide()
+    $(".atta-list").hide()
+    $(".abs").hide()
   }
-	if (subtype == '拟建'||subtype == '采购意向'|| !canRead) {
+  if (hasSubType || !canRead) {
 		$(".prebuilt").remove()
 		$(".mask-zz").removeClass("hidden");
     $(".reward").hide();