|
@@ -9,6 +9,7 @@ var vm = new Vue({
|
|
|
counts: [],
|
|
|
kfCount: 0,
|
|
|
isTabs: '',
|
|
|
+ shunted: {},
|
|
|
imgSrcs: [
|
|
|
{ type: '0', title: '全部', url: '/images/pc/quanbu@2x.png' }, { type: '1', title: '活动优惠', url: '/images/pc/huodong@2x.png' },
|
|
|
{ type: '2', title: '服务通知', url: '/images/pc/fuwu@2x.png' }, { type: '3', title: '订阅消息', url: '/images/pc/dingyue@2x.png' },
|
|
@@ -26,6 +27,8 @@ var vm = new Vue({
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.shunted = JSON.parse(localStorage.getItem('kf-shunt-data'))
|
|
|
+ console.log(this.shunted)
|
|
|
this.tabsCount()
|
|
|
this.tabsData('0')
|
|
|
this.kfData()
|
|
@@ -43,12 +46,7 @@ var vm = new Vue({
|
|
|
})
|
|
|
},
|
|
|
kfHref() {
|
|
|
- var shunt = JSON.parse(localStorage.getItem('kf-shunt-data'))
|
|
|
- if (shunt.url && shunt.url == 'zcpc') {
|
|
|
- $('.help-slide-zx.open-customer').trigger('click')
|
|
|
- } else {
|
|
|
- location.href = shunt.url + '&mini=1'
|
|
|
- }
|
|
|
+ location.href = shunted.url + '&mini=1'
|
|
|
},
|
|
|
kfClick() {
|
|
|
$('.help-slide-zx.open-customer').trigger('click')
|