| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <script>
- import FullProgress from "@/components/full-progress/FullProgress.vue";
- import FullShare from "@/components/full-share/FullShare.vue";
- export default {
- name: "FullControl",
- components: {FullShare, FullProgress},
- model: {
- event: "change",
- prop: "visible"
- },
- props: {
- visible: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- }
- },
- methods: {
- // 退出全屏
- handleExitFullScreen() {
- }
- }
- }
- </script>
- <template>
- <div class="full-control" :class="{'show': visible}">
- <div>
- <div class="header">
- <div class="title-row">
- <van-icon name="arrow-left" color="#ffffff" :size="22" @click.stop="$emit('exit')" />
- <div class="title">无人出租车上路,拉动的不仅仅是人拉动的不l</div>
- </div>
- <div class="tool">
- <img src="@/assets/like.png" class="tool-icon" />
- <img src="@/assets/share.png" class="tool-icon" />
- <img src="@/assets/fenestrule.png" class="tool-icon" />
- </div>
- </div>
- <div class="user-info-box">
- <div class="user-info-row">
- <img class="user-avatar" src="https://picsum.photos/200" />
- <span class="user-name">刘骜</span>
- <div class="follow-status">关注</div>
- </div>
- <div class="live-status">
- <img src="@/assets/undulate.png" class="live-icon" />
- <span>直播中</span>
- </div>
- </div>
- </div>
- <full-progress />
- <full-share />
- </div>
- </template>
- <style scoped>
- .full-control {
- position: fixed;
- top: calc(50% - 50vw);
- left: calc(50% - 50vh);
- z-index: 99;
- width: 100vh;
- height: 100vw;
- display: none;
- background: transparent;
- }
- .show {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- }
- .header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- box-sizing: border-box;
- padding: 10px 60px;
- }
- .title-row {
- display: flex;
- align-items: center;
- column-gap: 16px;
- }
- .title {
- font-weight: 600;
- font-size: 18px;
- color: #FFFFFF;
- position: relative;
- }
- .title::before {
- content: "";
- width: 100%;
- height: 100%;
- background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
- position: absolute;
- left: 0;
- top: 0;
- }
- .tool {
- display: flex;
- align-items: center;
- column-gap: 30px;
- }
- .tool-icon {
- width: 26px;
- height: 26px;
- }
- .user-info-box {
- box-sizing: border-box;
- padding-left: 60px;
- }
- .user-info-row {
- width: fit-content;
- height: 32px;
- background: rgba(0, 0, 0, 0.8);
- border-radius: 16px;
- box-sizing: border-box;
- padding: 0 4px;
- display: flex;
- align-items: center;
- column-gap: 8px;
- margin-bottom: 8px;
- }
- .user-avatar {
- width: 24px;
- height: 24px;
- border-radius: 50%;
- }
- .user-name {
- font-weight: 500;
- font-size: 15px;
- color: #FFFFFF;
- }
- .follow-status {
- height: 24px;
- background: #EC2E31;
- border-radius: 14px;
- box-sizing: border-box;
- padding: 0 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- font-weight: 400;
- font-size: 13px;
- color: #FFFFFF;
- }
- .live-status {
- width: 50px;
- height: 18px;
- background: rgba(0, 0, 0, 0.8);
- border-radius: 2px;
- font-weight: 400;
- font-size: 10px;
- color: #EC2E31;
- display: flex;
- align-items: center;
- justify-content: center;
- column-gap: 4px;
- }
- .live-icon {
- width: 8px;
- height: 10px;
- }
- </style>
|