diff --git a/src/api/SaleRankCity/index.js b/src/api/SaleRankCity/index.js new file mode 100644 index 0000000..672e96c --- /dev/null +++ b/src/api/SaleRankCity/index.js @@ -0,0 +1,64 @@ +import httpService from "@/request" + +// 城市-获取时间 +export function getExcleTime(params) { + let obj = Object.assign({action: 'getExcleTime', sType: 'ExcleSales'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 城市-省份排行 +export function getSalesType1(params) { + let obj = Object.assign({action: 'getSalesType1', sType: 'ExcleSales'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} + +// 城市-城市排行 +export function getSalesType0(params) { + let obj = Object.assign({action: 'getSalesType0', sType: 'ExcleSales'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +// 城市-品牌销量排行 +export function getSalesType6(params) { + let obj = Object.assign({action: 'getSalesType6', sType: 'ExcleSales'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} +// 城市-车型销量排行 +export function getSalesType7(params) { + let obj = Object.assign({action: 'getSalesType7', sType: 'ExcleSales'}, params) + return httpService({ + url: `/api/v6.ashx`, + method: 'post', + data: obj, + headers: { + 'content-type': 'application/x-www-form-urlencoded' + } + }) +} \ No newline at end of file diff --git a/src/views/BrandComparison/informationTrend/index.vue b/src/views/BrandComparison/informationTrend/index.vue index c0f1659..5620360 100644 --- a/src/views/BrandComparison/informationTrend/index.vue +++ b/src/views/BrandComparison/informationTrend/index.vue @@ -104,6 +104,8 @@ export default { } dataI = dataI + 1; }); + console.log(dx); + console.log(ds) this.opt = createOpt(dx, ds, markData); this.load = false; }); diff --git a/src/views/SaleRank/BrandInfoDetail/index.vue b/src/views/SaleRank/BrandInfoDetail/index.vue index 03b94b1..c4b80e3 100644 --- a/src/views/SaleRank/BrandInfoDetail/index.vue +++ b/src/views/SaleRank/BrandInfoDetail/index.vue @@ -1,7 +1,6 @@