|
@@ -44,13 +44,15 @@
|
|
|
window.idfaInvoke=(data)=>{
|
|
|
localStorage.setItem('idfa',data.idfa);
|
|
|
};
|
|
|
- // window.deviceInfoInvoke=(data)=>{
|
|
|
- // //localStorage.setItem('idfa',data.idfa);
|
|
|
- // this.$toast(JSON.stringify(data));
|
|
|
- // };
|
|
|
- window.deviceTokenInvoke=(data)=>{
|
|
|
+ window.deviceInfoInvoke=(data)=>{
|
|
|
+ //localStorage.setItem('idfa',data.idfa);
|
|
|
this.$toast(JSON.stringify(data));
|
|
|
};
|
|
|
+ window.deviceTokenInvoke=(data)=>{
|
|
|
+ if(data.code===1){
|
|
|
+ localStorage.setItem('deviceToken',data.deviceId)
|
|
|
+ }
|
|
|
+ };
|
|
|
this.getStatusBarHeight();
|
|
|
this.getIDFA();
|
|
|
this.getDeviceInfo();
|