|
@@ -2225,61 +2225,74 @@
|
|
|
}
|
|
|
} else {
|
|
|
// 付费用户
|
|
|
- // 有个数
|
|
|
- if( window.downloadNum > 0) {
|
|
|
- // 大会员、商机管理下载
|
|
|
- if (window.memberStatus > 0 || window.entniche ) {
|
|
|
- if(mySysIsIos()){
|
|
|
- iosShow(url,fileName,size,false)
|
|
|
- } else {
|
|
|
- downloadFileAjax(fileName)
|
|
|
- }
|
|
|
- return
|
|
|
+ // 大会员用户 且有附件下载个数
|
|
|
+ if (window.memberStatus > 0) {
|
|
|
+ if(mySysIsIos()){
|
|
|
+ iosShow(url,fileName,size,false)
|
|
|
+ } else {
|
|
|
+ downloadFileAjax(fileName)
|
|
|
+ // location.href = url
|
|
|
}
|
|
|
- // 超级订阅用户
|
|
|
- if (window.vipStatus > 0) {
|
|
|
- // 是新超级订阅用户
|
|
|
- if (window.viper) {
|
|
|
- // IOS APP端特殊流程处理,先提示填写邮箱后扣次数
|
|
|
- if(mySysIsIos()) {
|
|
|
- return iosShow(url, fileName,size,false)
|
|
|
- } else {
|
|
|
- downloadFileAjax(fileName)
|
|
|
- }
|
|
|
- return
|
|
|
- } else {
|
|
|
- // 老超级订阅用户 提醒升级
|
|
|
- vant.Dialog.confirm({
|
|
|
- title: '升级超级订阅',
|
|
|
- message: '对不起,暂无权限,您可升级超级订阅解锁附件下载',
|
|
|
- showCancelButton: true,
|
|
|
- confirmButtonText: '前往升级',
|
|
|
- confirmButtonColor: '#2ABDD1',
|
|
|
- className: 'custom-dialog',
|
|
|
- width: 303
|
|
|
- }).then(() => {
|
|
|
- //跳转清除旧套餐缓存,防止计算价格出错
|
|
|
- sessionStorage.removeItem('vipSub_oldBuySet')
|
|
|
- // location.href = '/jyapp/vipsubscribe/upgradePage'
|
|
|
- location.href = '/jy_mobile/common/order/create/svip?type=upgrade'
|
|
|
- }).catch(() => {})
|
|
|
- return
|
|
|
+ return
|
|
|
+ }
|
|
|
+ // 超级订阅用户
|
|
|
+ if (window.vipStatus > 0) {
|
|
|
+ // 是新超级订阅用户
|
|
|
+ if (window.viper) {
|
|
|
+ // IOS APP端特殊流程处理,先提示填写邮箱后扣次数
|
|
|
+ if(mySysIsIos()) {
|
|
|
+ return iosShow(url, fileName,size,false)
|
|
|
}
|
|
|
- }
|
|
|
- } else {
|
|
|
- // 是大会员自定义版本没有下载权限 或 非超级订阅的商机管理用户 (弹框提醒联系客服)
|
|
|
- var memberNoVip = window.isNoMember == true && !(window.vipStatus >0 && window.viper)
|
|
|
- if (memberNoVip || (window.vipStatus <=0 && window.entniche)) {
|
|
|
- vant.Dialog.alert({
|
|
|
- message: '您未购买此服务,如需使用请联系您的客户经理或客服升级套餐,谢谢!',
|
|
|
- className: 'custom-dialog',
|
|
|
- confirmButtonText: '我知道了',
|
|
|
+ downloadFileAjax(fileName)
|
|
|
+ return
|
|
|
+ //if (window.fileNum <= 0) {
|
|
|
+ //}else{
|
|
|
+ //window.fileNum = window.fileNum - 1;
|
|
|
+ //gotoFilePageOfVip($(this).find('a').text())
|
|
|
+ //return
|
|
|
+ //}
|
|
|
+ } else {
|
|
|
+ // 老超级订阅用户 提醒升级
|
|
|
+ vant.Dialog.confirm({
|
|
|
+ title: '升级超级订阅',
|
|
|
+ message: '对不起,暂无权限,您可升级超级订阅解锁附件下载',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '前往升级',
|
|
|
confirmButtonColor: '#2ABDD1',
|
|
|
- width: 303,
|
|
|
- }).then(() => {})
|
|
|
+ className: 'custom-dialog',
|
|
|
+ width: 303
|
|
|
+ }).then(() => {
|
|
|
+ //跳转清除旧套餐缓存,防止计算价格出错
|
|
|
+ sessionStorage.removeItem('vipSub_oldBuySet')
|
|
|
+ // location.href = '/jyapp/vipsubscribe/upgradePage'
|
|
|
+ location.href = '/jy_mobile/common/order/create/svip?type=upgrade'
|
|
|
+ }).catch(() => {})
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ // 商机管理用户只要有个数就有下载权限
|
|
|
+ if(window.entniche && window.downloadNum > 0){
|
|
|
+ if(mySysIsIos()){
|
|
|
+ iosShow(url,fileName,size,false)
|
|
|
+ } else {
|
|
|
+ downloadFileAjax(fileName)
|
|
|
+ }
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ // 是大会员自定义版本没有下载权限 或 非超级订阅的商机管理用户 (弹框提醒联系客服)
|
|
|
+ var memberNoVip = window.isNoMember == true && !(window.vipStatus >0 && window.viper)
|
|
|
+ if (memberNoVip || (window.vipStatus <=0 && window.entniche)) {
|
|
|
+ vant.Dialog.alert({
|
|
|
+ message: '您未购买此服务,如需使用请联系您的客户经理或客服升级套餐,谢谢!',
|
|
|
+ className: 'custom-dialog',
|
|
|
+ confirmButtonText: '我知道了',
|
|
|
+ confirmButtonColor: '#2ABDD1',
|
|
|
+ width: 303,
|
|
|
+ }).then(() => {
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
if(userId) {
|