12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import { requestApi } from '../util/network'
- // 根据ap_id 获取 广告列表
- export const getAppadList =
- (apId) =>
- requestApi(
- '/Index/getAppadList',
- 'POST',
- {
- 'ap_id': apId
- }
- )
- // 获取首页需要用到的广告图
- export const homeIndexAdList =
- () =>
- requestApi(
- '/Index/getIndexAdList',
- 'POST',
- {
- }
- )
- // 首页商品列表
- export const homeIndexProductList =
- () =>
- requestApi(
- '/Index/getProductList',
- 'POST',
- {
- }
- )
- // 获取可编辑模块
- export const getEditablePageConfigList =
- (pageId, pagePath = '', itemId = 0, storeId = 0) =>
- requestApi(
- '/Index/getEditablePageConfigList',
- 'POST',
- {
- editable_page_id: pageId,
- editable_page_path: pagePath,
- editable_page_item_id: itemId,
- store_id: storeId
- }
- )
- // 获取猜你喜欢
- export const getGuessLike =
- (memberId = 0) =>
- requestApi(
- '/Index/getGuessLike',
- 'POST',
- {
- member_id: memberId
- }
- )
|