|
@@ -138,7 +138,9 @@ var keySet = new Vue({
|
|
|
// 关键词数组
|
|
|
keyList: [],
|
|
|
loading: '',
|
|
|
- swiper: ''
|
|
|
+ swiper: '',
|
|
|
+ userNewType: false, // 1为新用户.0为老用户
|
|
|
+ tipsType: false // 提示升级弹窗状态
|
|
|
},
|
|
|
computed: {
|
|
|
reverseList: function () {
|
|
@@ -150,6 +152,7 @@ var keySet = new Vue({
|
|
|
created: function () {
|
|
|
this.getKeyList()
|
|
|
sessionStorage.removeItem('free-keyset-detail')
|
|
|
+ this.getUserType()
|
|
|
},
|
|
|
mounted: function () {
|
|
|
pTools.iosBackRefresh()
|
|
@@ -358,7 +361,11 @@ var keySet = new Vue({
|
|
|
if (index === -1) {
|
|
|
index = this.keyList.length
|
|
|
}
|
|
|
- location.href = '/wxkeyset/keyset/filterset?type=' + type + '&index=' + index
|
|
|
+ if (!this.userNewType) {
|
|
|
+ this.tipsType = true
|
|
|
+ } else {
|
|
|
+ location.href = '/wxkeyset/keyset/filterset?type=' + type + '&index=' + index
|
|
|
+ }
|
|
|
},
|
|
|
// 调整底部按钮距离
|
|
|
adjustAddButtonPadding: function () {
|
|
@@ -377,6 +384,25 @@ var keySet = new Vue({
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+ // 获取用户权限
|
|
|
+ getUserType: function () {
|
|
|
+ let _this = this
|
|
|
+ $.ajax({
|
|
|
+ url: '/bigmember/use/isAdd',
|
|
|
+ type: 'POST',
|
|
|
+ success: function (res) {
|
|
|
+ _this.userNewType = res.data.isUpgrade
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ hiddenTips: function () {
|
|
|
+ this.tipsType = false
|
|
|
+ },
|
|
|
+ updateJump: function () {
|
|
|
+ this.tipsType = false
|
|
|
+ // location.replace('/jyapp/vipsubscribe/toSubVipSetPage?vSwitch=v')
|
|
|
+ location.replace('/front/vipsubscribe/toSubVipSetPage')
|
|
|
+ },
|
|
|
// 清除订阅页面缓存
|
|
|
clearHistoryPushDataCache: function () {
|
|
|
sessionStorage.removeItem('historypushDataCache')
|