Commit d2804921 by wangshuo

微信内部支付

parent 82e45789
......@@ -130,7 +130,6 @@ export default class PayOrder extends Component {
return
} else {
http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => {
Toast.info(`测试结果用${res.data.errno === 0}`, 2);
if (res.data.errno === 0) {
// let data = res.data.data;
this.BridgeData = res.data.data;
......@@ -180,6 +179,7 @@ export default class PayOrder extends Component {
onBridgeReady = (data) => {
let _this = this;
data = data || _this.BridgeData;
Toast.info(`测试结果用${JSON.stringify(data)}`, 2);
WeixinJSBridge.invoke(
'getBrandWCPayRequest', {
"appId": data.appId, //公众号名称,由商户传入
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment