|
@@ -311,7 +311,7 @@ var vm = new Vue({
|
|
this.rid = decodeURIComponent(id)
|
|
this.rid = decodeURIComponent(id)
|
|
this.filtersPageShow = false
|
|
this.filtersPageShow = false
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
mounted: function () {
|
|
mounted: function () {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -333,13 +333,13 @@ var vm = new Vue({
|
|
methods: {
|
|
methods: {
|
|
gotable () {
|
|
gotable () {
|
|
this.saveState()
|
|
this.saveState()
|
|
- if(this.isWeiXinBrower()){
|
|
|
|
|
|
+ if(utils.$envs.inWX){
|
|
window.location.href='/big/wx/page/report_table?source=analysis'+'&flag=3'+'&rid='+this.rid+'&header=客户类型分布详情'
|
|
window.location.href='/big/wx/page/report_table?source=analysis'+'&flag=3'+'&rid='+this.rid+'&header=客户类型分布详情'
|
|
} else {
|
|
} else {
|
|
window.location.href='/jyapp/big/page/report_table?source=analysis'+'&flag=3'+'&rid='+this.rid+'&header=客户类型分布详情'
|
|
window.location.href='/jyapp/big/page/report_table?source=analysis'+'&flag=3'+'&rid='+this.rid+'&header=客户类型分布详情'
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
isWeiXinBrower() {
|
|
isWeiXinBrower() {
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
@@ -392,7 +392,7 @@ var vm = new Vue({
|
|
}
|
|
}
|
|
item.top = offsetTop
|
|
item.top = offsetTop
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
addEventListeners: function () {
|
|
addEventListeners: function () {
|
|
this.scrollToTop()
|
|
this.scrollToTop()
|
|
@@ -419,10 +419,10 @@ var vm = new Vue({
|
|
var i = 0
|
|
var i = 0
|
|
if (scrollTop >= anchorTopList[1] && scrollTop < anchorTopList[2]) {
|
|
if (scrollTop >= anchorTopList[1] && scrollTop < anchorTopList[2]) {
|
|
i = 1
|
|
i = 1
|
|
-
|
|
|
|
|
|
+
|
|
} else if (scrollTop > anchorTopList[2] && scrollTop > anchorTopList[1] && scrollTop > anchorTopList[0]) { //逻辑上多余判断条件 ,为了处理高度还没有计算出起始的 anchorTopList[2]为0 tab回显错误问题
|
|
} else if (scrollTop > anchorTopList[2] && scrollTop > anchorTopList[1] && scrollTop > anchorTopList[0]) { //逻辑上多余判断条件 ,为了处理高度还没有计算出起始的 anchorTopList[2]为0 tab回显错误问题
|
|
i = 2
|
|
i = 2
|
|
-
|
|
|
|
|
|
+
|
|
} else if (scrollTop < anchorTopList[1]) {
|
|
} else if (scrollTop < anchorTopList[1]) {
|
|
i = 0
|
|
i = 0
|
|
|
|
|
|
@@ -660,7 +660,7 @@ var vm = new Vue({
|
|
} else if (key === 'buyerclass') {
|
|
} else if (key === 'buyerclass') {
|
|
filters.buyerclass = e.data
|
|
filters.buyerclass = e.data
|
|
console.log(e.data)
|
|
console.log(e.data)
|
|
- }
|
|
|
|
|
|
+ }
|
|
dialog[key] = false
|
|
dialog[key] = false
|
|
},
|
|
},
|
|
dateTimeSelectorConfirm () {
|
|
dateTimeSelectorConfirm () {
|
|
@@ -834,19 +834,19 @@ var vm = new Vue({
|
|
if (!query.rid) {
|
|
if (!query.rid) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
$.ajax({
|
|
$.ajax({
|
|
type: 'POST',
|
|
type: 'POST',
|
|
url: '/bigmember/marketAnalysis/getAnalysisResult',
|
|
url: '/bigmember/marketAnalysis/getAnalysisResult',
|
|
data: query,
|
|
data: query,
|
|
success: function (res) {
|
|
success: function (res) {
|
|
- if (res && res.error_code === 0 && res.data) {
|
|
|
|
|
|
+ if (res && res.error_code === 0 && res.data) {
|
|
if(flag==3){
|
|
if(flag==3){
|
|
sessionStorage.setItem('getAnalysisResult_',JSON.stringify(res))
|
|
sessionStorage.setItem('getAnalysisResult_',JSON.stringify(res))
|
|
}
|
|
}
|
|
this.formatterData(flag, res.data)
|
|
this.formatterData(flag, res.data)
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
this.$toast('请求失败')
|
|
this.$toast('请求失败')
|
|
}
|
|
}
|
|
@@ -933,7 +933,7 @@ var vm = new Vue({
|
|
this.filters.rangeTime.end = new Date(timeString).getTime()
|
|
this.filters.rangeTime.end = new Date(timeString).getTime()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.$refs.dateSelector.setState(this.filters.rangeTime)
|
|
this.$refs.dateSelector.setState(this.filters.rangeTime)
|
|
if (data.area && data.area !== '{}') {
|
|
if (data.area && data.area !== '{}') {
|
|
this.reportFilters.area = JSON.parse(data.area)
|
|
this.reportFilters.area = JSON.parse(data.area)
|
|
@@ -1477,7 +1477,7 @@ var vm = new Vue({
|
|
|
|
|
|
this.sections.market.refine.dataAlready = true
|
|
this.sections.market.refine.dataAlready = true
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.sortRefineTop3(data)
|
|
this.sortRefineTop3(data)
|
|
},
|
|
},
|
|
sortRefineTop3 (data) {
|
|
sortRefineTop3 (data) {
|
|
@@ -1582,7 +1582,7 @@ var vm = new Vue({
|
|
|
|
|
|
this.sections.buyerclass.dataAlready = true
|
|
this.sections.buyerclass.dataAlready = true
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.sortBuyerclassTableData(data)
|
|
this.sortBuyerclassTableData(data)
|
|
},
|
|
},
|
|
sortBuyerclassTableData (data) {
|
|
sortBuyerclassTableData (data) {
|
|
@@ -1841,7 +1841,7 @@ var vm = new Vue({
|
|
} else {
|
|
} else {
|
|
rootlink = 'f'
|
|
rootlink = 'f'
|
|
}
|
|
}
|
|
- if(this.isWeixin) {
|
|
|
|
|
|
+ if(utils.$envs.inWX) {
|
|
location.href = '/front/vipsubscribe/toSetKeyWordPage?vSwitch=' + rootlink
|
|
location.href = '/front/vipsubscribe/toSetKeyWordPage?vSwitch=' + rootlink
|
|
} else {
|
|
} else {
|
|
location.href = '/jyapp/vipsubscribe/toSetKeyWordPage?vSwitch=' + rootlink
|
|
location.href = '/jyapp/vipsubscribe/toSetKeyWordPage?vSwitch=' + rootlink
|
|
@@ -1849,15 +1849,27 @@ var vm = new Vue({
|
|
},
|
|
},
|
|
toArticleContent (item) {
|
|
toArticleContent (item) {
|
|
this.saveState()
|
|
this.saveState()
|
|
- location.href = `/jyapp/article/content/${item._id}.html`
|
|
|
|
|
|
+ if (utils.$envs.inWX) {
|
|
|
|
+ location.href = `/article/content/${item._id}.html`
|
|
|
|
+ } else {
|
|
|
|
+ location.href = `/jyapp/article/content/${item._id}.html`
|
|
|
|
+ }
|
|
},
|
|
},
|
|
toPortrait (id, type) {
|
|
toPortrait (id, type) {
|
|
if (!type || !id) return
|
|
if (!type || !id) return
|
|
this.saveState()
|
|
this.saveState()
|
|
if (type === 'winner') {
|
|
if (type === 'winner') {
|
|
- location.href = `./ent_portrait?eId=${id}`
|
|
|
|
|
|
+ if (utils.$envs.inWX) {
|
|
|
|
+ location.href = `/weixin/frontPage/collection/sess/ent_portrait?eId=${id}`
|
|
|
|
+ } else {
|
|
|
|
+ location.href = `./ent_portrait?eId=${id}`
|
|
|
|
+ }
|
|
} else if (type === 'buyer') {
|
|
} else if (type === 'buyer') {
|
|
- location.href = `./unit_portrayal?entName=${id}`
|
|
|
|
|
|
+ if (utils.$envs.inWX) {
|
|
|
|
+ location.href = `/big/wx/page/unit_portrayal?entName=${id}`
|
|
|
|
+ } else {
|
|
|
|
+ location.href = `./unit_portrayal?entName=${id}`
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|