|
@@ -670,7 +670,6 @@ var subComponent = {
|
|
|
var href = '/jyapp/areaPack/page/buy?type=buy'
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
location.href = href
|
|
|
}
|
|
|
}]
|
|
@@ -678,10 +677,12 @@ var subComponent = {
|
|
|
}
|
|
|
else {
|
|
|
// this.linkobj.area = '/jyapp/big/page/set_area?callback=setting_save'
|
|
|
- if (location.href.indexOf('front') !== -1) {
|
|
|
- this.linkobj.area = '/areaPack/wx/page/set_area'
|
|
|
- } else {
|
|
|
- this.linkobj.area = '/jyapp/areaPack/page/set_area'
|
|
|
+ if (this.vSwitch === 'f') {
|
|
|
+ if (location.href.indexOf('front') !== -1) {
|
|
|
+ this.linkobj.area = '/areaPack/wx/page/set_area'
|
|
|
+ } else {
|
|
|
+ this.linkobj.area = '/jyapp/areaPack/page/set_area'
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -702,7 +703,16 @@ var subComponent = {
|
|
|
},
|
|
|
// 打开信息类型
|
|
|
openInfoType: function () {
|
|
|
- this.infoTypeMenu = true
|
|
|
+ if (this.vSwitch === 'f') {
|
|
|
+ this.infoTypeMenu = true
|
|
|
+ } else {
|
|
|
+ if (location.href.indexOf('front') !== -1) {
|
|
|
+ location.href = '/front/vipsubscribe/toSetInfoTypePage'
|
|
|
+ } else {
|
|
|
+ location.href = '/jyapp/vipsubscribe/toSetInfoTypePage'
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
},
|
|
|
// 重置信息类型
|
|
|
reset: function () {
|
|
@@ -766,7 +776,8 @@ var subComponent = {
|
|
|
url: '/publicapply/free/subscribe',
|
|
|
type: 'POST',
|
|
|
success: function (res) {
|
|
|
- console.info(res)
|
|
|
+ let freeArea = JSON.stringify(res.data)
|
|
|
+ sessionStorage.setItem('sub_free_state', freeArea)
|
|
|
_this.UserSubscribe = res
|
|
|
_this.info.area = res.data.area
|
|
|
_this.userAreaNum = res.data.areanum
|