|
@@ -1,32 +1,38 @@
|
|
|
<script>
|
|
<script>
|
|
|
import ChatWrapper from "@/components/chat-wrapper/ChatWrapper.vue";
|
|
import ChatWrapper from "@/components/chat-wrapper/ChatWrapper.vue";
|
|
|
|
|
+import LiveFooter from "@/components/live-footer/LiveFooter.vue";
|
|
|
|
|
+import LiveHeader from "@/components/live-header/LiveHeader.vue";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "LiveInteract",
|
|
name: "LiveInteract",
|
|
|
- components: {ChatWrapper}
|
|
|
|
|
|
|
+ components: {LiveHeader, LiveFooter, ChatWrapper}
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
- <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white" :show-indicators="false">
|
|
|
|
|
|
|
+ <van-swipe class="my-swipe"
|
|
|
|
|
+ :autoplay="0"
|
|
|
|
|
+ :loop="false"
|
|
|
|
|
+ :initial-swipe="1"
|
|
|
|
|
+ :show-indicators="false">
|
|
|
<van-swipe-item>
|
|
<van-swipe-item>
|
|
|
- <div style="position: absolute; bottom: 0">
|
|
|
|
|
- <chat-wrapper />
|
|
|
|
|
-
|
|
|
|
|
- <div class="live-footer">
|
|
|
|
|
- <div class="live-input-row">发个弹幕吧~</div>
|
|
|
|
|
- <div class="live-footer-item" style="padding: 6px 5px">
|
|
|
|
|
- <img src="@/assets/cart.png" class="live-footer-icon" />
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="live-footer-item">
|
|
|
|
|
- <img src="@/assets/share.png" class="live-footer-icon" />
|
|
|
|
|
- <span class="live-footer-count">345.9W</span>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ 清除
|
|
|
|
|
+ </van-swipe-item>
|
|
|
|
|
+ <van-swipe-item>
|
|
|
|
|
+ <div class="interact-box">
|
|
|
|
|
+ <live-header />
|
|
|
|
|
+ <div class="footer">
|
|
|
|
|
+ <chat-wrapper />
|
|
|
|
|
+ <live-footer />
|
|
|
|
|
+ <div class="shop-and-gift">
|
|
|
|
|
+ <div class="guide-box">
|
|
|
|
|
+ <img src="https://picsum.photos/200" class="guide-cover" />
|
|
|
|
|
+ <img src="@/assets/close.png" class="close-icon" />
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
- <div class="live-footer-item">
|
|
|
|
|
- <img src="@/assets/like_active.png" class="live-footer-icon" />
|
|
|
|
|
- <span class="live-footer-count">999.9K</span>
|
|
|
|
|
|
|
+ <div class="gift-box">
|
|
|
|
|
+ <img src="@/assets/live/gift.png" class="gift-icon" />
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -42,47 +48,61 @@ export default {
|
|
|
background: rgba(255, 255, 255, 0.5);
|
|
background: rgba(255, 255, 255, 0.5);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.live-footer {
|
|
|
|
|
- margin: 8px 8px 10px;
|
|
|
|
|
|
|
+.interact-box {
|
|
|
|
|
+ height: 100%;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
|
|
- column-gap: 8px;
|
|
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ padding: 14px 0 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.live-input-row {
|
|
|
|
|
- width: 122px;
|
|
|
|
|
- height: 36px;
|
|
|
|
|
|
|
+.shop-and-gift {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 8px;
|
|
|
|
|
+ bottom: 62px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ align-items: flex-end;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+.gift-box {
|
|
|
|
|
+ width: 40px;
|
|
|
|
|
+ height: 40px;
|
|
|
|
|
+ border-radius: 20px;
|
|
|
background: rgba(26, 40, 55, 0.5);
|
|
background: rgba(26, 40, 55, 0.5);
|
|
|
box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
|
|
box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
|
|
|
- border-radius: 18px;
|
|
|
|
|
- font-weight: 400;
|
|
|
|
|
- font-size: 16px;
|
|
|
|
|
- color: rgba(255,255,255,0.5);
|
|
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.live-footer-item {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- column-gap: 4px;
|
|
|
|
|
- background: rgba(26, 40, 55, 0.5);
|
|
|
|
|
- box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
|
|
|
|
|
- border-radius: 18px;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- padding: 6px 10px;
|
|
|
|
|
|
|
+.gift-icon {
|
|
|
|
|
+ width: 20px;
|
|
|
|
|
+ height: 20px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.live-footer-icon {
|
|
|
|
|
- width: 24px;
|
|
|
|
|
- height: 24px;
|
|
|
|
|
|
|
+.guide-box {
|
|
|
|
|
+ width: 80px;
|
|
|
|
|
+ height: 100px;
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ margin-bottom: 16px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.live-footer-count {
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
- color: #FFFFFF;
|
|
|
|
|
|
|
+.guide-cover {
|
|
|
|
|
+ width: 80px;
|
|
|
|
|
+ height: 100px;
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.close-icon {
|
|
|
|
|
+ width: 20px;
|
|
|
|
|
+ height: 20px;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 4px;
|
|
|
|
|
+ right: 4px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
</style>
|