Explorar o código

feat:大会员且有附件下载个数既可下载

zhangsiya hai 1 ano
pai
achega
b58c63dfd3

+ 3 - 2
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -1421,6 +1421,7 @@
                 window.viper = res.data.viper // 是否是超级订阅老用户 false:老用户 true: 新用户
                 window.entniche = res.data.entniche // 商机管理用户
                 // window.fileNum = res.data.fileNum // 超级订阅用户可下载附件次数
+                window.memberStatus = res.data.memberStatus // 大会员
                 window.isEntService = res.data.isEntService
                 bigstatus = res.data.memberStatus
                 hasServiceArr = res.data.power ? res.data.power : []
@@ -2224,8 +2225,8 @@
                         }
                       } else {
                         // 付费用户
-                        // 大会员用户 有下载权限
-                        if (window.isMemberAndPower) {
+                        // 大会员用户 且有附件下载个数
+                        if (window.memberStatus > 0 && window.downloadNum > 0) {
                           if(mySysIsIos()){
                             iosShow(url,fileName,size,false)
                           } else {

+ 3 - 15
src/web/templates/weixin/wxinfocontent_rec.html

@@ -2052,6 +2052,7 @@ function isOpening() {
           window.viper = res.data.viper // 是否是超级订阅老用户 false:老用户 true: 新用户
           window.entniche = res.data.entniche // 商机管理用户
           window.isEntService = res.data.isEntService // 商机管理服务用户
+          window.memberStatus = res.data.memberStatus // 大会员
           // window.fileNum = res.data.fileNum // 超级订阅用户可下载附件次数
           //拟建--采购意向
           checkShowDialog()
@@ -2439,23 +2440,10 @@ function andownload() {
                     }
                   }else{
                     // 付费用户
-                    // 大会员用户 有下载权限
-                    if (window.isMemberAndPower) {
+                    // 大会员用户且有附件下载个数
+                    if (window.memberStatus > 0 && window.downloadNum > 0) {
                       downloadFileAjax(fileName)
                       return
-                      // return location.href = '/big/wx/page/open_app?type=article-file-download'
-                      // if(mySysIsIos()){
-                      //   iosShow(url)
-                      // } else {
-						// try {
-                      //     downloadFileAjax(fileName)
-						// 	openFileDown($(this).find('a').attr('data-href') || url)
-						// } catch (e) {
-						// 	console.log(e)
-						// 	openFileDown(url)
-						// }
-					  // return
-                      // }
                     }
                     //超级订阅
                     if (window.vipStatus>0){