<template>
	<view class="content">
		<view @click="getAndroid">安卓测试</view>
		{{androidData}}
		<view @click="gojkorder">集客订单</view>
		<view>救援订单1</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				androidData:'',
			}
		},
		onLoad() {
          window.getAndroid=this.getAndroid;
		//  setTimeout( this.getAndroid(),500)
		 // alert(11)
		 
		 // this.callByAndroid()
		 // window.LoginOut=this.LoginOut
		},
		created() {
			
		},
		methods: {
			gojkorder(){
				uni.navigateTo({
					url:'../myOrder/myOrder'
				})
			},
			// LoginOut(){
			// 	uni.showToast({
			// 		 title: '66666',
			// 		 icon:'none',
			// 		 duration: 6000
			// 	});
			// },
           getAndroid(e){
			   uni.showToast({
			   	 title: '66666',
			   	 icon:'none',
			   	 duration: 6000
			   });
			  
			   this.androidData=e
			   return "hello";
		   },
		   callByAndroid(){
			    alert("Js收到消息");
		   }
		}
	}
</script>

<style scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
