修复支付订单未显示订单绑定用户余额问题
This commit is contained in:
@@ -277,6 +277,11 @@
|
|||||||
async function init() {
|
async function init() {
|
||||||
const res = await orderApi.tbOrderInfoDetail(order.orderId)
|
const res = await orderApi.tbOrderInfoDetail(order.orderId)
|
||||||
Object.assign(order, res)
|
Object.assign(order, res)
|
||||||
|
if(order.userId){
|
||||||
|
queryAllShopUser({id:order.userId}).then(res=>{
|
||||||
|
user.value=res.content[0]||opt
|
||||||
|
})
|
||||||
|
}
|
||||||
getPayUrl()
|
getPayUrl()
|
||||||
}
|
}
|
||||||
function getPayUrl(){
|
function getPayUrl(){
|
||||||
@@ -292,11 +297,7 @@
|
|||||||
Object.assign(order, opt)
|
Object.assign(order, opt)
|
||||||
const payTypeList = await Api.$getPayType()
|
const payTypeList = await Api.$getPayType()
|
||||||
pays.payTypes.list = payTypeList
|
pays.payTypes.list = payTypeList
|
||||||
if(order.userId){
|
|
||||||
queryAllShopUser({id:opt.userId}).then(res=>{
|
|
||||||
user.value=res.content[0]||opt
|
|
||||||
})
|
|
||||||
}
|
|
||||||
init()
|
init()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user