|
@@ -44,11 +44,11 @@
|
|
|
window.idfaInvoke=(data)=>{
|
|
|
localStorage.setItem('idfa',data.idfa);
|
|
|
};
|
|
|
- window.deviceInfoInvoke=(data)=>{
|
|
|
- //localStorage.setItem('idfa',data.idfa);
|
|
|
- this.$toast(JSON.stringify(data));
|
|
|
- };
|
|
|
- window.deviceToken=(data)=>{
|
|
|
+ // window.deviceInfoInvoke=(data)=>{
|
|
|
+ // //localStorage.setItem('idfa',data.idfa);
|
|
|
+ // this.$toast(JSON.stringify(data));
|
|
|
+ // };
|
|
|
+ window.deviceTokenInvoke=(data)=>{
|
|
|
this.$toast(JSON.stringify(data));
|
|
|
};
|
|
|
this.getStatusBarHeight();
|
|
@@ -88,7 +88,9 @@
|
|
|
getDeviceInfo(){
|
|
|
window.webkit.messageHandlers.call.postMessage({
|
|
|
api:"com.js.getDeviceInfo",
|
|
|
- data:{},
|
|
|
+ data:{
|
|
|
+ info:['idfa','platform','resolution','brand','ov','cate','appId','lang','currTime','av','model','deviceCode']
|
|
|
+ },
|
|
|
callback:'deviceInfoInvoke'
|
|
|
})
|
|
|
},
|