|
@@ -38,9 +38,6 @@ var subNode = new Vue({
|
|
this.$nextTick(function () {
|
|
this.$nextTick(function () {
|
|
$(".app-layout-content-b").removeAttr('v-cloak')
|
|
$(".app-layout-content-b").removeAttr('v-cloak')
|
|
})
|
|
})
|
|
- // this.userAreaNum = 0
|
|
|
|
- // this.userType = true
|
|
|
|
- // this.userAreaAllNum = 1
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 省份订阅包续费
|
|
// 省份订阅包续费
|
|
@@ -62,7 +59,6 @@ var subNode = new Vue({
|
|
_this.userAreaNum = res.data.areanum
|
|
_this.userAreaNum = res.data.areanum
|
|
_this.userType = res.data.provincenum === 0 ? false : true
|
|
_this.userType = res.data.provincenum === 0 ? false : true
|
|
_this.userAreaAllNum = res.data.provincenum === -1 ? '全国' : res.data.provincenum
|
|
_this.userAreaAllNum = res.data.provincenum === -1 ? '全国' : res.data.provincenum
|
|
- // _this.$emit('UserSubscribe',res)
|
|
|
|
_this.subscribeTime = new Date(res.data.ppstart * 1000).pattern('yyyy年MM月dd日') + "-" + new Date(res.data.ppend * 1000).pattern('yyyy年MM月dd日')
|
|
_this.subscribeTime = new Date(res.data.ppstart * 1000).pattern('yyyy年MM月dd日') + "-" + new Date(res.data.ppend * 1000).pattern('yyyy年MM月dd日')
|
|
_this.initdata = res.data
|
|
_this.initdata = res.data
|
|
}
|
|
}
|
|
@@ -147,11 +143,6 @@ var subNode = new Vue({
|
|
if(res.data) {
|
|
if(res.data) {
|
|
_this.vSwitch = res.data.vt || 'f'
|
|
_this.vSwitch = res.data.vt || 'f'
|
|
// f 免费 m 大会员 v 超级订阅
|
|
// f 免费 m 大会员 v 超级订阅
|
|
- if (_this.vSwitch === 'f') {
|
|
|
|
- // 判断是否购买省份订阅包
|
|
|
|
- _this.getUserSubscribe()
|
|
|
|
- $('.update_renew').hide()
|
|
|
|
- }
|
|
|
|
if(res.data.vt == 'm') {
|
|
if(res.data.vt == 'm') {
|
|
_this.vipLink = 'javascript:;'
|
|
_this.vipLink = 'javascript:;'
|
|
_this.arrowShow = false
|
|
_this.arrowShow = false
|
|
@@ -173,6 +164,17 @@ var subNode = new Vue({
|
|
if(bms) {
|
|
if(bms) {
|
|
_this.memberStatus = bms
|
|
_this.memberStatus = bms
|
|
}
|
|
}
|
|
|
|
+ if (_this.vSwitch === 'f') {
|
|
|
|
+ // 判断是否购买省份订阅包
|
|
|
|
+ _this.getUserSubscribe()
|
|
|
|
+ $('.update_renew').hide()
|
|
|
|
+ } else {
|
|
|
|
+ $DoPost('/subscribepay/vipsubscribe/getSubBuyMsg', {}, function(sum) {
|
|
|
|
+ if(sum.success) {
|
|
|
|
+ getDataWitXHR(sum)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -304,9 +306,8 @@ $(function () {
|
|
}
|
|
}
|
|
$(".list-content").html(returnHtml);
|
|
$(".list-content").html(returnHtml);
|
|
}
|
|
}
|
|
- function getDataWitXHR() {
|
|
|
|
|
|
+ window.getDataWitXHR = function (res) {
|
|
$DoPost(subNode.subInfoAjax, {}, function (r) {
|
|
$DoPost(subNode.subInfoAjax, {}, function (r) {
|
|
- let res = resObj
|
|
|
|
let switchProduct = sessionStorage.getItem('switch-product')
|
|
let switchProduct = sessionStorage.getItem('switch-product')
|
|
if(switchProduct) {
|
|
if(switchProduct) {
|
|
if(switchProduct == 'bigmember') {
|
|
if(switchProduct == 'bigmember') {
|
|
@@ -360,15 +361,6 @@ $(function () {
|
|
init(res.data)
|
|
init(res.data)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- var resObj = {}
|
|
|
|
- // 每次请求接口
|
|
|
|
- let subUrl = '/subscribepay/vipsubscribe/getSubBuyMsg'
|
|
|
|
- $DoPost(subUrl, {}, function(sum) {
|
|
|
|
- if(sum.success) {
|
|
|
|
- resObj = sum
|
|
|
|
- getDataWitXHR()
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
|
|
// 设置已选择的区域和行业
|
|
// 设置已选择的区域和行业
|
|
function setSelectedAreaAndInd(selected) {
|
|
function setSelectedAreaAndInd(selected) {
|