|
@@ -925,9 +925,9 @@
|
|
|
<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">本月剩余:<i class="file-count"></i> 个</span>
|
|
|
+ <span class="file-count-tip">本月剩余: <i class="file-count"></i>个</span>
|
|
|
<img class="file-icon-help" src="/images/help-b.png" alt="">
|
|
|
- <span class="concat-kf open-customer">联系客服</span>
|
|
|
+ <span class="concat-kf recharge-new">立即充值</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="download-list" style="margin-top: 20px">
|
|
@@ -3474,18 +3474,41 @@ function fromwhere(text){
|
|
|
function cjdyDownload (fname) {
|
|
|
$.ajax({
|
|
|
type:'post',
|
|
|
- url:'/publicapply/attachment/get',
|
|
|
+ //url:'/publicapply/attachment/get',
|
|
|
+ url:'/jypay/resourcePack/consumePack',
|
|
|
data:{
|
|
|
- infoId:{{.T.obj._id}}
|
|
|
+ id:{{.T.obj._id}},
|
|
|
+ productName:"附件下载包",
|
|
|
+ platform:"PC",
|
|
|
+ fileName:fname,
|
|
|
+ title:{{.T.obj.title}}
|
|
|
},
|
|
|
success:function(data){
|
|
|
- if(data.data && data.data.attachment !=null && data.data.attachment.length!==0){
|
|
|
- for(var i=0;i<data.data.attachment.length;i++) {
|
|
|
- //console.log(fname)
|
|
|
- if(fname == data.data.attachment[i].filename){
|
|
|
- goDownload(data.data.attachment[i].downurl)
|
|
|
+ if(data){
|
|
|
+ if ((data.m && data.m!="")||data.r["downUrl"]==undefined||data.r["downUrl"]==""){
|
|
|
+ bidVue.$confirm('附件下载异常,请前往联系客服。', {
|
|
|
+ showClose:false,
|
|
|
+ center: true,
|
|
|
+ confirmButtonText: '取消',
|
|
|
+ customClass: 'custom-alert',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonClass: 'custom-cancel-btn',
|
|
|
+ cancelButtonClass: 'custom-confirm-btn',
|
|
|
+ cancelButtonText: '联系客服'
|
|
|
+ }).then(function(data){
|
|
|
+
|
|
|
+ }).catch(function(){
|
|
|
+ $('.open-customer').trigger('click')
|
|
|
+ $('body').trigger('click')
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ if(data.r&&fname == data.r["fileName"]){
|
|
|
+ if (!data.r["isExists"]){
|
|
|
+ $(".file-count").text($(".file-count").text()-1);
|
|
|
+ }
|
|
|
+ goDownload(data.r["downUrl"])
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -3640,6 +3663,10 @@ function fromwhere(text){
|
|
|
if (window.vipStatus > 0 && window.viper) {
|
|
|
$('.super-vip-show').show()
|
|
|
$('.super-vip-show .file-count').html(window.fileNum)
|
|
|
+ $('.recharge-new').unbind("click").bind("click",function(){
|
|
|
+ //超级订阅附件下载立即充值页面
|
|
|
+ window.open("")
|
|
|
+ })
|
|
|
}
|
|
|
// 大会员隐藏次数
|
|
|
if(window.memberStatus >0 && window.memberPower.indexOf(3) >= 0){
|