feat(api): 添加根据商品ID查询水票模板接口

- 新增 getGltTicketTemplateByGoodsId 函数用于查询水票模板
- 移除最低提现金额显示,保留手续费信息
- 隐藏订单确认页面中的配送范围设置区域
- 添加订单注意事项说明文本
This commit is contained in:
2026-02-07 12:40:53 +08:00
parent 9e780e369c
commit 50ffd2c9da
3 changed files with 22 additions and 2 deletions

View File

@@ -103,3 +103,16 @@ export async function getGltTicketTemplate(id: number) {
}
return Promise.reject(new Error(res.message));
}
/**
* 根据商品ID查询水票模板
*/
export async function getGltTicketTemplateByGoodsId(id: number) {
const res = await request.get<ApiResult<GltTicketTemplate>>(
'/glt/glt-ticket-template/getByGoodsId/' + id
);
if (res.code === 0 && res.data) {
return res.data;
}
return Promise.reject(new Error(res.message));
}