|
|
@ -2,7 +2,7 @@ import { post, get } from './http' |
|
|
import { url } from '@/http/config' |
|
|
import { url } from '@/http/config' |
|
|
|
|
|
|
|
|
//获取皮肤
|
|
|
//获取皮肤
|
|
|
export const getTheme = () => get(`/static/offline/JSON/theme.json`) |
|
|
|
|
|
|
|
|
export const getTheme = () => get(`./static/offline/JSON/theme.json`) |
|
|
|
|
|
|
|
|
//首页热搜及卡片
|
|
|
//首页热搜及卡片
|
|
|
export const getIndexList = () => get(`${url().sourceUrl}/JSON/index.json`) |
|
|
export const getIndexList = () => get(`${url().sourceUrl}/JSON/index.json`) |
|
|
@ -28,19 +28,19 @@ export const getBackTime = () => get(`${url().sourceUrl}/JSON/getBackTime.json`) |
|
|
export const getGuideList = () => get(`${url().sourceUrl}/JSON/getMapInfo.json`) |
|
|
export const getGuideList = () => get(`${url().sourceUrl}/JSON/getMapInfo.json`) |
|
|
|
|
|
|
|
|
//获取配置项
|
|
|
//获取配置项
|
|
|
export const getConfig = () => get('/static/offline/JSON/config.json') |
|
|
|
|
|
|
|
|
export const getConfig = () => get('./static/offline/JSON/config.json') |
|
|
|
|
|
|
|
|
//获取当前所处楼层
|
|
|
//获取当前所处楼层
|
|
|
export const getCurrentFloor = () => get(`/static/offline/JSON/getDevCoordinateByIP.json`) |
|
|
|
|
|
|
|
|
export const getCurrentFloor = () => get(`./static/offline/JSON/getDevCoordinateByIP.json`) |
|
|
|
|
|
|
|
|
//获取地图数据
|
|
|
//获取地图数据
|
|
|
export const getMap = () => get(`/static/offline/JSON/getMap.json`) |
|
|
|
|
|
|
|
|
export const getMap = () => get(`./static/offline/JSON/getMap.json`) |
|
|
|
|
|
|
|
|
//手写地址
|
|
|
//手写地址
|
|
|
export const getHandWriting = params => post(url().handWriteUrl, params) |
|
|
export const getHandWriting = params => post(url().handWriteUrl, params) |
|
|
|
|
|
|
|
|
//数据统计
|
|
|
//数据统计
|
|
|
export const getStatistics = params => post(`${url().interfaceUrl}${url().clickUploadUrl}`, params) |
|
|
|
|
|
|
|
|
export const getStatistics = params => (url().clickUploadUrl ? post(`${url().interfaceUrl}${url().clickUploadUrl}`, params) : void 0) |
|
|
|
|
|
|
|
|
export const getQMGoShopData = () => get(`/static/offline/JSON/getQMGoShopData.json`) |
|
|
export const getQMGoShopData = () => get(`/static/offline/JSON/getQMGoShopData.json`) |
|
|
|
|
|
|
|
|
|