|
|
@ -75,9 +75,10 @@ |
|
|
|
this.fromAppurl1 =fromAppurl; |
|
|
|
this.token = token; |
|
|
|
this.rechargeAmount = rechargeAmount; |
|
|
|
this.ready(); |
|
|
|
this.getCurrentLocation(); |
|
|
|
this.detail(trainingOrderId,token,type); |
|
|
|
this.ready( this.getCurrentLocation()); |
|
|
|
this.ready(this.detail(trainingOrderId,token,type)); |
|
|
|
//this.getCurrentLocation(); |
|
|
|
//this.detail(trainingOrderId,token,type); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -213,10 +214,15 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
goToApp() { |
|
|
|
AlipayJSBridge.call('openInBrowser', { |
|
|
|
url: decodeURIComponent(this.fromAppurl1) |
|
|
|
}); |
|
|
|
AlipayJSBridge.call('closeWebview'); |
|
|
|
if (window.AlipayJSBridge) { |
|
|
|
AlipayJSBridge.call('openInBrowser', { |
|
|
|
url: decodeURIComponent(this.fromAppurl1) |
|
|
|
}); |
|
|
|
AlipayJSBridge.call('closeWebview'); |
|
|
|
}else{ |
|
|
|
// 如果没有注入则监听注入的事件 |
|
|
|
document.addEventListener('AlipayJSBridgeReady', this.goToApp(), false); |
|
|
|
} |
|
|
|
// window.location.href=decodeURIComponent(this.fromAppurl1); |
|
|
|
}, |
|
|
|
|
|
|
|