Browse Source

fix:关键词设置调整

tangshizhe 2 years ago
parent
commit
b65f3f2059

+ 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) {