소스 검색

fix: 大会员权限判断

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 4 달 전
부모
커밋
3ea29dea84
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/web/staticres/common-module/vipsubscribe/js/vip-free-introduce-template.js
  2. 1 1
      src/web/templates/pc/subscribe_new.html

+ 1 - 1
src/web/staticres/common-module/vipsubscribe/js/vip-free-introduce-template.js

@@ -77,7 +77,7 @@ var vipFreeIntroduceNode = {
       })
     },
     goBuyMember: function () {
-      if(this.userInfo?.memberStatus) {
+      if(this.userInfo?.memberStatus && this.userInfo?.memberStatus > 0) {
         window.location.href = '/jy_mobile/tabbar/home'
       } else {
         window.location.href = '/jy_mobile/order/create/bigmember?meal=sj'

+ 1 - 1
src/web/templates/pc/subscribe_new.html

@@ -688,7 +688,7 @@
         }
         getUserInfo()
         $('.contrast-main-line span').click(function () {
-          if(userInfo && userInfo.memberStatus) {
+          if(userInfo?.memberStatus && userInfo.memberStatus > 0) {
             location.href = '/page_workDesktop/work-bench/app/big/workspace/dashboard'
           } else {
             location.href = '/swordfish/page_big_pc/big/pc/page/buy_commit'