style(shopGoodsBrowse): 移除商品名称列的居中对齐

- 删除了商品名称列中多余的 align: 'center' 属性
- 保持了 ellipsis 属性以支持文本省略显示
- 优化了表格列的展示样式一致性
This commit is contained in:
2026-07-15 18:55:37 +08:00
parent ace46ffea6
commit 5b5bb3b0e5
4 changed files with 127 additions and 16 deletions

View File

@@ -221,18 +221,19 @@ export async function mpConfirm(
}
/**
* 续费
* 续费基于已有订阅创建续费订单pending返回新 subscriptionId
* POST /app/subscription/renew/{id}?period=month|year
* 返回结构与 subscribe 一致(含 subscriptionId前端再调 pay 生成支付码
*/
export async function renewSubscription(
id: number,
period: 'month' | 'year' = 'month'
): Promise<string> {
const res = await request.post<ApiResult<string>>(`${BASE}/renew/${id}`, undefined, {
): Promise<SubscribeResult> {
const res = await request.post<ApiResult<SubscribeResult>>(`${BASE}/renew/${id}`, undefined, {
params: { period }
});
if (res.data.code === 0) {
return res.data.message || '续费成功';
return res.data.data as SubscribeResult;
}
return Promise.reject(new Error(res.data.message));
}