<template>
	<view>
        <mumu-one-code @success='door' definition :readers='["code_128_reader"]'></mumu-one-code>
		
	</view>
</template>

<script>
 import MumuOneCode from '@/uni_modules/mumu-oneCode/components/mumu-oneCode/mumu-oneCode.vue'
	export default {
		data() {
			return {
				
			}
		},
		components:{
			MumuOneCode
		},
		methods: {
			door(code) {
            // uni.scanCode({
            //     success: (res) => {
            //         console.log(res);
            //         console.log(res.result);
            //         const houseIdMatch = res.result.match(/&houseId=([^&]*)/);
            //         const houseIdValue = houseIdMatch ? houseIdMatch[1] : null;
            //         uni.navigateTo({
            //             url: `/subpages/house/pages/housePortrait/housePortrait?resiId=${houseIdValue}`
            //         });
            //     },
            //     fail: (err) => {
            //         console.error(err);
            //     }
            // });
            console.log(code);
                // .then(res => {
                //     uni.navigateBack()
                // })
        },
		}
	}
</script>

<style>

</style>
