|
@@ -1534,8 +1534,13 @@ function isOpening() {
|
|
|
//console.log(res)
|
|
|
bigstatus = res.data.memberStatus
|
|
|
powerArr = res.data.power
|
|
|
+ // 是大会员没有下载权限
|
|
|
+ if (bigstatus > 0 && powerArr.indexOf(3) == -1) {
|
|
|
+ window.isNoMember = true
|
|
|
+ }
|
|
|
+ // 是大会员 有下载权限
|
|
|
if (bigstatus > 0 && powerArr.indexOf(3) > -1) {
|
|
|
- window.isMemberAndPower = true
|
|
|
+ window.isMemberAndPower = true
|
|
|
}
|
|
|
window.isFree = res.data.isFree // 是否是免费用户
|
|
|
window.freeFile = res.data.freeFile // 免费用户 是否体验过 0:未体验过 -1:体验过
|
|
@@ -1563,7 +1568,8 @@ function isOpening() {
|
|
|
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) {
|
|
|
+ //非大会员或大会员无此功能 且是新超级订阅用户
|
|
|
+ if (res.data && res.data.vipStatus > 0 && res.data.viper&&!window.isMemberAndPower) {
|
|
|
$('.file-count-tip').css('display', 'inline-block')
|
|
|
$('.concat-kf').css('display', 'inline-block')
|
|
|
$('.icon-help').css('display', 'inline-block')
|
|
@@ -1623,39 +1629,87 @@ function andownload() {
|
|
|
|
|
|
$('.download-list>ul').append(html)
|
|
|
$('.downs').on('click', function(){
|
|
|
- // 留资判断
|
|
|
- if (window.isFree&&window.freeFile==0) {
|
|
|
+ //免费用户
|
|
|
+ if(window.isFree){
|
|
|
+ // 留资判断
|
|
|
+ if (window.freeFile==0) {
|
|
|
location.href = '/weixin/frontPage/bigmember/free/perfect_info?source=article_attach_freeuser'
|
|
|
return
|
|
|
- }
|
|
|
- //超级订阅
|
|
|
- if (window.vipStatus&&window.viper&&window.fileNum<=0){
|
|
|
- // 次数用完提醒联系客服
|
|
|
- vant.Dialog.confirm({
|
|
|
- message: '您本月查看机会已经消耗完毕,如需要更多服务,请前往联系客服。',
|
|
|
- showCancelButton: true,
|
|
|
- confirmButtonText: '联系客服',
|
|
|
- confirmButtonColor: '#2ABDD1',
|
|
|
- className: 'custom-dialog',
|
|
|
- width: 303
|
|
|
-
|
|
|
- }).then(() => {
|
|
|
- location.href = '/big/wx/page/customer'
|
|
|
- })
|
|
|
- .catch(() => {})
|
|
|
- return
|
|
|
- }
|
|
|
- //付费用户 无大会员此功能权限
|
|
|
- if (!window.isMemberAndPower&&!isFree){
|
|
|
- vant.Dialog.alert({
|
|
|
- message: '您未购买此服务,如需使用请联系您的客户经理或客服升级套餐,谢谢!',
|
|
|
- className: 'custom-dialog',
|
|
|
- confirmButtonText: '我知道了',
|
|
|
- confirmButtonColor: '#2ABDD1',
|
|
|
- closeOnClickOverlay: true,
|
|
|
- width: 303,
|
|
|
- }).then(() => {})
|
|
|
- return
|
|
|
+ }else if (window.freeFile < 0 ) {
|
|
|
+ // 免费用户 体验过 下载次数为-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(() => {})
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ // 付费用户
|
|
|
+ // 大会员用户 有下载权限
|
|
|
+ if (window.isMemberAndPower) {
|
|
|
+ if(mySysIsIos()){
|
|
|
+ iosShow(url)
|
|
|
+ } else {
|
|
|
+ location.href = url
|
|
|
+ }
|
|
|
+ return
|
|
|
+ }
|
|
|
+ //超级订阅
|
|
|
+ if (window.vipStatus>0){
|
|
|
+ //超级订阅新用户
|
|
|
+ if(window.viper){
|
|
|
+ // 次数用完提醒联系客服
|
|
|
+ if (window.fileNum<=0){
|
|
|
+ vant.Dialog.confirm({
|
|
|
+ message: '您本月查看机会已经消耗完毕,如需要更多服务,请前往联系客服。',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '联系客服',
|
|
|
+ confirmButtonColor: '#2ABDD1',
|
|
|
+ className: 'custom-dialog',
|
|
|
+ width: 303
|
|
|
+
|
|
|
+ }).then(() => {
|
|
|
+ location.href = '/big/wx/page/customer'
|
|
|
+ })
|
|
|
+ .catch(() => {})
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ //超级订阅老用户 提醒升级
|
|
|
+ vant.Dialog.confirm({
|
|
|
+ title: '升级超级订阅',
|
|
|
+ message: '对不起,暂无权限,您可升级超级订阅解锁附件下载',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '前往升级',
|
|
|
+ confirmButtonColor: '#2ABDD1',
|
|
|
+ className: 'custom-dialog',
|
|
|
+ width: 303
|
|
|
+ }).then(() => {
|
|
|
+ location.href = '/front/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
|
|
|
+ }
|
|
|
}
|
|
|
//
|
|
|
gotoFilePage($(this).find('a').text())
|