Browse Source

fix: 免费用户引流超级订阅跳转修改

cuiyalong 3 years ago
parent
commit
b4db9ee307

+ 1 - 1
src/jfw/modules/app/src/web/templates/areaPack/page_set_area.html

@@ -122,7 +122,7 @@
                 <div class="string"></div>
                 <div class="selectNumList">
                     <span>已选择<span class="numColor" id="thisSelect">${ selectedAreaText }</span></span>
-                    <span class="moreTips" v-show="moreThanSubCount">超出可订阅省份数量,前往${ buyType }省份订阅包 &gt;</span>
+                    <span class="moreTips" v-show="moreThanSubCount" @click="toPay">超出可订阅省份数量,前往${ buyType }省份订阅包 &gt;</span>
                 </div>
                 <div class="selectChange"></div>
             </div>

+ 12 - 14
src/web/staticres/common-module/vipsubscribe/js/vip-subscribe-set-template.js

@@ -445,12 +445,7 @@ var subComponent = {
       if (this.vSwitch === 'f') {
         $('.switch').removeClass('checked')
         this.checkedflag = false
-        if (location.href.indexOf('front') !== -1) {
-          var href = '/front/vipsubscribe/introducePage'
-        } else {
-          var href = '/jyapp/vipsubscribe/introducePage'
-        }
-        location.href = href
+        this.toBuyVipSub()
       } else {
         // switch点击切换
         if (!this.checkedflag) {
@@ -550,12 +545,7 @@ var subComponent = {
       let vswitch = 'v'
       var href = ''
       if (index === 2 && this.vSwitch === 'f') {
-        if (location.href.indexOf('front') !== -1) {
-          href = '/front/vipsubscribe/introducePage'
-        } else {
-          href = '/jyapp/vipsubscribe/introducePage'
-        }
-        location.href = href
+        this.toBuyVipSub()
       } else {
 
         if (this.vSwitch === 'f') {
@@ -639,9 +629,9 @@ var subComponent = {
     userNoIndustry: function () {
       if (this.vSwitch === 'f') {
         if (location.href.indexOf('front') !== -1) {
-          var href = '/front/vipsubscribe/introducePage'
+          var href = '/front/vipsubscribe/vipsubscribe_new'
         } else {
-          var href = '/jyapp/vipsubscribe/introducePage'
+          var href = '/jyapp/vipsubscribe/vipsubscribe_new'
         }
         this.linkobj.industry = href
       }
@@ -879,6 +869,14 @@ var subComponent = {
         }
       })
     },
+    toBuyVipSub: function () {
+      if (location.href.indexOf('front') !== -1) {
+        var href = '/front/vipsubscribe/vipsubscribe_new'
+      } else {
+        var href = '/jyapp/vipsubscribe/vipsubscribe_new'
+      }
+      location.href = href
+    },
     // 解决ios返回不刷新页面的问题
     iosBackRefresh: function () {
       var isPageHide = false;

+ 1 - 1
src/web/templates/areaPack/wx/page_set_area.html

@@ -122,7 +122,7 @@
                 <div class="string"></div>
                 <div class="selectNumList">
                     <span>已选择<span class="numColor" id="thisSelect">${ selectedAreaText }</span></span>
-                    <span class="moreTips" v-show="moreThanSubCount">超出可订阅省份数量,前往${ buyType }省份订阅包 &gt;</span>
+                    <span class="moreTips" v-show="moreThanSubCount" @click="toPay">超出可订阅省份数量,前往${ buyType }省份订阅包 &gt;</span>
                 </div>
                 <div class="selectChange"></div>
             </div>