|
@@ -20,7 +20,7 @@ var subScribeTemplate = `
|
|
|
</div>
|
|
|
</li>
|
|
|
<li class="body-item industry">
|
|
|
- <a class="item-container" :href="linkobj.industry" @click="userNoIndustry">
|
|
|
+ <a class="item-container" :href="linkobj.industry" @click="userNoIndustry($event)">
|
|
|
<div class="item">
|
|
|
<span class="item-l">
|
|
|
<span class="leading jy-icon-industry"></span>
|
|
@@ -63,7 +63,7 @@ var subScribeTemplate = `
|
|
|
</a>
|
|
|
</li>
|
|
|
<li class="body-item info-type">
|
|
|
- <a class="item-container" href="javascript:;" :thisHref="linkobj.infotype" @click="openInfoType">
|
|
|
+ <a class="item-container" :href="linkobj.infotype" @click="openInfoType($event)">
|
|
|
<div class="item">
|
|
|
<span class="item-l">
|
|
|
<span class="leading jy-icon-info-type"></span>
|
|
@@ -637,23 +637,21 @@ var subComponent = {
|
|
|
}]
|
|
|
});
|
|
|
},
|
|
|
- // 用户未购买修改采购单位类型功能
|
|
|
userNoIndustry: function () {
|
|
|
- if (this.vSwitch !== 'f') {
|
|
|
- var href = '/jyapp/vipsubscribe/toChangeIndustry?header=save'
|
|
|
- } else {
|
|
|
+ if (this.vSwitch === 'f') {
|
|
|
if (location.href.indexOf('front') !== -1) {
|
|
|
var href = '/front/vipsubscribe/introducePage'
|
|
|
} else {
|
|
|
var href = '/jyapp/vipsubscribe/introducePage'
|
|
|
}
|
|
|
+ this.linkobj.industry = href
|
|
|
}
|
|
|
- this.linkobj.industry = href
|
|
|
},
|
|
|
// 修改地区无次数点击事件
|
|
|
userNumOver: function () {
|
|
|
var _this = this
|
|
|
if (this.vSwitch === 'f' && this.userAreaNum === 0) {
|
|
|
+ // 免费用户修改href跳转
|
|
|
this.linkobj.area = 'javascript:;'
|
|
|
if (this.userAreaAllNum > 0) {
|
|
|
var str = `对不起,您当月修改区域的机会(${this.userAreaAllNum}次)已消耗完毕,无法再次修改~可前往升级省份订阅包增加订阅省份和修改次数`
|
|
@@ -686,8 +684,7 @@ var subComponent = {
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
- }
|
|
|
- else {
|
|
|
+ } else {
|
|
|
// this.linkobj.area = '/jyapp/big/page/set_area?callback=setting_save'
|
|
|
if (this.vSwitch === 'f') {
|
|
|
if (location.href.indexOf('front') !== -1) {
|
|
@@ -714,16 +711,10 @@ var subComponent = {
|
|
|
});
|
|
|
},
|
|
|
// 打开信息类型
|
|
|
- openInfoType: function () {
|
|
|
+ openInfoType: function (e) {
|
|
|
if (this.vSwitch === 'f') {
|
|
|
+ e.preventDefault()
|
|
|
this.infoTypeMenu = true
|
|
|
- } else {
|
|
|
- if (location.href.indexOf('front') !== -1) {
|
|
|
- location.href = '/front/vipsubscribe/toSetInfoTypePage'
|
|
|
- } else {
|
|
|
- location.href = '/jyapp/vipsubscribe/toSetInfoTypePage'
|
|
|
- }
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
// 重置信息类型
|