<template>
    <view>
<!--        <AndroidUnlockAuth v-model="show" v-if="platform === 'android'" />
        <IosUnlockAuth v-model="show" v-else-if="platform === 'ios'" /> -->
    </view>
</template>

<script>
// import AndroidUnlockAuth from './components/AndroidUnlockAuth.vue'
// import IosUnlockAuth from './components/IosUnlockAuth.vue'
var bluetooth = require('@/common/bluetooth.js');

export default {
    components: {
        // AndroidUnlockAuth,
        // IosUnlockAuth
    },
    data() {
        return {
            platform: 'android',
            show: false
        }
    },
    onLoad() {
        this._initPlatform();
		
    },
	onshow(){
			const systemInfo = uni.getSystemInfoSync();
			console.log(systemInfo.platform,'systemInfo.platform');
			this.platform = systemInfo.platform;
	},
    methods: {
        open() {
            this.show = true;
        },
        _initPlatform() {
            const systemInfo = uni.getSystemInfoSync();
			console.log(systemInfo.platform,'systemInfo.platform');
            this.platform = systemInfo.platform;
        },
		
    }
}
</script>