补结算单ios返回App
This commit is contained in:
@ -113,7 +113,15 @@ export default {
|
||||
}else{
|
||||
this.$toast(result.msg)
|
||||
setTimeout(()=>{
|
||||
window.android.sendMessage("goBack");
|
||||
let data = {"action":"goBack","params":""}
|
||||
var u = navigator.userAgent;
|
||||
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||
// var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
|
||||
if(isiOS){
|
||||
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
||||
}else {
|
||||
window.android.sendMessage("goBack");
|
||||
}
|
||||
},2000)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user