fix(avatar): default checkout environment and simplify pay action
This commit is contained in:
@@ -231,7 +231,7 @@ const checkoutLabel = computed(() => {
|
|||||||
if (!selectedPlan.value) return '请选择充值套餐'
|
if (!selectedPlan.value) return '请选择充值套餐'
|
||||||
if (charging.value) return '正在创建支付订单…'
|
if (charging.value) return '正在创建支付订单…'
|
||||||
if (pendingOrderId.value) return '等待支付结果…'
|
if (pendingOrderId.value) return '等待支付结果…'
|
||||||
return `立即支付 ¥${selectedPlan.value.price}`
|
return '去支付'
|
||||||
})
|
})
|
||||||
|
|
||||||
const payScene = () => {
|
const payScene = () => {
|
||||||
@@ -299,8 +299,8 @@ const doCharge = async () => {
|
|||||||
const checkoutBase = window.location.hostname === 'digital.99hui.com'
|
const checkoutBase = window.location.hostname === 'digital.99hui.com'
|
||||||
? 'https://99hui.com/huihui-h5/'
|
? 'https://99hui.com/huihui-h5/'
|
||||||
: 'https://fat-open.99hui.com/huihui-h5/'
|
: 'https://fat-open.99hui.com/huihui-h5/'
|
||||||
const evn = sessionStorage.getItem('hh_launch_evn')
|
const evn = sessionStorage.getItem('hh_launch_evn') || 'wx'
|
||||||
const evnPart = evn ? `&evn=${encodeURIComponent(evn)}` : '&evn'
|
const evnPart = `&evn=${encodeURIComponent(evn)}`
|
||||||
window.location.assign(`${checkoutBase}#/payOrder?orderNo=${encodeURIComponent(order.providerOrderNo)}&isOrg=true${evnPart}`)
|
window.location.assign(`${checkoutBase}#/payOrder?orderNo=${encodeURIComponent(order.providerOrderNo)}&isOrg=true${evnPart}`)
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
paymentNoticeTone.value = 'error'
|
paymentNoticeTone.value = 'error'
|
||||||
|
|||||||
Reference in New Issue
Block a user