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