点单暂存
This commit is contained in:
@@ -40,31 +40,16 @@ $(function () {
|
||||
}
|
||||
};
|
||||
// 頂部返回事件
|
||||
// $('.back img').click(() => {
|
||||
// if (browser.android) {
|
||||
// window.androidJsObj.closeWebView()
|
||||
// } else {
|
||||
// window.webkit.messageHandlers.closeWebView.postMessage(null)
|
||||
// }
|
||||
// })
|
||||
// 頂部返回事件
|
||||
$('.back img').click(() => {
|
||||
var productId = '我是字符串'
|
||||
if (browser.android) {
|
||||
window.androidJsObj.openPayment(productId)
|
||||
window.androidJsObj.closeWebView()
|
||||
} else {
|
||||
window.webkit.messageHandlers.openPayment.postMessage(productId)
|
||||
window.webkit.messageHandlers.closeWebView.postMessage(null)
|
||||
}
|
||||
})
|
||||
|
||||
}, 100)
|
||||
})
|
||||
function openPaymentCallback(obj) {
|
||||
console.log('回调对象', obj);
|
||||
console.log('回调orderId', obj.orderId);
|
||||
console.log('回调code', obj.code);
|
||||
console.log('回调productId', obj.productId);
|
||||
}
|
||||
})
|
||||
function getRecords() {
|
||||
showLoading()
|
||||
networkRequest({
|
||||
|
Reference in New Issue
Block a user