This commit is contained in:
chc
2022-10-21 11:22:56 +08:00
138 changed files with 14354 additions and 2038 deletions

View File

@@ -1,13 +1,24 @@
import request, {Method} from '@/plugins/request.js'
import request, { Method } from "@/plugins/request.js";
// 获取首页楼层装修数据
export function indexData (params) {
export function indexData(params) {
return request({
url: '/buyer/other/pageData/getIndex',
url: "/buyer/other/pageData/getIndex",
method: Method.GET,
needToken: false,
params
})
params,
});
}
/**
* 获取店铺楼层数据
*/
export function getFloorStoreData(params) {
return request({
url: `/buyer/other/pageData?pageClientType=PC`,
method: "get",
params,
});
}
/**
@@ -15,21 +26,33 @@ export function indexData (params) {
* @param pageClientType 客户端类型,可用值:PC,H5,WECHAT_MP,APP
* @param pageType 页面类型,可用值:INDEX,STORE,SPECIAL
*/
export function pageData (params) {
export function pageData(params) {
return request({
url: `/buyer/other/pageData`,
method: Method.GET,
needToken: false,
params
})
params,
});
}
/**
* 刷新token
*/
export function handleRefreshToken (token) {
export function handleRefreshToken(token) {
return request({
url: `/buyer/passport/member/refresh/${token}`,
method: Method.GET,
needToken: false
})
needToken: false,
});
}
// /**
// * 获取店铺楼层数据
// */
// export function getFloorStoreData(params) {
// return request({
// url: `/buyer/other/pageData?pageClientType=PC`,
// method: "get",
// params,
// });
// }