wx.config({ debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来 appId: 'appId', // 必填,企业微信的corpID timestamp: 'timestamp', // 必填,生成签名的时间戳 nonceStr: 'noncestr', // 必填,生成签名的随机串 signature: 'signature',// 必填,签名 jsApiList: ['getBrandWCPayRequest']}); WeixinJSBridge.invoke( 'getBrandWCPayRequest', payParams, function(res){ //TODO:res.err_code+res.err_desc+res.err_msg); } );