hookehuyr

docs(pay-confirm): 添加支付确认页给外部H5的小程序跳转参数说明

...@@ -122,6 +122,12 @@ useLoad((options) => { ...@@ -122,6 +122,12 @@ useLoad((options) => {
122 console.error('支付确认页预加载图片版本配置失败:', error) 122 console.error('支付确认页预加载图片版本配置失败:', error)
123 }) 123 })
124 124
125 + // TODO: 提供给外部 H5 配合同学的小程序跳转地址请按下面拼接:
126 + // 1. 页面路径:/pages/pay-confirm/index
127 + // 2. 必传参数:order_id(后端支付订单 ID)
128 + // 3. 展示参数:amount(支付确认页展示金额,建议传字符串,如 99.00)
129 + // 4. 完整示例:/pages/pay-confirm/index?order_id=202605150001&amount=99.00
130 + // 5. 当前页面也兼容旧参数 money,但新接入默认统一传 amount,不要再继续扩散 money
125 order_id.value = String(options?.order_id || '').trim() 131 order_id.value = String(options?.order_id || '').trim()
126 amount.value = String(options?.amount || options?.money || '').trim() 132 amount.value = String(options?.amount || options?.money || '').trim()
127 133
......