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.
 
 
 
 

89 lines
1.6 KiB

<template>
<view class="wrap">
<view class="secbar"> <label class="back" @click="back()"></label></view>
<view class="mainwrap3">
<view class="role_wrap"><sVideo :jsonId="jsonId" :sceneId="sceneId"></sVideo></view>
</view>
</view>
</template>
<script>
import sVideo from "@/components/s-video/s-video.vue";
export default {
data() {
return {
page: "",
jsonId: "",
roleId:"",
sceneId:"",
};
},
onLoad(options) {
this.jsonId = options.roleId;
this.sceneId = options.sceneId;
},
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");
.secbar {
position: absolute;
z-index: 999999;
top: 100rpx;
background-color: transparent;
}
.secbar label.back {
position: absolute;
top: 0;
left: 4%;
padding-left: 0;
width: 50rpx;
height: 50rpx;
background: url(/static/images/icon_arbw.png) no-repeat left 40% center;
background-size: auto 50%;
background-color: rgba(255, 255, 255, .2);
border: 1rpx solid rgba(255, 255, 255, .7);
border-radius: 50%;
}
.mainwrap3 {
top: 0;
height: 100%;
background-color: #000;
}
.role_wrap {
position: relative;
margin: 0;
width: 100%;
height: 100%;
}
</style>