Эх сурвалжийг харах

feat:wx推送设置免费订阅入口权限判断

tsz 2 жил өмнө
parent
commit
8dd949401c

+ 5 - 4
src/web/staticres/me/js/push_setting.js

@@ -165,19 +165,20 @@ var pushSettingVueConf = {
             this.getUserInfo(function (info) {
                 // console.log(info)
                 if (_this.userInfo.subscribeVip > 0) {
-                    _this.settingList[0].show = false
                     _this.settingList[1].show = true
                 } else {
-                    _this.settingList[0].show = true
                     _this.settingList[1].show = false
                 }
                 if (_this.userInfo.bigmemberVip > 0) {
-                  _this.settingList[0].show = false
                   _this.settingList[4].show = true
                 } else {
-                  _this.settingList[0].show = true
                   _this.settingList[4].show = false
                 }
+                if (_this.userInfo.subscribeVip < 0 && _this.userInfo.bigmemberVip < 0) {
+                  _this.settingList[0].show = true
+                } else {
+                  _this.settingList[0].show = false
+                }
             })
         },
         toSettingDetail: function (item) {