feat(api): 添加根据商品ID查询水票模板接口
- 新增 getGltTicketTemplateByGoodsId 函数用于查询水票模板 - 移除最低提现金额显示,保留手续费信息 - 隐藏订单确认页面中的配送范围设置区域 - 添加订单注意事项说明文本
This commit is contained in:
@@ -103,3 +103,16 @@ export async function getGltTicketTemplate(id: number) {
|
|||||||
}
|
}
|
||||||
return Promise.reject(new Error(res.message));
|
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));
|
||||||
|
}
|
||||||
|
|||||||
@@ -394,7 +394,7 @@ const DealerWithdraw: React.FC = () => {
|
|||||||
borderTop: '1px solid rgba(255, 255, 255, 0.3)'
|
borderTop: '1px solid rgba(255, 255, 255, 0.3)'
|
||||||
}}>
|
}}>
|
||||||
<Text className="text-white text-opacity-80 text-xs">
|
<Text className="text-white text-opacity-80 text-xs">
|
||||||
最低提现金额:¥100 | 手续费:免费
|
手续费:免费
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -656,7 +656,7 @@ const OrderConfirm = () => {
|
|||||||
)}
|
)}
|
||||||
</CellGroup>
|
</CellGroup>
|
||||||
|
|
||||||
<CellGroup>
|
<CellGroup className={'hidden'}>
|
||||||
<Cell
|
<Cell
|
||||||
title={(
|
title={(
|
||||||
<View className="flex items-center gap-2">
|
<View className="flex items-center gap-2">
|
||||||
@@ -789,6 +789,13 @@ const OrderConfirm = () => {
|
|||||||
)}/>
|
)}/>
|
||||||
</CellGroup>
|
</CellGroup>
|
||||||
|
|
||||||
|
<div className={'text-gray-400'}>
|
||||||
|
注意事项:
|
||||||
|
1.最低起送量≥20桶;
|
||||||
|
2.配送范围要在电子围栏内;
|
||||||
|
3.上楼费暂不收取,收费另行通知。
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* 支付方式选择 */}
|
{/* 支付方式选择 */}
|
||||||
<ActionSheet
|
<ActionSheet
|
||||||
visible={isVisible}
|
visible={isVisible}
|
||||||
|
|||||||
Reference in New Issue
Block a user