| | |
| | | if (_this.currentCardId) { |
| | | params.business_card_id = _this.currentCardId; |
| | | } |
| | | _this._post('plus.business/business/getOverview', params, function(res) { |
| | | _this._post('plus.business.business/getOverview', params, function(res) { |
| | | _this.totalViews = res.data.views || 0; |
| | | _this.totalSaves = res.data.saves || 0; |
| | | _this.totalShares = res.data.shares || 0; |
| | |
| | | // 获取图表数据 |
| | | getChartData() { |
| | | let _this = this; |
| | | _this._post('plus.business/business/getChartData', { |
| | | _this._post('plus.business.business/getChartData', { |
| | | timeRange: _this.timeRange, |
| | | business_card_id: _this.currentCardId |
| | | }, function(res) { |
| | |
| | | }; |
| | | |
| | | // 获取访问来源 |
| | | _this._post('plus.business/business/getVisitSources', params, function(res) { |
| | | _this._post('plus.business.business/getVisitSources', params, function(res) { |
| | | _this.visitSources = res.data || []; |
| | | }); |
| | | |
| | | // 获取地域分布 |
| | | _this._post('plus.business/business/getRegions', params, function(res) { |
| | | _this._post('plus.business.business/getRegions', params, function(res) { |
| | | _this.regions = res.data || []; |
| | | }); |
| | | |
| | | // 获取名片对比数据 |
| | | _this._post('plus.business/business/getCardComparison', {}, function(res) { |
| | | _this._post('plus.business.business/getCardComparison', {}, function(res) { |
| | | _this.cardComparison = res.data || []; |
| | | }); |
| | | }, |