新增支付失败逻辑

This commit is contained in:
zhouyanli
2026-08-25 09:56:34 +08:00
parent 1ab7b22221
commit a138e2df44
4 changed files with 99 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<script setup>
import { onLaunch, onShow } from '@dcloudio/uni-app'
import { captureAppLaunchData } from '/pageSubPack/api/appLaunch.js'
import { captureAppLaunchData, capturePaymentResult } from '/pageSubPack/api/appLaunch.js'
onLaunch((options) => {
console.log('App 启动', JSON.stringify(options))
@@ -16,6 +16,8 @@
console.log('App onShow, options:', JSON.stringify(options))
// 捕获 App 跳转传入的支付参数(热启动 — options 携带新的 referrerInfo)
captureAppLaunchData(options)
// 捕获日照银行支付小程序返回的支付结果(navigateBackMiniProgram 的 extraData)
capturePaymentResult(options)
})
// 获取 uniPush 2.0 CID