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.
49 lines
833 B
49 lines
833 B
|
3 years ago
|
<template>
|
||
|
|
<view>
|
||
|
|
<view class="video-wrapper" id="video-container">
|
||
|
|
</view>
|
||
|
|
<sVideo jsonId="6215c8757e8947c8aae0fd0b3d2d503b"></sVideo>
|
||
|
|
|
||
|
|
<tabbar :page="page"></tabbar>
|
||
|
|
</view>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
import tabbar from "@/components/tabbar/tabbar.vue";
|
||
|
|
import sVideo from "@/components/s-video/s-video.vue";
|
||
|
|
export default {
|
||
|
|
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
page: "",
|
||
|
|
};
|
||
|
|
},
|
||
|
|
onReady() {
|
||
|
|
this.QR();
|
||
|
|
},
|
||
|
|
onShow() {
|
||
|
|
this.page = "scan"
|
||
|
|
},
|
||
|
|
methods: {
|
||
|
|
QR() {
|
||
|
|
// uni.scanCode({
|
||
|
|
// onlyFromCamera: true,
|
||
|
|
// success: (res) => {
|
||
|
|
// console.log('扫描二维码成功,结果:' + res.result);
|
||
|
|
// },
|
||
|
|
// error: (res) => {
|
||
|
|
// console.log('扫描二维码出现错误')
|
||
|
|
// }
|
||
|
|
// })
|
||
|
|
},
|
||
|
|
},
|
||
|
|
components: {
|
||
|
|
tabbar,
|
||
|
|
sVideo
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss">
|
||
|
|
|
||
|
|
</style>
|