Эх сурвалжийг харах

Merge branch 'dev4.6.2.4' of http://192.168.3.207:8080/qmx/jy into dev4.6.2.4

wangshan 3 жил өмнө
parent
commit
a3832086fc

+ 2 - 1
src/jfw/modules/app/src/web/templates/big-member/page_forecast_detail.html

@@ -266,7 +266,8 @@
                     type:'POST',
                     url:'/bigmember/forecast/forPContent',
                     data:{
-                        id: utils.getParam('id')
+                        id: utils.getParam('id'),
+                        keys: that.keys
                     },
                     success:function(res) {
                         console.log(res)

+ 42 - 2
src/jfw/modules/app/src/web/templates/frontRouter/bigmember/free/perfect_info.html

@@ -590,7 +590,10 @@
           app_analysis_kongkim: '请完善个人信息,辅助你做投标决策及报价参考!',
           app_analysis_follow_project: '请完善个人信息,辅助你做投标决策及报价参考!',
           app_analysis_follow_ent: '请完善个人信息,辅助你做投标决策及报价参考!',
-          'jy-wxsearch-index-tap': '请留下联系方式,我们会尽快联系您体验:市场分析周报/月报、竞对实时监控和分析、业主采购趋势/客户分析等'
+          'jy-wxsearch-index-tap': '请留下联系方式,我们会尽快联系您体验:市场分析周报/月报、竞对实时监控和分析、业主采购趋势/客户分析等',
+          article_attach_freeuser: '请留下联系方式,立即免费体验【附件下载】1次,招标文件/采购清单一键下载,商机更完整!',
+          ent_portrait_freeuser: '请留下联系方式,立即免费体验【企业中标分析】1次,多维度可视化分析竞争对手!',
+          buyer_portrait_freeuser: '请留下联系方式,立即免费体验【采购单位全景分析】1次,帮你全面洞察采购单位,开发新客户!'
         }
 
         var infoText = ''
@@ -602,13 +605,20 @@
         }
 
         if (infoText) {
-          document.title = '欢迎体验剑鱼大会员'
+          
           if (source !== 'article_original' &&  source !== 'article_collection') {
             for (var k in this.moduleShow) {
               this.moduleShow[k] = false
             }
             this.moduleShow.position = true
           }
+          
+          if (source.indexOf('_freeuser') > -1 && infoText.indexOf('【') > -1) {
+            var r = infoText.match(/\【(.+?)\】/g)
+            document.title = '欢迎体验' + r[0].replace('【','').replace('】','')
+          } else{
+            document.title = '欢迎体验剑鱼大会员'
+          }
         } else {
           document.title = '完善信息'
         }
@@ -1050,6 +1060,36 @@
               if (_this.ajaxParams.source === 'member_freeuse' || utils.getParam('source')) {
                 if (_this.ajaxParams.source === 'bid_document_Introduction_page') {
                   _this.bidShow = true
+                } else if (_this.ajaxParams.source.indexOf('_freeuser') > -1) {
+                  var source = _this.ajaxParams.source
+                  var text = ''
+                  switch (source) {
+                    case 'ent_portrait_freeuser':
+                      text = '企业中标分析'
+                      break;
+                    case 'buyer_portrait_freeuser':
+                      text = '采购单位全景分析'
+                      break;
+                    case 'article_attach_freeuser':
+                      text = '附件下载'
+                      break;
+                  }
+                  _this.$dialog.close()
+                  _this.$dialog.confirm({
+                    title: '提交成功',
+                    message: '恭喜您,成功解锁【' + text + '】权益1次。如需查看更多,请开通超级订阅,为您提供最新的商业情报,抢占先机。',
+                    className: 'ent-search-dialog max-54',
+                    overlayClass: 'z-2030',
+                    showCancelButton: false,
+                    getContainer: '.perfect-info-group',
+                    confirmButtonText: '我知道了',
+                  }).then(function () {
+                    sessionStorage.setItem('salesBackStatus', 'true')
+                    history.back()
+                  }).catch(function () {
+                    sessionStorage.setItem('salesBackStatus', 'true')
+                    history.back()
+                  })
                 } else {
                   _this.$dialog.close()
                   _this.$dialog.confirm({

+ 232 - 26
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -28,6 +28,58 @@
         white-space: nowrap;
         color:#2ABED1;
       }
+      .join{
+        display: flex;
+        align-items: center;
+      }
+      .free-down-text,.file-count-tip{
+        display: none;
+        margin-left: .24rem;
+        padding: 0 .16rem;
+        background: rgba(42, 189, 209, 0.1);
+        border-radius: 10px;
+        line-height: .4rem;
+        font-size: .22rem;
+        color: #2ABDD1;
+      }
+      .menu_list,.downfiles{
+        color: #2ABED1;
+      }
+      .van-overlay{
+        z-index: 100000!important;
+      }
+      .custom-dialog{
+        z-index: 100001!important;
+      }
+      .custom-dialog .van-dialog__header{
+        font-size: 18px;
+        color: #161826;
+      }
+      .custom-dialog .van-dialog__message{
+        /* color: #5E5E64; */
+      }
+      .custom-dialog .van-button{
+        font-size: 18px;
+      }
+      .concat-kf {
+        display: none;
+        padding: 0.06rem .16rem;
+        background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjNGMjBGMzQ2NEYyQzExRUNBNDRBRDFDQjI2MEM5NTRBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjNGMjBGMzQ3NEYyQzExRUNBNDRBRDFDQjI2MEM5NTRBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6M0YyMEYzNDQ0RjJDMTFFQ0E0NEFEMUNCMjYwQzk1NEEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6M0YyMEYzNDU0RjJDMTFFQ0E0NEFEMUNCMjYwQzk1NEEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5KLSJ9AAAABlBMVEX///////9VfPVsAAAAAnRSTlP/AOW3MEoAAABISURBVHjazNIxDgAgCEPR9v6XdsBEUL6udiPPEBVkiC6gCIL+AtN1GUyt2rdH1UgBpa7zlLasb0cwQqU6QYRE58wR3lsyBBgA3KsBiK25dREAAAAASUVORK5CYII=) no-repeat 6px center #2ABDD1;
+        background-size: .28rem .28rem;
+        padding-left: .48rem;
+        border-radius: 8px;
+        color:#fff;
+        font-size: .22rem;
+        line-height: normal;
+      }
+      .icon-help{
+        display: none;
+        width: .32rem;
+        height: .32rem;
+        margin: 0 .38rem 0 .2rem;
+        background: url(/images/help-b.png) no-repeat center center;
+        background-size: contain;
+      }
     </style>
 </head>
 <body>
@@ -134,7 +186,6 @@
                 type: 'POST',
                 url: '/publicapply/bidcoll/power',
                 success: function(res) {
-                    console.log(res)
                     if(res.error_code == 0) {
                         if(!res.data.entniche && !res.data.member && res.data.vip <= 0) {
                             (window.slotbydup = window.slotbydup || []).push({
@@ -160,7 +211,7 @@
                         position: '公告详情页顶部'
                     },
                     success: function(res) {
-                        console.log(res)
+                        // console.log(res)
                     }
                     })
                 }
@@ -175,7 +226,7 @@
                                 position: '公告详情页顶部'
                             },
                             success: function(res) {
-                                console.log(res)
+                                // console.log(res)
                             }
                         })
                     }  
@@ -591,6 +642,10 @@
                     <a class="adv_center" style="display: flex;flex-direction: column;flex: 1;">
                         <div class="join">
                             附件下载
+                            <span class="free-down-text">免费用户享有1次附件下载权益</span>
+                            <span class="file-count-tip">本月剩余:<em class="file-count"></em>次</span>
+                            <span class="icon-help"></span>
+                            <span class="concat-kf">联系客服</span>
                         </div>
                     </a>
                 </div>
@@ -948,13 +1003,18 @@
     function isOpening() {
         $.ajax({
             type:'GET',
-            url:'/bigmember/use/isAdd',
+            url:'/bigmember/use/isAdd?t=' + Date.now(),
             success: function(res) {
-                if (res.data.memberStatus <= 0 || res.data.power.indexOf(3) == -1) {
+                // 是大会员没有下载权限
+                if (res.data.memberStatus > 0 && res.data.power.indexOf(3) == -1) {
                     window.isNoMember = true
                 }
-                //console.log(res)
-                // res.data.memberStatus = 0
+                window.isFree = res.data.isFree // 是否是免费用户
+                window.freeFile = res.data.freeFile // 免费用户 是否体验过 0:未体验过 -1:体验过
+                window.vipStatus = res.data.vipStatus // 是否是超级订阅用户
+                window.viper = res.data.viper // 是否是超级订阅老用户 false:老用户 true: 新用户
+                window.entniche = res.data.entniche // 商机管理用户
+                window.fileNum = res.data.fileNum // 超级订阅用户可下载附件次数
                 bigstatus = res.data.memberStatus
                 hasServiceArr = res.data.power ? res.data.power : []
                 isFollow()
@@ -994,6 +1054,16 @@
                 } else {
                     $('.bigvip_drain').hide()
                 }
+                // 免费用户展示可下载一次提示(免费用户且没有体验过附件下载权益的展示)
+                if (res.data && res.data.isFree && res.data.freeFile == 0) {
+                  $('.free-down-text').css('display', 'inline-block')
+                }
+                if (res.data && res.data.vipStatus > 0 && res.data.viper) {
+                  $('.file-count-tip').css('display', 'inline-block')
+                  $('.concat-kf').css('display', 'inline-block')
+                  $('.icon-help').css('display', 'inline-block')
+                  $('.file-count').html(res.data.fileNum)
+                }
             },
             error:function(err) {
                 console.log(err)
@@ -1010,7 +1080,6 @@
                 subtype: subtype
             },
             success: function(res) {
-                console.log(res)
                 if(res.error_code == 0) {
                     if(res.data) {
                         $('.bigvip_ad').text(res.data.s_content)
@@ -1050,9 +1119,9 @@
                     checkShowDialog(res)
                     if(res.data) {
                         drainPower = res.data
-                        if (!res.data.member) {
-                            window.isNoMember = true
-                        }
+                        // if (!res.data.member) {
+                        //     window.isNoMember = true
+                        // }
                     }
                 }
             },
@@ -1103,7 +1172,6 @@
                 platform: platform
             }),
             success: function(res) {
-                console.log(res)
                 if(res.data) {
                     location.href = '/jyapp/big/page/landingPage?mid=' + res.data + '&dsid=' + drainInfo.s_serviceid
                 }
@@ -1137,18 +1205,107 @@
                     }
 
                     $('.download-list>ul').append(html)
+                     // 下载附件
                     $('.downs').on('click', function() {
-                        var url = $(this).find('a').attr('data-href')
-                        //  留资判断
-                        if (window.isNoMember == true) {
-                            location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=member_attach'
-                            return
+                      var url = $(this).find('a').attr('data-href')
+                      console.log(window.isNoMember, window.isFree,window.freeFile, window.vipStatus, window.viper)
+                      // 免费用户 
+                      if (window.isFree) {
+                        // 判断有无体验过 0:未体验过
+                        if (window.freeFile == 0) {
+                          // 判断有无留过资 且未体验过 - 去留资
+                          location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=article_attach_freeuser'
+                        } else if (window.freeFile > 0 ){
+                          // 留过资 更新下载次数 进入附件下载页面
+                          if (url) {
+                            if(mySysIsIos()){
+                              iosShow(url)
+                            } else {
+                              location.href = url
+                            }
+                          }
+                        } else {
+                          // 免费用户 体验过 下载次数为-1 弹框提醒跳至超级订阅购买页
+                          vant.Dialog.confirm({
+                            title: '开通超级订阅',
+                            message: '您已经免费解锁过【附件下载】权益1次,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。',
+                            showCancelButton: true,
+                            confirmButtonText: '去开通',
+                            confirmButtonColor: '#2ABDD1',
+                            className: 'custom-dialog',
+                            width: 303,
+                            messageAlign: 'left',
+
+                          }).then(() => {
+                            location.href = '/front/vipsubscribe/vipsubscribe_new'
+                          })
+                          .catch(() => {})
                         }
-                        if(mySysIsIos()){
+                      } else {
+                        // 付费用户
+                        // 大会员用户 有下载权限
+                        if (bigstatus > 0 && hasServiceArr.indexOf(3) > -1) {
+                          if(mySysIsIos()){
                             iosShow(url)
-                        } else {
+                          } else {
                             location.href = url
+                          }
+                          return
                         }
+                        // 超级订阅用户
+                        if (window.vipStatus > 0) {
+                          // 是新超级订阅用户
+                          if (window.viper) {
+                            // 有下载次数
+                            if (window.fileNum > 0) {
+                              if(mySysIsIos()){
+                                iosShow(url)
+                              } else {
+                                location.href = url
+                              }
+                            } else {
+                              // 次数用完提醒联系客服
+                              vant.Dialog.confirm({
+                                message: '您本月查看机会已经消耗完毕,如需要更多服务,请前往联系客服。',
+                                showCancelButton: true,
+                                confirmButtonText: '联系客服',
+                                confirmButtonColor: '#2ABDD1',
+                                className: 'custom-dialog',
+                                width: 303
+
+                              }).then(() => {
+                                location.href = '/jyapp/free/customer'
+                              })
+                              .catch(() => {})
+                            }
+                          } else {
+                            // 老超级订阅用户 提醒升级
+                            vant.Dialog.confirm({
+                              title: '升级超级订阅',
+                              message: '对不起,暂无权限,您可升级超级订阅解锁附件下载',
+                              showCancelButton: true,
+                              confirmButtonText: '前往升级',
+                              confirmButtonColor: '#2ABDD1',
+                              className: 'custom-dialog',
+                              width: 303
+                            }).then(() => {
+                              location.href = '/jyapp/vipsubscribe/upgradePage'
+                            }).catch(() => {})
+                          }
+                          return
+                        }
+                        // 是大会员自定义版本没有下载权限 或 非超级订阅的商机管理用户 (弹框提醒联系客服)
+                        if (window.isNoMember == true || (window.vipStatus <=0 && window.entniche)) {
+                          vant.Dialog.alert({
+                            message: '对不起,暂无权限,请联系客服',
+                            className: 'custom-dialog',
+                            confirmButtonText: '我知道了',
+                            confirmButtonColor: '#2ABDD1',
+                            width: 303,
+                          }).then(() => {})
+                          return
+                        }
+                      }
                     })
                     $('.atta-list').show()
                 }else{
@@ -1225,7 +1382,6 @@
                 downurl:url
             },
             success:function(res){
-                //console.log(res)
                 if(res.data.status){
                     var sendhtml = "<img class=sendsuccess src='/jyapp/images/choose.png'>"+"<p class=alsend>已发送至</p><p class=emailinput>"+email+"</p>";
                     popTipShow.alert(' ',[sendhtml],['我知道了'], function(e){//do something
@@ -1286,7 +1442,6 @@
 
     // isFollow();
     function isFollow(){
-      console.log(hasServiceArr)
         $.post("/bigmember/follow/project/check",{sid:{{.T.obj._id}}},function(fd){
             if(fd&&fd.data&&fd.data.showFollow){
                 $(".keyword.project").removeClass("hideLine")
@@ -1320,9 +1475,9 @@
                 type:"GET",
                 url:'/bigmember/use/isAdd',
                 success:function(res){
-                    if (res.data.memberStatus <= 0 || res.data.power.indexOf(3) == -1) {
-                        window.isNoMember = true
-                    }
+                    // if (res.data.memberStatus <= 0 || res.data.power.indexOf(3) == -1) {
+                    //     window.isNoMember = true
+                    // }
                     if(res.data.memberStatus <= 0 || hasServiceArr.indexOf(14) == -1){
                         if (hsn){
                             if (projectname != "" || projectcode != "" ){
@@ -1800,7 +1955,6 @@
               type:'GET',
               url:'/bigmember/use/isAdd',
               success:function(res){
-                  //console.log(res)
                   if(res.data.memberStatus<=0 || hasServiceArr.indexOf(15) == -1){
                       var landproinfo = {
                           anchor:'中标企业预测',
@@ -2197,7 +2351,35 @@
             }
         })
     }
-    $('.collec_star').on('click', function () {
+
+    // 是否留过资
+    function isReservedInfo(callback){
+      $.ajax({
+        url: '/salesLeads/retainedCapital',
+        type: 'POST',
+        timeout: 5000,
+        data: {
+          source: 'article_attach_freeuser'
+        },
+        success: function (res) {
+          if (res.error_code == 0) {
+            if (res.data) {
+              callback && callback(res.data)
+            } else {
+              EasyAlert.show(res.error_msg)
+            }
+          } else {
+            EasyAlert.show(res.error_msg)
+          }
+        },
+        error: function(error) {
+          EasyAlert.show("查询是否留资失败")
+        }
+      })
+    }
+    $(function(){
+      // 收藏
+      $('.collec_star').on('click', function () {
         var $this = $(this)
         var $icon = $this.children('.icon')
         var shoucang = $icon.hasClass('weishoucang')
@@ -2205,6 +2387,30 @@
         if (vKeepComponent) {
           vKeepComponent.changeBid(id, shoucang)
         }
+      })
+      // 免费1次提醒
+      $('.free-down-text').on('click', function() {
+        //  留资判断
+        isReservedInfo(function(data){
+          if (data.retainedCapital) {
+            location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=article_attach_freeuser'
+          }
+        })
+      })
+      // 下载帮助
+      $('.icon-help').click(function(){
+        vant.Dialog.alert({
+          message: '点击附件即为下载,系统会扣除当月附件下载次数;每月下载次数有限,次月清零,请合理使用。',
+          className: 'custom-dialog',
+          confirmButtonText: '我知道了',
+          confirmButtonColor: '#2ABDD1',
+          width: 303,
+        }).then(() => {})
+      })
+      // 联系客服
+      $('.concat-kf').click(function(){
+        location.href = '/jyapp/free/customer'
+      })
     })
 </script>
 {{include "/common/baiducc.html"}}

+ 69 - 0
src/web/staticres/css/dev2/newBidSearch.css

@@ -473,4 +473,73 @@
   color: #fff;
   background: #2cb7ca;
   border-color: #2cb7ca;
+}
+.free-download{
+  display: none;
+  width: 130px;
+  height: 30px;
+  line-height: 30px;
+  border-radius: 4px;
+  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAAAAXNSR0IArs4c6QAAADNQTFRFAAAA////////////////////////////////////////////////////////////////t5XiggAAABB0Uk5TABAgQFBfYHB/gJ+vv8/f79YNkTsAAACLSURBVDjL7dTLDsIgEIXhcpFCpTP/+z+tC5VC7NiujCaeHeRLIMMJ0/QLmdOxKVAOUYXljz6GQrijEGyTIVdYMswmugIKClQTRVqifV56mredSifMQ+0aX+WyKW0myur6ykpbuG1/7UcxoC7S9/0s0j2kPUqAykt0GKoTjPS38IYSPz5b2Un44t/oBiRjDVV6Qa8lAAAAAElFTkSuQmCC) no-repeat 12px center #2CB7CA;
+  background-size: 18px 18px;
+  padding-left: 16px;
+  margin-left: 32px;
+  text-align: center;
+  font-size: 14px;
+  color: #fff;
+  cursor: pointer;
+}
+.file-count-tip{
+  margin-left: 32px;
+  font-size: 14px;
+  color: #686868;
+}
+.file-count-tip .file-count{
+  color: #2CB7CA;
+}
+.file-icon-help{
+  margin-left: 8px;
+  width: 18px;
+  height: 18px;
+  cursor: pointer;
+}
+.concat-kf{
+  display: inline-block;
+  width: 90px;
+  height: 30px;
+  margin-left: 24px;
+  line-height: 30px;
+  background: #2CB7CA;
+  border-radius: 4px;
+  color: #fff;
+  font-size: 14px;
+  text-align: center;
+  cursor: pointer;
+}
+.custom-alert{
+  border-radius: 8px;
+  width: 380px;
+}
+.custom-alert .el-message-box__content{
+  padding: 0 15px!important;
+  font-size: 14px;
+  color: #686868;
+}
+.custom-confirm-btn,
+.custom-confirm-btn:focus,
+.custom-confirm-btn:hover{
+  width: 132px;
+  margin-top: 22px;
+  color: #fff;
+  background: #2CB7CA;
+  font-size: 16px;
+  border: 0;
+  box-sizing: border-box;
+}
+.custom-cancel-btn{
+  width: 132px;
+  height: 34px;
+}
+.custom-alert .el-message-box__btns button:nth-child(2){
+  margin-left: 32px;
 }

BIN
src/web/staticres/images/icon-download.png


+ 7 - 1
src/web/staticres/js/login.js

@@ -293,7 +293,13 @@ function checkBigStatus () {
       if (res && res.data) {
         window.memberStatus = res.data.memberStatus
         window.memberPower = res.data.power
-        window.vipStatus = res.data.vipStatus
+        window.vipStatus = res.data.vipStatus // 是否是超级订阅用户
+        window.isFree = res.data.isFree // 是否是免费用户
+        window.freeFile = res.data.freeFile // 免费用户 是否体验过 0:未体验过 -1:体验过
+        window.viper = res.data.viper // 是否是超级订阅老用户 false:老用户 true: 新用户
+        window.entniche = res.data.entniche // 商机管理用户
+        window.fileNum = res.data.fileNum // 超级订阅用户可下载附件次数
+        window.isLogin = true // 用于其他页面判断是否已登录
         sessionStorage.setItem('bidPower', JSON.stringify(res.data.power))
         if (res.data.memberStatus > 0) {
           $(".myorderDiv.lastBox").show()

+ 34 - 4
src/web/staticres/js/pc-collect-user-info.js

@@ -129,7 +129,7 @@ var temp = `
       <div class="mask"></div>
       <div class="success-dialog-container">
         <div class="success-title">提交成功</div>
-        <div class="success-content">我们会尽快联系您并预约演示时间,请耐心等待~<br>您将获得免费体验大会员全部功能!</div>
+        <div class="success-content">@@successText@@</div>
         <div class="success-footer">
           <button type="button" class="custom-btn go-know" @click="showSuccess = false">我知道了</button>
         </div>
@@ -357,7 +357,10 @@ var vm = new Vue({
         pc_index_bottom_adv: '请留下联系方式,我们会尽快联系您体验:市场分析周报/月报、竞对实时监控和分析、业主采购趋势/客户分析等',
         article_ent_portrait: '请留下联系方式,我们会尽快联系您!体验企业画像分析,帮你透视企业!',
         article_buyer_portrait: '请留下联系方式,我们会尽快联系您!体验采购单位画像分析,为你挖掘客户!',
-        article_slogan: '请留下联系方式,我们会尽快联系您体验大会员全部功能!'
+        article_slogan: '请留下联系方式,我们会尽快联系您体验大会员全部功能!',
+        article_attach_freeuser: '请留下联系方式,立即免费体验【附件下载】1次,招标文件/采购清单一键下载,商机更完整!',
+        ent_portrait_freeuser: '请留下联系方式,立即免费体验【企业中标分析】1次,多维度可视化分析竞争对手!',
+        buyer_portrait_freeuser: '请留下联系方式,立即免费体验【采购单位全景分析】1次,帮你全面洞察采购单位,开发新客户!'
       }
     }
   },
@@ -376,6 +379,25 @@ var vm = new Vue({
       var zc = this.form.job.indexOf('总裁') > -1
       var zjl = this.form.job.indexOf('总经理') > -1
       return !(zc || zjl) && this.form.job
+    },
+    successText: function() {
+      if (this.source.indexOf('_freeuser') > -1) {
+        var text = ''
+        switch (this.source) {
+          case 'ent_portrait_freeuser':
+            text = '企业中标分析'
+            break;
+          case 'buyer_portrait_freeuser':
+            text = '采购单位全景分析'
+            break;
+          case 'article_attach_freeuser':
+            text = '附件下载'
+            break;
+        }
+        return '恭喜您,成功解锁【' + text + '】权益1次。如需查看更多,请开通超级订阅,为您提供最新的商业情报,抢占先机。'
+      } else {
+        return '我们会尽快联系您并预约演示时间,请耐心等待~<br>您将获得免费体验大会员全部功能!'
+      }
     }
   },
   mounted() {
@@ -404,8 +426,14 @@ var vm = new Vue({
         }
       }
       if (text) {
-        this.dialogTitle = text
-        this.dialogTitleTop = '欢迎体验剑鱼大会员'
+        if (this.source.indexOf('_freeuser') > -1) {
+          var r = text.match(/\【(.+?)\】/g)
+          this.dialogTitleTop = '欢迎体验' + r[0].replace('【','').replace('】','')
+          this.dialogTitle = text
+        } else {
+          this.dialogTitle = text
+          this.dialogTitleTop = '欢迎体验剑鱼大会员'
+        }
         for (var k in this.moduleShow) {
           this.moduleShow[k] = false
         }
@@ -536,6 +564,8 @@ var vm = new Vue({
               }
             } else if (source == 'pc_index_bottom_adv') {
               location.href = '/big/page/index'
+            }  else if (source.indexOf('_freeuser') > -1) {
+              _this.showSuccess = true
             } else {
               _this.showSuccess = true
             }

+ 300 - 194
src/web/templates/pc/biddetail_rec.html

@@ -624,30 +624,31 @@
                                   <strong v-html="buyerInfo.bidamount_count"></strong>
                                   <span v-if="buyerInfo.bidamount_count != '--'"  v-html="buyerInfo.unit"></span>
                                 </span>
-																<span class="b-i-label">采购规模</span>
-															</div>
-														</div>
-														<div class="bid_tel">
-															<img src="/images/tel.png" style="width: 20px;height: 20px;" alt="">
-															<span class="bid_phonetext">咨询 400-108-6670 了解更多</span>
-														</div>
-														<div class="contacts" v-if="buyerInfo && buyerInfo.contactList">
-															<p class="contacts-title">历史项目联系方式</p>
-															<p class="contacts-list" v-for="item in buyerInfo.contactList">
-																<span class="c-l-time" v-if="item.date">成交时间:<span v-html="item.date"></span></span>
-																<span class="c-l-way" v-if="item.contact">联系方式:<span v-html="item.contact"></span></span>
-															</p>
-														</div>
-													</div>
-													<div class="bidfoot">
-														<div class="bid_button_cancel bid_btn" @click="window.open('/swordfish/page_big_pc/unit_portrayal/{{.T.obj.buyer}}')">查看详情</div>
-														<div class="bid_button_confirm bid_btn" @click="goCollect('article_buyer_portrait')">一键预约</div>
-													</div>
-												</div>
-											</div>
-										</div>
-									</el-popover>
-									{{end}}
+                                <span class="b-i-label">采购规模</span>
+                              </div>
+                            </div>
+                            <div class="bid_tel">
+                              <img src="/images/tel.png" style="width: 20px;height: 20px;" alt="">
+                              <span class="bid_phonetext">咨询 400-108-6670 了解更多</span>
+                            </div>
+                            <div class="contacts" v-if="buyerInfo && buyerInfo.contactList">
+                              <p class="contacts-title">采购单位通讯录</p>
+                              <p class="contacts-list" v-for="item in buyerInfo.contactList">
+                                <span class="c-l-time" v-if="item.date">成交时间:<span v-html="item.date"></span></span>
+                                <span class="c-l-way" v-if="item.contact">联系方式:<span v-html="item.contact"></span></span>
+                              </p>
+                            </div>
+                          </div>
+                          <div class="bidfoot">
+                            <div class="bid_button_cancel bid_btn" @click="window.open('/swordfish/page_big_pc/unit_portrayal/{{.T.obj.buyer}}')">查看详情</div>
+                            <!-- <div class="bid_button_confirm bid_btn" @click="goCollect('article_buyer_portrait')">一键开通</div> -->
+                            <div class="bid_button_confirm bid_btn" @click="location.href= '/swordfish/page_big_pc/free/svip/buy'">一键开通</div>
+                          </div>
+                        </div>
+                      </div>
+                    </div>
+                  </el-popover>
+                  {{end}}
 								</td>
 								<td class="tab-type" style="padding-right: 9px;">采购联系人</td>
 								<td class="tab-cont">
@@ -856,120 +857,92 @@
 					<span class="hidden">{{if .T.obj.i_downno}}{{.T.obj.i_downno}}{{else}}0{{end}}</span>
 				</div>
 			</div>-->
+		</div>
+			<!--大会员附件下载 -->
+			<div id="attach-list" style="margin: 40px 0px;display: none">
+				<div>
+          <span style="font-weight: 400;font-size: 16px">附件下载</span>
+          <span class="free-download">免费下载1次</span>
+          <span class="super-vip-show" style="display:none;">
+            <span class="file-count-tip">本月剩余:<em class="file-count"></em>次</span>
+            <img class="file-icon-help" src="/images/help-b.png" alt="">
+            <span class="concat-kf open-customer">联系客服</span>
+          </span>
+        </div>
+				<div class="download-list" style="margin-top: 20px">
 				</div>
-				<!--大会员附件下载 -->
-				<div id="attach-list" style="margin: 40px 0px;display: none">
-					<span style="font-weight: 400;font-size: 16px">附件下载</span>
-					<div class="download-list" style="margin-top: 20px">
-					</div>
-				</div>
-				<script>
-					function goDownload(url) {
-						console.log(window.memberPower, '11')
-						if (!loginflag) {
-							openLoginDig()
-							return
-						}
-						if (window.memberPower.indexOf(3) > -1) {
-							location.href = url
-						} else {
-							// vm.dialogTitle = '请完善个人信息,免费下载附件,发现商机!'
-							vm.isNeedSubmit('member_attach', function() {
-								vm.showSuccess = true
-							})
-						}
-					}
-					$.ajax({
-						type:'post',
-						url:'/bigmember/attachment/get',
-						data:{
-							infoId:{{.T.obj._id}}
-					},
-					success:function(data){
-						// TODO 留资判断
-						if(data.data && data.data.attachment !=null && data.data.attachment.length!==0){
-							var html = ''
-							for(var i=0;i<data.data.attachment.length;i++) {
-								html += "<div class='downs'>"+"<a class='menu_list' style='text-decoration:underline;color: #2CB7CA' onclick='goDownload(\""+data.data.attachment[i].downurl+"\")'>"+(i+1)+"."+data.data.attachment[i].filename+"</a></div>"
-							}
-							if(html!==""){
-								$("#attach-list").css("display","").find(".download-list").html(html)
-							}
-						}
-					}
-					});
-				</script>
-				<center class="reward text-align">
-					<br><div>打赏</div>
-				</center>
-				{{if .T.obj.urltop}}<a class="trs" style="color:white"> </a>{{end}}
-			</div>
-			<div  onclick="adv_statistics(this)" adv_name="PC快照页-右部"  class="adv-pccontent-right" id="B1" style="cursor:default;">
-				<script>
-					{{$s:=(Ad "jy-pccontent-right" -1)}}
-					var ADList={{$s}};
-					var ExcludeList = ""
-					if (ADList.length>0){
-						for (var i=0;i<ADList.length;i++ ){
-							if (ExcludeList!=""&&ExcludeList.split("-").length==ADList.length){
-								break;
-							}
-							var random=Math.floor(Math.random()*ADList.length);
-							if (ExcludeList.indexOf(random)>-1){
-								continue;
-							}
-							var AD=ADList[random];
-							if (AD.o_extend != undefined) {
-								var nowTime = new Date().getTime();
-								if (AD.o_extend.startTime!=undefined){
-									var stArr = AD.o_extend.startTime.split("-");
-									if (stArr.length==6){
-										var stStr = stArr[0]+"-"+stArr[1]+"-"+stArr[2]+" "+stArr[3]+":"+stArr[4]+":"+stArr[5]
-										var stTime = new Date(stStr.replace(/-/g, '/')).getTime();
-										//未开始
-										if (stTime>nowTime){
-											if (ExcludeList!=""){
-												ExcludeList +="-"
-											}
-											ExcludeList = ExcludeList+ random
-											continue
-										}
-									}
-								}
-								if (AD.o_extend.endTime!=undefined){
-									var etArr = AD.o_extend.endTime.split("-");
-									if (etArr.length==6){
-										var etStr = etArr[0]+"-"+etArr[1]+"-"+etArr[2]+" "+etArr[3]+":"+etArr[4]+":"+etArr[5]
-										var etTime = new Date(etStr.replace(/-/g, '/')).getTime();
-										//已结束
-										if (etTime<nowTime){
-											if (ExcludeList!=""){
-												ExcludeList +="-"
-											}
-											ExcludeList = ExcludeList+ random
-											continue
-										}
-									}
-								}
-							}
-							var ADHtml = "";
-							if(AD.s_pic){
-								if(AD.s_link){
-									ADHtml += "<a dataHref='"+AD.s_link+"' target='_blank'>";
-								}
-								ADHtml += "<img id='pc-article-content-right' src='"+AD.s_pic+"'>";
-								if(AD.s_link){
-									ADHtml += "</a>";
-								}
-							}else {
-								ADHtml += AD.s_script;
-							}
-							$("#B1").html(ADHtml);
-							break;
-						}
-					}
-				</script>
-				<div class="_29p15mchdsg" style="margin-top: 12px"></div>
+      </div>
+		<center class="reward text-align">
+			<br><div>打赏</div>
+		</center>
+		{{if .T.obj.urltop}}<a class="trs" style="color:white"> </a>{{end}}
+	</div>
+	<div  onclick="adv_statistics(this)" adv_name="PC快照页-右部"  class="adv-pccontent-right" id="B1" style="cursor:default;">
+    <script>
+			{{$s:=(Ad "jy-pccontent-right" -1)}}
+      var ADList={{$s}};
+      var ExcludeList = ""
+      if (ADList.length>0){
+        for (var i=0;i<ADList.length;i++ ){
+          if (ExcludeList!=""&&ExcludeList.split("-").length==ADList.length){
+            break;
+          }
+          var random=Math.floor(Math.random()*ADList.length);
+          if (ExcludeList.indexOf(random)>-1){
+            continue;
+          }
+          var AD=ADList[random];
+          if (AD.o_extend != undefined) {
+            var nowTime = new Date().getTime();
+            if (AD.o_extend.startTime!=undefined){
+              var stArr = AD.o_extend.startTime.split("-");
+              if (stArr.length==6){
+                var stStr = stArr[0]+"-"+stArr[1]+"-"+stArr[2]+" "+stArr[3]+":"+stArr[4]+":"+stArr[5]
+                var stTime = new Date(stStr.replace(/-/g, '/')).getTime();
+                //未开始
+                if (stTime>nowTime){
+                  if (ExcludeList!=""){
+                    ExcludeList +="-"
+                  }
+                  ExcludeList = ExcludeList+ random
+                  continue
+                }
+              }
+            }
+            if (AD.o_extend.endTime!=undefined){
+              var etArr = AD.o_extend.endTime.split("-");
+              if (etArr.length==6){
+                var etStr = etArr[0]+"-"+etArr[1]+"-"+etArr[2]+" "+etArr[3]+":"+etArr[4]+":"+etArr[5]
+                var etTime = new Date(etStr.replace(/-/g, '/')).getTime();
+                //已结束
+                if (etTime<nowTime){
+                  if (ExcludeList!=""){
+                    ExcludeList +="-"
+                  }
+                  ExcludeList = ExcludeList+ random
+                  continue
+                }
+              }
+            }
+          }
+          var ADHtml = "";
+          if(AD.s_pic){
+              if(AD.s_link){
+                  ADHtml += "<a dataHref='"+AD.s_link+"' target='_blank'>";
+              }
+              ADHtml += "<img id='pc-article-content-right' src='"+AD.s_pic+"'>";
+              if(AD.s_link){
+                  ADHtml += "</a>";
+              }
+          }else {
+              ADHtml += AD.s_script;
+          }
+          $("#B1").html(ADHtml);
+          break;
+        }
+      }
+		</script>
+		<div class="_29p15mchdsg" style="margin-top: 12px"></div>
 
 			</div>
 			<!--去掉一键报告排版问题-->
@@ -3261,63 +3234,196 @@ var ucbs_source="pc_rec",ucbsId="{{.T.obj.ucbsId}}";
 			return ""
 		}
 
-		//金额转化   金额:0-万元以下单位为元  ,万元以上至亿元以下单位为万元 ,亿元以上单位为亿元。保留 小数点后 2 位,不进行四舍五入。
-		function conversionMoeny(money){
-			var m = ""+money;
-			var m_arr = m.split(".")
-			var m_1 = m_arr[0]
-			var len_m1 = m_1.length;
-			if (len_m1 >= 9 ){
-				m = m_1.substring(0,len_m1-8) + "." + m_1.substring(len_m1-8,len_m1-6) + "亿元"
-			} else if (len_m1 >= 5) {
-				m =m_1.substring(0,len_m1-4) + "." + m_1.substring(len_m1-4,len_m1-2) + "万元"
-			} else {
-				if(m_arr.length == 1) {
-					return m + ".00元"
-				}
-				var m_2 = m_arr[1]
-				if (m_2.length > 1) {
-					m_2 = m_2.substring(0,2)
-				} else {
-					m_2 = m_2.substring(0,1) + "0"
-				}
-				m = m_1 + "." + m_2 + "元"
-			}
-			return m
-		}
-
-		function fromwhere(text){
-			var ad="pc_articel_";
-			if (getinfotype(subtype)=="拟建项目"){
-				ad+="nj"
-			}
-			if (getinfotype(subtype)=="招标公告"){
-				ad+="zb"
-			}
-			if (getinfotype(subtype)=="中标公告"){
-				ad+="win"
-			}
-			if (getinfotype(subtype)=="其他"){
-				ad+="qt"
-			}
-			if (jQuery.inArray(text,zb_adv)!=-1){
-				ad+="_zb_"+(jQuery.inArray(text,zb_adv)+1);
-			}
-			if (jQuery.inArray(text,win_adv)!=-1){
-				ad+="_win_"+(jQuery.inArray(text,win_adv)+1);
-			}
-			if (jQuery.inArray(text,any_adv)!=-1){
-				ad+="_sj_"+(jQuery.inArray(text,any_adv)+1);
-			}
-			if (jQuery.inArray(text,nj_adv)!=-1){
-				ad+="_nj_"+(jQuery.inArray(text,nj_adv)+1);
-			}
-			return ad
-		}
-	</script>
-	<!--百度统计start-->
-	{{include "/common/baiducc.html"}}
-	<!--百度统计end-->
+function fromwhere(text){
+  var ad="pc_articel_";
+  if (getinfotype(subtype)=="拟建项目"){
+    ad+="nj"
+  }
+  if (getinfotype(subtype)=="招标公告"){
+    ad+="zb"
+  }
+  if (getinfotype(subtype)=="中标公告"){
+    ad+="win"
+  }
+  if (getinfotype(subtype)=="其他"){
+    ad+="qt"
+  }
+  if (jQuery.inArray(text,zb_adv)!=-1){
+    ad+="_zb_"+(jQuery.inArray(text,zb_adv)+1);
+  }
+  if (jQuery.inArray(text,win_adv)!=-1){
+    ad+="_win_"+(jQuery.inArray(text,win_adv)+1);
+  }
+  if (jQuery.inArray(text,any_adv)!=-1){
+    ad+="_sj_"+(jQuery.inArray(text,any_adv)+1);
+  }
+  if (jQuery.inArray(text,nj_adv)!=-1){
+    ad+="_nj_"+(jQuery.inArray(text,nj_adv)+1);
+  }
+  return ad
+}
+</script>
+<script>
+  // 附件下载
+  function goDownload(url) {
+    if (!loginflag) {
+      openLoginDig()
+      return
+    }
+    // 免费用户 
+    if (window.isFree) {
+      // 判断有无体验过 0:未体验过
+      if (window.freeFile == 0) {
+        // 判断有无留过资 且未体验过 - 去留资
+        vm.source = 'article_attach_freeuser'
+        vm.calcTitleText('article_attach_freeuser')
+        vm.showForm = true
+        vm.getOldInfo()
+        // vm.isNeedSubmit('article_attach_freeuser', function() {})
+      } else if (window.freeFile > 0 ){
+        // 留过资 更新下载次数 进入附件下载页面
+        location.href = url
+      } else {
+        // 免费用户 体验过 下载次数为-1 弹框提醒跳至超级订阅购买页
+        bidVue.$alert('点击附件即为下载,系统会扣除当月附件下载次数;每月下载次数有限,次月清零,请合理使用。', '开通超级订阅', {
+          showClose:false,
+          center: true,
+          confirmButtonText: '去开通',
+          customClass: 'custom-alert',
+          showCancelButton: true,
+          confirmButtonClass: 'custom-confirm-btn',
+          cancelButtonClass: 'custom-cancel-btn'
+        }).then(function(){
+          location.href = '/swordfish/page_big_pc/free/svip/buy'
+        }).catch(function(){});
+      }
+    } else {
+      // 付费用户
+      // 大会员用户 有下载权限
+      if (window.memberPower.indexOf(3) > -1) {
+        location.href = url
+        return
+      }
+      // 超级订阅用户
+      if (window.vipStatus > 0) {
+        // 是新超级订阅用户
+        if (window.viper) {
+          // 有下载次数
+          if (window.fileNum > 0) {
+            location.href = url
+          } else {
+            // 次数用完提醒联系客服
+            bidVue.$confirm('您本月查看机会已经消耗完毕,如需要更多服务,请前往联系客服。', {
+              showClose:false,
+              center: true,
+              confirmButtonText: '联系客服',
+              customClass: 'custom-alert',
+              showCancelButton: true,
+              confirmButtonClass: 'custom-confirm-btn',
+              cancelButtonClass: 'custom-cancel-btn'
+            }).then(function(data){
+              $('.open-customer').trigger('click')
+              $('body').trigger('click')
+            }).catch(function(){});
+          }
+        } else {
+          // 老超级订阅用户 提醒升级
+          bidVue.$alert('对不起,暂无权限,您可升级超级订阅解锁附件下载', '升级超级订阅', {
+            showClose:false,
+            center: true,
+            confirmButtonText: '前往升级',
+            customClass: 'custom-alert',
+            showCancelButton: true,
+            confirmButtonClass: 'custom-confirm-btn',
+            cancelButtonClass: 'custom-cancel-btn'
+          }).then(function(){
+            location.href = '/swordfish/page_big_pc/free/svip/buy?type=upgrade'
+          }).catch(function(){});
+        }
+        return
+      }
+      //  是大会员自定义版本没有下载权限 或 非超级订阅的商机管理用户 (弹框提醒联系客服)
+      if ((window.memberStatus > 0 &&  window.memberPower.indexOf(3) == -1) || (window.vipStatus <=0 && window.entniche)) {
+        bidVue.$alert('对不起,暂无权限,请联系客服', {
+          showClose:false,
+          center: true,
+          confirmButtonText: '我知道了',
+          customClass: 'custom-alert',
+          showCancelButton: true,
+          confirmButtonClass: 'custom-alert-btn'
+        });
+        return
+      }
+    }
+  }
+  // 获取附件内容
+  function getFileData () {
+    $.ajax({
+      type:'post',
+      url:'/bigmember/attachment/get',
+      data:{
+        infoId:{{.T.obj._id}}
+      },
+      success:function(data){
+        // TODO 留资判断
+        if(data.data && data.data.attachment !=null && data.data.attachment.length!==0){
+          var html = ''
+          for(var i=0;i<data.data.attachment.length;i++) {
+            html += "<div class='downs'>"+"<a class='menu_list' style='text-decoration:underline;color: #2CB7CA' onclick='goDownload(\""+data.data.attachment[i].downurl+"\")'>"+(i+1)+"."+data.data.attachment[i].filename+"</a></div>"
+          }
+          if(html!==""){
+            $("#attach-list").css("display","").find(".download-list").html(html)
+          }
+        }
+      }
+    });
+  }
+  // 根据isAdd接口 展示附件部分dom
+  function showFileSomeDom () {
+    // 免费用户展示可下载一次提示(免费用户且没有体验过附件下载权益的展示)
+    if (window.isFree && window.freeFile == 0) {
+      $('.free-download').css('display', 'inline-block')
+    }
+    // 新超级订阅用户
+    if (window.vipStatus > 0 && window.viper) {
+      $('.super-vip-show').show()
+      $('.super-vip-show .file-count').html(window.fileNum)
+    }
+  }
+  $(function() {
+    getFileData();
+    // 定时取login.js里isAdd接口返回的用户身份(暴露给window变量) 取到清除定时器
+    var timer = null
+    clearInterval(timer)
+    timer = setInterval(() => {
+      if (window.isLogin) {
+        console.log(window.vipStatus, window.isFree,window.freeFile,window.viper, window.entniche, window.memberStatus,window.memberPower,'11')
+        showFileSomeDom()
+        clearInterval(timer)
+      }
+    }, 1000);
+    // 下载提示
+    $('.file-icon-help').click(function() {
+      bidVue.$alert('点击附件即为下载,系统会扣除当月附件下载次数;每月下载次数有限,次月清零,请合理使用。',  {
+        showClose:false,
+        center: true,
+        confirmButtonText: '我知道了',
+        customClass: 'custom-alert',
+        confirmButtonClass: 'custom-alert-btn'
+      });
+    })
+    // 免费下载一次点击
+    $('.free-download').click(function() {
+      vm.source = 'article_attach_freeuser'
+      vm.calcTitleText('article_attach_freeuser')
+      vm.showForm = true
+      vm.getOldInfo()
+    })
+  })
+</script>
+<!--百度统计start-->
+{{include "/common/baiducc.html"}}
+<!--百度统计end-->
 </body>
 </html>