fix: 修复商户中心下拉跳转无匹配路由

启用 external 路由并注册 MerchantCenter 页面,补齐商户中心文案与页面实现,确保头像下拉点击可正常进入商户中心。
This commit is contained in:
2026-02-06 13:28:49 +08:00
parent b9018c1ad8
commit dc0259339e
6 changed files with 191 additions and 4 deletions

View File

@@ -0,0 +1,41 @@
import { requestClient } from '#/api/request';
/**
* 商户信息 DTO
*/
export interface MerchantDto {
/** 商户ID */
id: string;
/** 商户名称 */
merchantName: string;
/** 联系人 */
contactName: string;
/** 联系电话 */
contactPhone: string;
/** 商户地址 */
address: string;
/** 商户状态 (1: 正常, 2: 禁用) */
status: number;
/** 营业执照代码 */
businessLicenseCode: string;
/** 商户简介 */
description: string;
/** 创建时间 */
createTime: string;
/** 商户Logo */
logo?: string;
}
/**
* 获取当前商户信息
*/
export async function getMerchantInfoApi() {
return requestClient.get<MerchantDto>('/merchant/info');
}
/**
* 更新商户信息
*/
export async function updateMerchantInfoApi(data: Partial<MerchantDto>) {
return requestClient.post('/merchant/update', data);
}