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.
89 lines
1.6 KiB
89 lines
1.6 KiB
import {ItemObject} from "~/types/global"; |
|
|
|
/** |
|
* 首页 获取底部导航信息 |
|
* |
|
*/ |
|
export const getBottomNavigationApi = () => { |
|
return $request.get({ url: 'front/index/get/bottom/navigation' }) |
|
} |
|
|
|
/** |
|
* 获取主页数据 无需授权 |
|
* |
|
*/ |
|
export const getIndexData = () => { |
|
return $request.get({ url: 'front/index/info' }) |
|
} |
|
|
|
/** |
|
* 首页店铺列表-根据数量加载 |
|
* |
|
*/ |
|
export const indexMerchantListApi = (recomdnum:number) => { |
|
return $request.get({ url: `front/index/merchant/list/${recomdnum}` }) |
|
} |
|
|
|
/** |
|
* 获取首页配置信息 |
|
* |
|
*/ |
|
export const pcHomeConfigApi = () => { |
|
return $request.get({ url: `front/pc/home/get/config` }) |
|
} |
|
|
|
/** |
|
* 获取首页推荐板块 |
|
* |
|
*/ |
|
export const pcHomeRecommendedApi = () => { |
|
return $request.get({ url: `front/pc/home/get/recommended` }) |
|
} |
|
|
|
/** |
|
* 首页秒杀 |
|
* |
|
*/ |
|
export const pcHomeSeckillApi = () => { |
|
return $request.get({ url: `front/index/seckill/info` }) |
|
} |
|
|
|
/** |
|
* 获取首页banner |
|
* |
|
*/ |
|
export const pcHomeBannerApi = () => { |
|
return $request.get({ url: `front/pc/home/get/banner` }) |
|
} |
|
|
|
/** |
|
* 资讯热门列表 |
|
* |
|
*/ |
|
export const articleHotListApi = () => { |
|
return $request.get({ url: `front/article/hot/list` }) |
|
} |
|
|
|
/** |
|
* 获取移动端域名 |
|
* |
|
*/ |
|
export const indexDomainApi = () => { |
|
return $request.get({ url: `front/index/get/domain` }) |
|
} |
|
|
|
/** |
|
* 获取微信二维码 |
|
* |
|
*/ |
|
export const wechatQrcodeApi = (params:ItemObject) => { |
|
return $request.post({ url: `front/qrcode/get/wechat`,params }) |
|
} |
|
|
|
/** |
|
* 获取平台客服 |
|
* |
|
*/ |
|
export const indexCustomerServiceApi = () => { |
|
return $request.get({ url: `front/index/get/customer/service` }) |
|
} |