refactor(shop): 更新 API调用和页面逻辑

- 修改了多个文件中的 API调用路径
- 优化了部分组件的显示逻辑
- 添加了优惠券相关功能
-调整了环境变量配置
This commit is contained in:
2025-08-14 01:06:44 +08:00
parent 89cadc3886
commit 2c864ce770
12 changed files with 138 additions and 89 deletions

View File

@@ -8,9 +8,9 @@ import {SERVER_API_URL} from "@/utils/server";
/**
* 获取网站信息
*/
export async function getSiteInfo() {
export async function getShopInfo() {
const res = await request.get<ApiResult<CmsWebsite>>(
'/cms/cms-website/getSiteInfo'
'/shop/getShopInfo'
);
if (res.code === 0 && res.data) {
return res.data;