|
@@ -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>
|
|
|
|