完成适配移动端

This commit is contained in:
2025-03-01 10:52:11 +08:00
parent 1f79c93859
commit 8d19a58e9d
68 changed files with 2117 additions and 847 deletions

View File

@@ -1,7 +1,7 @@
import request from '@/utils/request';
import type { ApiResult, PageResult } from '@/api';
import type { ShopMerchant, ShopMerchantParam } from './model';
import {SERVER_API_URL} from "~/config";
import {COMMON_API_URL, SERVER_API_URL} from "~/config";
/**
* 分页查询商户
@@ -124,7 +124,7 @@ export async function getShopMerchantByUserId(id: number) {
*/
export async function getShopMerchantByPhone() {
const res = await request.get<ApiResult<ShopMerchant>>(
SERVER_API_URL + '/shop/shop-merchant/getByPhone'
COMMON_API_URL + '/shop/shop-merchant/getByPhone'
);
if (res.code === 0 && res.data) {
return res.data;