museum-H5/pages/scan/index.vue

25 lines
496 B
Vue
Raw Normal View History

2023-12-20 11:14:20 +00:00
<template>
<div>
2023-12-21 06:04:08 +00:00
<mumuGetQrcode @success="qrcodeSucess" @error="qrcodeError"></mumuGetQrcode>
2023-12-21 09:01:53 +00:00
2023-12-20 11:14:20 +00:00
</div>
</template>
<script setup>
import mumuGetQrcode from "../../components/mumu-getQrcode/mumu-getQrcode.vue";
2023-12-21 09:01:53 +00:00
2023-12-21 06:04:08 +00:00
const qrcodeSucess = (id) => {
uni.showModal({
title: id,
content: id,
});
2023-12-20 11:14:20 +00:00
}
const qrcodeError = (err) => {
console.log(err);
uni.showModal({
title: "摄像头授权失败",
});
}
</script>
<style lang="scss" scoped></style>