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