You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

213 lines
5.7 KiB

/*
* @Author: your name
* @Date: 2021-10-20 16:17:39
* @LastEditTime: 2021-10-28 12:15:59
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/api/home/index.js
*/
import httpService from "@/request"
// 首页_实时事件
export function getEventsListH(params) {
let obj = Object.assign({action: 'getEventsListH',sQuDao: '新车上市', sType: 'Home', iTimeType: 0}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_传播媒体TOP
export function getHomeSourceTop(params) {
let obj = Object.assign({action: 'getHomeSourceTop',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_全网传播数量
export function getHomeCount0528(params) {
let obj = Object.assign({action: 'getHomeCount0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_热销排行-选择框
export function getCheZhuTime0528(params) {
let obj = Object.assign({action: 'getCheZhuTime0528'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_热销排行
export function getCheZhuBrandCount0528(params) {
let obj = Object.assign({action: 'getCheZhuBrandCount0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_热门词云
export function getHotWordHome(params) {
let obj = Object.assign({action: 'getHotWordHome',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_正面词云
export function getPositive0528(params) {
let obj = Object.assign({action: 'getPositive0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_负面词云
export function getNegative0528(params) {
let obj = Object.assign({action: 'getNegative0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_尾翼洞察
export function getWeiYiCountHome0528(params) {
let obj = Object.assign({action: 'getWeiYiCountHome0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_晴雨表
export function getAffections0528(params) {
let obj = Object.assign({action: 'getAffections0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_晴雨表-负面等级
export function getCrisisTime(params) {
let obj = Object.assign({action: 'getCrisisTime',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_传播声量TOP10
export function getHomeBrandSourceType0528(params) {
let obj = Object.assign({action: 'getHomeBrandSourceType0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_获取用户画像
export function getSexOrAttestationOrRegionHome0528(params) {
let obj = Object.assign({action: 'getSexOrAttestationOrRegionHome0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_全网传播数量详情数据
export function getHomeList0528(params) {
let obj = Object.assign({action: 'getHomeList0528',sType: 'Home'}, params)
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: obj,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_行业数据
export function getListHome(params) {
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: params,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}
// 首页_获取品牌
export function getBrandName(params) {
return httpService({
url: `/api/v6.ashx`,
method: 'post',
data: params,
headers: {
'content-type': 'application/x-www-form-urlencoded'
}
})
}