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 class="wrap">
|
|
|
|
|
<!-- <view class="video-wrapper" id="video-container"></view> -->
|
|
|
|
|
<view class="stabar"></view>
|
|
|
|
|
<view class="secbar"> <label class="back" @click="back()"></label></view>
|
|
|
|
|
<view class="mainwrap3">
|
|
|
|
|
<view class="role_wrap"><sVideo :jsonId="jsonId"></sVideo></view>
|
|
|
|
|
</view>
|
|
|
|
|
</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('扫描二维码出现错误')
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
},
|
|
|
|
|
back(){
|
|
|
|
|
uni.navigateBack({
|
|
|
|
|
delta:1,//返回层数,2则上上页
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
sVideo
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
|
|
|
|
@import url("@/static/base_css.css");
|
|
|
|
|
.mainwrap3 {
|
|
|
|
|
top: 90rpx;
|
|
|
|
|
background-color: #000;
|
|
|
|
|
}
|
|
|
|
|
.role_wrap {
|
|
|
|
|
position: relative;
|
|
|
|
|
top: -62rpx;
|
|
|
|
|
margin: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|