uni-plugin-pay-feature
v1.0.0
Published
可插拔页面模块:pay-feature(uni_modules + H5 UMD/ESM)
Maintainers
Readme
uni-plugin-pay-feature
- pluginId:
pay-feature - 前缀:
pf(Pinia/事件/CSS/存储键统一)
使用
在 uni-app 宿主
import { init, openHome, onAction } from '@/uni_modules/pay-feature/sdk'
init({ apiBase: 'https://api.example.com' })
onAction(e => console.log(e))
openHome({ orderId: '123' })在 H5 宿主
<script src="/node_modules/uni-plugin-pay-feature/dist/pay-feature.umd.js"></script>
<script>
PayFeature.init({ apiBase: '...' })
PayFeature.mountTo?.(document.getElementById('pf'), { orderId: '123' })
</script>