Compare commits
7 Commits
prod-24-11
...
prod-24-10
Author | SHA1 | Date | |
---|---|---|---|
c6fd1bc162 | |||
5618ad989e | |||
a8cea5fb6a | |||
4017cf9520 | |||
789f1fa396 | |||
374a5182db | |||
f83e646547 |
@ -25,8 +25,8 @@ service.interceptors.request.use(
|
|||||||
if (reqUrl.includes("/driverApp")) {
|
if (reqUrl.includes("/driverApp")) {
|
||||||
// console.log("司机app")
|
// console.log("司机app")
|
||||||
config.headers['token'] = `${token}`;
|
config.headers['token'] = `${token}`;
|
||||||
} else if(reqUrl.includes("/supplierApp")){
|
} else if(reqUrl.includes("/supplierApp") || reqUrl.includes("/supplierKPI") || reqUrl.includes('/supplier/select')){
|
||||||
// console.log("调度app")
|
// console.log("调度app,服务商kpi")
|
||||||
config.headers['Authorization'] = `${token}`;
|
config.headers['Authorization'] = `${token}`;
|
||||||
}else{
|
}else{
|
||||||
config.headers['token'] = `${token}`;
|
config.headers['token'] = `${token}`;
|
||||||
|
@ -35,18 +35,18 @@ export const myMixins = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
goH5Detail(item,type){//h5传参到app文档资料,培训文档
|
goH5Detail(item,type){//h5传参到app文档资料,培训文档
|
||||||
console.log("type",type)
|
// console.log("type",type)
|
||||||
let data = {
|
let data = {
|
||||||
"action": "goTraining",
|
"action": "goTraining",
|
||||||
"params": {
|
"params": {
|
||||||
"id": item.id,
|
"id":type == '培训文档' ? Number(1000000+item.id) : item.id,
|
||||||
// "docType" : type=='培训文档' ? 1 : 2,
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let u = navigator.userAgent;
|
let u = navigator.userAgent;
|
||||||
let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||||
if(isiOS){
|
if(isiOS){
|
||||||
|
// console.log("data",data)
|
||||||
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
||||||
}else {
|
}else {
|
||||||
if(type == '培训文档'){
|
if(type == '培训文档'){
|
||||||
|
Reference in New Issue
Block a user