mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2026-08-06 10:57:26 +08:00
feat: 新增全局布局样式并提升组件响应式表现
- 在 global-layout.scss 中引入全局布局样式,统一页面宽度与对齐方式 - 更新多个组件与页面以优化响应式,包括宽度、间距及 flex 布局等调整 - 在 API 请求中增加 loading 状态管理,改善用户体验 - 优化领券中心与商品详情页,提升功能与 UI 一致性
This commit is contained in:
@@ -147,6 +147,16 @@ export const getGoodsSkuData = params => {
|
||||
export const getGoodsListData = params => {
|
||||
return getRequest("/goods/goods/list", params);
|
||||
};
|
||||
// 商品分组分页
|
||||
export const getGoodsGroupByPage = params => {
|
||||
return getRequest("/goods/goodsGroup/getByPage", params);
|
||||
};
|
||||
// 设定商品分组(批量)
|
||||
export const addGoodsGroupItems = (groupId, goodsIds) => {
|
||||
return postRequest(`/goods/goodsGroup/${groupId}/goods`, {
|
||||
goodsIds: Array.isArray(goodsIds) ? goodsIds.join(",") : goodsIds,
|
||||
});
|
||||
};
|
||||
// 获取商品数量
|
||||
export const getGoodsNumerData = (params) => {
|
||||
return getRequest('/goods/goods/goodsNumber', params)
|
||||
@@ -176,6 +186,9 @@ export const getGoodsCategoryAll = () => {
|
||||
return getRequest(`/goods/category/all`);
|
||||
};
|
||||
|
||||
// 兼容旧页面的分类树命名
|
||||
export const getCategoryTree = getGoodsCategoryAll;
|
||||
|
||||
// 获取当前店铺分类
|
||||
export const getShopGoodsLabelListSeller = () => {
|
||||
return getRequest(`/goods/label`);
|
||||
|
||||
Reference in New Issue
Block a user