mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-14 17:41:45 +08:00
Merge branch 'feature/huiqiyd-173' into 'develop'
feat: 积分创建订单不需要调支付接口 See merge request huiqi/ecshopx-vshop!33
This commit is contained in:
@@ -403,6 +403,7 @@ export default (props = {}) => {
|
||||
|
||||
|
||||
return {
|
||||
cashierPayment
|
||||
cashierPayment,
|
||||
payError
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ function PointShopEspierCheckout() {
|
||||
}
|
||||
})
|
||||
|
||||
const { cashierPayment } = usePayment()
|
||||
const { cashierPayment,payError } = usePayment()
|
||||
|
||||
const [state, setState] = useAsyncCallback(initialState)
|
||||
|
||||
@@ -253,6 +253,10 @@ function PointShopEspierCheckout() {
|
||||
let { redirect_url } = await api.wx.getredirecturl({ url })
|
||||
window.location.href = redirect_url
|
||||
} else {
|
||||
if(orderInfo?.order_type == "normal_pointsmall" && orderInfo?.total_fee == 0){
|
||||
payError(orderInfo)
|
||||
return
|
||||
}
|
||||
cashierPayment(
|
||||
{
|
||||
...params,
|
||||
|
||||
Reference in New Issue
Block a user