CRM_26-01-29#story#8070,调度APP-司机信息复制-仅子公司
This commit is contained in:
@@ -174,14 +174,17 @@ export default {
|
|||||||
'车牌:':this.orderDetailInfo.plateNumber,
|
'车牌:':this.orderDetailInfo.plateNumber,
|
||||||
'手机:':this.orderDetailInfo.driverPhone,
|
'手机:':this.orderDetailInfo.driverPhone,
|
||||||
}
|
}
|
||||||
|
console.log('')
|
||||||
let data = {"action":"copyToClipboard","params":params}
|
let data = {"action":"copyToClipboard","params":params}
|
||||||
var u = navigator.userAgent;
|
var u = navigator.userAgent;
|
||||||
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||||
if(isiOS){
|
if(isiOS){
|
||||||
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
||||||
}else {
|
}else {
|
||||||
window.android.copyToClipboard(params);
|
window.android.copyToClipboard(JSON.stringify(params));
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
this.$toast('未获取到司机信息')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getDetail(){
|
async getDetail(){
|
||||||
|
|||||||
Reference in New Issue
Block a user