测试按钮,联调安卓支付
This commit is contained in:
@@ -160,4 +160,4 @@
|
||||
<script src="../../common/js/layer.js"></script>
|
||||
<script src="../../common/js/vconsole.min.js"></script>
|
||||
<script src="../../common/js/route-constant.js"></script>
|
||||
<script src="./js/index.js"></script>
|
||||
<script src="./js/index.js?v=1.0"></script>
|
@@ -45,18 +45,24 @@ $(function () {
|
||||
}
|
||||
};
|
||||
// 頂部返回事件
|
||||
$('.back').click(() => {
|
||||
$('.back img').click(() => {
|
||||
var productId = 'diamond_charge_01'
|
||||
if (browser.android) {
|
||||
window.androidJsObj.closeWebView()
|
||||
window.androidJsObj.openPayment(productId)
|
||||
} else {
|
||||
window.webkit.messageHandlers.closeWebView.postMessage(null)
|
||||
window.webkit.messageHandlers.openPayment.postMessage(productId)
|
||||
}
|
||||
})
|
||||
getCurrency();
|
||||
activityCodeInfo();
|
||||
}, 100)
|
||||
})
|
||||
|
||||
function openPaymentCallback(obj) {
|
||||
console.log('回调对象', obj);
|
||||
console.log('回调orderId', obj.orderId);
|
||||
console.log('回调code', obj.code);
|
||||
console.log('回调productId', obj.productId);
|
||||
}
|
||||
// 配置接口
|
||||
function getCurrency() {
|
||||
showLoading()
|
||||
|
Reference in New Issue
Block a user