瀏覽代碼

fix:关键词设置调整

tangshizhe 2 年之前
父節點
當前提交
b65f3f2059
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      src/web/staticres/common-module/report-analysis/js/report_analysis.js

+ 10 - 2
src/web/staticres/common-module/report-analysis/js/report_analysis.js

@@ -1800,10 +1800,18 @@ var vm = new Vue({
     },
     toSubManage: function () {
       this.isWeixin = utils.isWeiXinBrowser
+      let rootlink = 'f'
+      if (this.powerInfo.memberStatus > 0) {
+        rootlink = 'm'
+      } else if (this.powerInfo.vipStatus > 0) {
+        rootlink = 'v'
+      } else {
+        rootlink = 'f'
+      }
       if(this.isWeixin) {
-        location.href = '/front/vipsubscribe/toSetKeyWordPage?vSwitch=m'
+        location.href = '/front/vipsubscribe/toSetKeyWordPage?vSwitch=' + rootlink
       } else {
-        location.href = '/jyapp/vipsubscribe/toSetKeyWordPage?vSwitch=m'
+        location.href = '/jyapp/vipsubscribe/toSetKeyWordPage?vSwitch=' + rootlink
       }
     },
     toArticleContent (item) {