|
@@ -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)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -432,7 +483,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content" style="">
|
|
|
- <div class="prebuilt hidden">
|
|
|
+ <div class="prebuilt hidden" style="position:relative;">
|
|
|
<div class="pre-title">项目基本信息</div>
|
|
|
<ul>
|
|
|
{{ if .T.obj.projectinfo.approvecode}}
|
|
@@ -495,6 +546,20 @@
|
|
|
</li>
|
|
|
{{end}}
|
|
|
</ul>
|
|
|
+ <div class="mask-zz" style="position:absolute; top:0;width: 380px;padding:0;height: 100%;background-color:white;z-index: 1;">
|
|
|
+ <img style="width: 100%;height: 100%" src="/images/pc/pc_mh.png">
|
|
|
+ <div class="mask-zz" style="position:absolute; left: 50%; top: 50%; margin-top: -110px;margin-left: -150px;width: 300px;height: 220px;background-color: white;z-index: 100;border-radius: 10px">
|
|
|
+ <div style="position: relative">
|
|
|
+ <img style="width: 100%;height: 30%" src="/images/pc/pc_zzt.png">
|
|
|
+ <div style="position: absolute;top: 50%;left: 50%; margin-left: -100px;width: 200px;height: 26px;color: antiquewhite;font-size: 16px;">想中标?提前介入很关键!</div>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex;flex-direction: column;justify-content: center;align-items: center;padding: 20px;">
|
|
|
+ <div style="color: #0d0d0d;font-size: 16px;font-weight: 500;margin-bottom: 5px">提前获取正在审批中的新项目,比招标信息更超前!</div>
|
|
|
+ <div style="color: #0d0d0d;font-size: 16px;font-weight: 500;margin-bottom: 20px">助您提前了解项目信息,把握重要商机!</div>
|
|
|
+ <button style="background-color: deepskyblue;color: white;border:none;width: 105px;height:30px;border-radius: 5px;margin-bottom: 20px" @click="onFree">免费体验</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="lead-btn-nj" style="color:#2cb7ca;margin:15px 0;display:none;margin-top:20px;"><div class="adv_tosieve" style="font-size:.25rem;"></div><div class="join" onclick="adv_statistics(this)" adv_name="微信三级页引导按钮"><a style="color:#fff;text-decoration:none" class="adv_tosieve-btn"></a></div></div>
|
|
|
<div class="tab-ct">
|
|
@@ -534,9 +599,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- e 大会员引流 e -->
|
|
|
- <div id="tab2">
|
|
|
- <pre id="h_content">{{Html (Regexp (Regexp .T.obj.detail "(\\n|\\\\n)\\s+" "\n") "(\\n|\\\\n)+" "<br/>")}}</pre>
|
|
|
- </div>
|
|
|
+<!-- <div id="tab2">-->
|
|
|
+<!-- <pre id="h_content">{{Html (Regexp (Regexp .T.obj.detail "(\\n|\\\\n)\\s+" "\n") "(\\n|\\\\n)+" "<br/>")}}</pre>-->
|
|
|
+<!-- </div>-->
|
|
|
</div>
|
|
|
{{if .T.obj.projectinfo.attachments}}
|
|
|
<div class="pre-enclosure hidden"><img src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/images/wx/enclosure.png?v={{Msg "seo" "version"}}"/>附件(1个)</div>
|
|
@@ -555,12 +620,12 @@
|
|
|
<a class="iconarrow"></a>
|
|
|
</div>
|
|
|
<!--s 大会员引流 s-->
|
|
|
- <div class="bigvip_drain" style="background: #f5f6f7;">
|
|
|
- <div class="bigvip_text">
|
|
|
- <span class="bigvip_ad">想让剑鱼帮你找合作伙伴吗?</span>
|
|
|
- <span class="bigvip_btn">点这里</span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+<!-- <div class="bigvip_drain" style="background: #f5f6f7;">-->
|
|
|
+<!-- <div class="bigvip_text">-->
|
|
|
+<!-- <span class="bigvip_ad">想让剑鱼帮你找合作伙伴吗?</span>-->
|
|
|
+<!-- <span class="bigvip_btn">点这里</span>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </div>-->
|
|
|
<!-- e 大会员引流 e -->
|
|
|
<div class="atta-download" style="display:none;height: 1.2rem;background: #F5F6F7;border-radius: 8px; color:#2cb7ca;margin-top: 16px; align-items: center;padding: 0 .32rem;" onclick="adv_statistics(this)">
|
|
|
<a class="adv_dataexprt" style="width: .48rem; height: .48rem;margin-right: .24rem;display: flex;"></a>
|
|
@@ -577,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>
|
|
@@ -934,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()
|
|
@@ -980,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)
|
|
@@ -996,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)
|
|
@@ -1009,6 +1092,22 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ //是否显示遮罩层
|
|
|
+ function checkShowDialog (res) {
|
|
|
+ var bidmember = false
|
|
|
+ var entniche = false
|
|
|
+ var vip = 0
|
|
|
+ bidmember = res.data.member
|
|
|
+ entniche = res.data.entniche
|
|
|
+ vip = res.data.vip
|
|
|
+ var subType = {{.T.obj.subtype}}
|
|
|
+ if (subType == '拟建' && !bidmember && !entniche && vip <=0){
|
|
|
+ // if (subType == '拟建' && entniche == false){
|
|
|
+ $('.mask-zz').show()
|
|
|
+ } else {
|
|
|
+ $('.mask-zz').hide()
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
// 判断账户权限
|
|
|
function getAccountInfo () {
|
|
@@ -1017,11 +1116,12 @@
|
|
|
url: '/publicapply/bidcoll/power',
|
|
|
success: function(res) {
|
|
|
if(res.error_code == 0) {
|
|
|
+ checkShowDialog(res)
|
|
|
if(res.data) {
|
|
|
drainPower = res.data
|
|
|
- if (!res.data.member) {
|
|
|
- window.isNoMember = true
|
|
|
- }
|
|
|
+ // if (!res.data.member) {
|
|
|
+ // window.isNoMember = true
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -1072,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
|
|
|
}
|
|
@@ -1106,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{
|
|
@@ -1194,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
|
|
@@ -1255,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")
|
|
@@ -1289,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 != "" ){
|
|
@@ -1769,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:'中标企业预测',
|
|
@@ -2166,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')
|
|
@@ -2174,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"}}
|