douyin/src/pages/people/Scan.vue
2021-10-03 14:08:04 +08:00

109 lines
2.0 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div class="Scan">
<img src="../../assets/img/icon/components/gray-back.png" @click="$back" class="back">
<div class="video-ctn">
<video src="http://qy9rc9xff.hn-bkt.clouddn.com/0.mp4"></video>
</div>
<div class="float">
<div class="open-light">
<img src="../../assets/img/icon/qr-code-white.svg" alt="">
<span>轻触照亮</span>
</div>
<div class="option">
<img src="../../assets/img/icon/qr-code-white.svg" alt="">
<span>我的抖音码</span>
</div>
<div class="option">
<img src="../../assets/img/icon/qr-code-white.svg" alt="">
<span>相册</span>
</div>
</div>
<div class="scan-anim">
</div>
</div>
</template>
<script>
//TODO 那个动画没做用css画有点麻烦后面ps p一张图片吧
export default {
name: "Scan",
data() {
return {}
},
computed: {},
created() {
},
methods: {}
}
</script>
<style scoped lang="less">
@import "../../assets/less/index";
.Scan {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
overflow: auto;
color: white;
.back {
z-index: 3;
margin: 2rem 0 0 2rem;
position: fixed;
height: 2rem;
}
.float {
position: fixed;
bottom: 6rem;
display: flex;
justify-content: space-between;
width: 80vw;
left: 10vw;
.option {
display: flex;
flex-direction: column;
align-items: center;
img {
border-radius: 50%;
background: @second-btn-color-tran;
padding: 1.6rem;
height: 2.4rem;
margin-bottom: 1rem;
}
}
.open-light {
position: fixed;
bottom: 16rem;
display: flex;
flex-direction: column;
align-items: center;
left: 50%;
transform: translateX(-50%);
img {
height: 2.4rem;
margin-bottom: 1rem;
}
}
}
.video-ctn {
height: 100vh;
width: 100vw;
video {
height: 100vh;
width: 100vw;
}
}
}
</style>