mirror of
https://gitee.com/bootx/dax-pay-h5.git
synced 2026-01-13 07:03:36 +08:00
feat 聚合支付扫码后直接拉起支付
This commit is contained in:
7
components.d.ts
vendored
7
components.d.ts
vendored
@@ -9,18 +9,11 @@ declare module '@vue/runtime-core' {
|
||||
export interface GlobalComponents {
|
||||
Loading: typeof import('./src/components/Loading/Loading.vue')['default']
|
||||
SvgIcon: typeof import('./src/components/SvgIcon/SvgIcon.vue')['default']
|
||||
VanActionBar: typeof import('vant/es')['ActionBar']
|
||||
VanActionBarButton: typeof import('vant/es')['ActionBarButton']
|
||||
VanActionSheet: typeof import('vant/es')['ActionSheet']
|
||||
VanButton: typeof import('vant/es')['Button']
|
||||
VanCellGroup: typeof import('vant/es')['CellGroup']
|
||||
VanConfigProvider: typeof import('vant/es')['ConfigProvider']
|
||||
VanField: typeof import('vant/es')['Field']
|
||||
VanForm: typeof import('vant/es')['Form']
|
||||
VanLoading: typeof import('vant/es')['Loading']
|
||||
VanNavBar: typeof import('vant/es')['NavBar']
|
||||
VanOverlay: typeof import('vant/es')['Overlay']
|
||||
VanSwitch: typeof import('vant/es')['Switch']
|
||||
VanTabbar: typeof import('vant/es')['Tabbar']
|
||||
VanTabbarItem: typeof import('vant/es')['TabbarItem']
|
||||
}
|
||||
|
||||
@@ -34,9 +34,9 @@
|
||||
/**
|
||||
* 根据code获取支付信息
|
||||
*/
|
||||
function init() {
|
||||
async function init() {
|
||||
loading.value = true
|
||||
getInfo(code.value)
|
||||
await getInfo(code.value)
|
||||
.then(({ data }) => {
|
||||
info.value = data
|
||||
loading.value = false
|
||||
@@ -48,6 +48,8 @@
|
||||
query: { msg: err.message },
|
||||
})
|
||||
})
|
||||
// 调起支付
|
||||
pay()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -35,10 +35,10 @@
|
||||
/**
|
||||
* 根据code获取支付信息
|
||||
*/
|
||||
function init() {
|
||||
async function init() {
|
||||
loading.value = true
|
||||
// 获取支付信息
|
||||
getInfo(aggregateCode.value)
|
||||
await getInfo(aggregateCode.value)
|
||||
.then(({ data }) => {
|
||||
loading.value = false
|
||||
info.value = data
|
||||
@@ -50,6 +50,8 @@
|
||||
query: { msg: err.message },
|
||||
})
|
||||
})
|
||||
// 调起支付
|
||||
pay()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user