feat 聚合支付扫码后直接拉起支付

This commit is contained in:
xxm1995
2024-02-26 12:27:54 +08:00
parent d1170d557c
commit d9cb42a890
3 changed files with 8 additions and 11 deletions

7
components.d.ts vendored
View File

@@ -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']
}

View File

@@ -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()
}
/**

View File

@@ -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()
}
/**