Commit d2804921 by wangshuo

微信内部支付

parent 82e45789
...@@ -130,7 +130,6 @@ export default class PayOrder extends Component { ...@@ -130,7 +130,6 @@ export default class PayOrder extends Component {
return return
} else { } else {
http.get(`${API['base-api']}/pay/wxpay/pub_charge/oid/${getParam('oid')}/code/${weixin_code}`).then((res) => { 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) { if (res.data.errno === 0) {
// let data = res.data.data; // let data = res.data.data;
this.BridgeData = res.data.data; this.BridgeData = res.data.data;
...@@ -180,6 +179,7 @@ export default class PayOrder extends Component { ...@@ -180,6 +179,7 @@ export default class PayOrder extends Component {
onBridgeReady = (data) => { onBridgeReady = (data) => {
let _this = this; let _this = this;
data = data || _this.BridgeData; data = data || _this.BridgeData;
Toast.info(`测试结果用${JSON.stringify(data)}`, 2);
WeixinJSBridge.invoke( WeixinJSBridge.invoke(
'getBrandWCPayRequest', { 'getBrandWCPayRequest', {
"appId": data.appId, //公众号名称,由商户传入 "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