API
Component

WxAppPay ($UI/comp/wxAppPay/components/wxAppPay/wxAppPay)

使用范围:UI2

Contents

component WxAppPay ($UI/comp/wxAppPay/components/wxAppPay/wxAppPay) extends BindComponent

<b>使用场景</b>:微信支付组件; <b>使用方法</b>: 拖入设计器,事件中可调用支付操作;当交易类型为公众号支付时,用户标识(openid微信中微信用户的唯一标识)为必须参数。

	
	

Constructor Top

  WxAppPay ()
  WxAppPay ( options)

Operations Top

sendPay (
结构如下:)

Constructor details Top

public WxAppPay ()

<b>使用场景</b>:微信支付组件; <b>使用方法</b>: 拖入设计器,事件中可调用支付操作;当交易类型为公众号支付时,用户标识(openid微信中微信用户的唯一标识)为必须参数。

	
	

public WxAppPay ( options)

构造函数

Inherited from ViewComponent

	
		参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
	 

Parameters

options

参数选项

Operations Detail Top

public sendPay (
结构如下:)

发起支付

Parameters


结构如下:

{ userId: 用户id }