# pay ^6.8

支付

# 请求参数

Prop Type Default Comment
data Object N/A 唤起支付需要的参数 微信支付传入 token_id,支付宝传入orderStr
type String N/A wxpay:微信支付 alipay:支付宝支付

# 接口调用示例

const params = {
  data: 'xxx',
  type: 'wx'
}
this.$bridge
  .pay(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
1
2
3
4
5
6
7
8
9
10
11
12

# 返回参数

  • 成功时返回

  • 失败时返回

更新时间: 7/27/2021, 11:23:45 AM