dwh 2 år sedan
förälder
incheckning
1499252a1e
1 ändrade filer med 0 tillägg och 60 borttagningar
  1. 0 60
      src/App.vue

+ 0 - 60
src/App.vue

@@ -6,66 +6,6 @@
 		<router-view v-if="!$route.meta.keepAlive"></router-view>
 	</div>
 </template>
-<script>
-	export default{
-		mounted() {
-			window.getStatusBarHeightInvoke=(data)=>{
-				localStorage.setItem('safeBottomHeight',data.safeBottomHeight);
-				localStorage.setItem('statusBarHeight',data.statusBarHeight);
-				this.$toast(data.safeBottomHeight);
-			};
-			window.idfaInvoke=(data)=>{
-				localStorage.setItem('idfa',data.idfa);
-			};
-			window.deviceInfoInvoke=(data)=>{
-				localStorage.setItem('deviceInfo',data.data);
-			};
-			window.deviceTokenInvoke=(data)=>{
-				if(data.code===1){
-					localStorage.setItem('deviceToken',data.deviceId)
-				}
-			};
-			this.getStatusBarHeight();
-			this.getIDFA();
-			this.getDeviceInfo();
-			this.getDeviceToken();
-		},
-		methods: {
-			getStatusBarHeight(){//获取状态栏和底部安全距离
-				window.webkit.messageHandlers.call.postMessage({
-					api:"com.js.getStatusBarHeight",
-					data:{
-						url:''
-					},
-					callback:'getStatusBarHeightInvoke'
-				}) 
-			},
-			getIDFA(){
-				window.webkit.messageHandlers.call.postMessage({
-					api:"com.js.getIDFA",
-					data:{},
-					callback:'idfaInvoke'
-				}) 
-			},
-			getDeviceInfo(){
-				window.webkit.messageHandlers.call.postMessage({
-					api:"com.js.getDeviceInfo",
-					data:{
-						info:['idfa','platform','resolution','brand','ov','cate','appId','lang','currTime','av','model','deviceCode']
-					},
-					callback:'deviceInfoInvoke'
-				}) 
-			},
-			getDeviceToken(){
-				window.webkit.messageHandlers.call.postMessage({
-					api:"com.js.deviceToken",
-					data:{},
-					callback:'deviceTokenInvoke'
-				}) 
-			},
-		}
-	}
-</script>
 <style lang="scss">
 @import "./public.scss";
 	.statusBar{