style(shopGoodsBrowse): 移除商品名称列的居中对齐
- 删除了商品名称列中多余的 align: 'center' 属性 - 保持了 ellipsis 属性以支持文本省略显示 - 优化了表格列的展示样式一致性
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user