}
this.$http.post(this.GLOBAL.apiUrl+'/wxpay',param).then((response) => {
WeixinJSBridge.invoke(
'getBrandWCPayRequest', response.data,
function(res){
if(res.err_msg == "get_brand_wcpay_request:ok" ) {
# 回调成功后跳转
# router.push({name: 'Room',params:{id:this.id}});
}
}
);
})
},
6.微信公众平台配置
1) 在“公众账号设置”—“JS接口安全域名”设置中填写前端域名
2) 在“微信支付”—“开发配置”页面中,公众账号支付下填写“支付授权目录”,注意的是,此授权url为前端支付按钮所在页面的url
7.接下来你就可以测试了










