You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
46 lines
1.2 KiB
<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>
|
|
|