From 3a4f47ce2a3382541b913f76e067a8aa2168f4a7 Mon Sep 17 00:00:00 2001 From: qq_41923622 Date: Sat, 22 Mar 2025 21:16:00 +0800 Subject: [PATCH] Sat Mar 22 21:16:00 CST 2025 inscode --- index.html | 18 ++++++++-- src/float/bottomPopup.scss | 68 ++++++++++++++++++++++++++++++++++++-- src/float/bottomPopup.ts | 25 +++++++++++--- 3 files changed, 102 insertions(+), 9 deletions(-) diff --git a/index.html b/index.html index 8097952..d60f171 100644 --- a/index.html +++ b/index.html @@ -43,7 +43,7 @@
- dddd + 💓 💖
@@ -108,6 +108,7 @@
+
- + diff --git a/src/float/bottomPopup.scss b/src/float/bottomPopup.scss index 9de066a..05a3779 100644 --- a/src/float/bottomPopup.scss +++ b/src/float/bottomPopup.scss @@ -209,7 +209,7 @@ opacity: 1; color: #fafafa; border-radius: 20px; - background: rgba(235, 116, 116, 0.5); + background: rgba(235, 90, 118, 0.4); transition: opacity 2s ease-in-out, transform 1s ease-in-out; div { @@ -283,6 +283,68 @@ } } } + + +} + +.bounbottom-popupter-gift-list { + position: fixed; + pointer-events: none; + bottom: 10vh; + z-index: 500; + height: 32vh; + width: 100vw; + overflow: hidden; + + .gift-list-container { + position: relative; + + .gift-list-item { + box-sizing: border-box; + position: absolute; + width: auto; + max-width: 70vw; + min-height: 20px; + text-align: left; + margin-top: 2px; + font-size: 14px; + padding: 4px 8px; + opacity: 1; + color: #fafafa; + border-radius: 30px; + background: rgba(235, 90, 118, 0.5); + display: flex; + flex-wrap: nowrap; + align-items: center; + padding-right: 40px; + .gift-list-avatar { + border-radius: 50%; + border: 3px solid #ffb3b3; + overflow: hidden; + width: 36px; + height: 36px; + box-shadow: 0 0 10px rgba(255, 182, 193, 0.6); + transform: translateZ(20px); + img { + width: 36px; + height: auto; + } + margin-right: 5px; + } + + .gift-list-content { + white-space: nowrap; + } + .gift-list-gift-img{ + position: absolute; + right: 15px; + img{ + width: auto; + height: 50px; + } + } + } + } } @keyframes tanlianxia { @@ -343,8 +405,8 @@ border-radius: 40px; background-image: url('https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250322183844363-2055895336.png'); background-repeat: no-repeat; - background-size: 100%,100%; - background-position-y: 30px; + background-size: 100%, 100%; + background-position-y: 30px; } .form { diff --git a/src/float/bottomPopup.ts b/src/float/bottomPopup.ts index ceac3b6..36c7c4e 100644 --- a/src/float/bottomPopup.ts +++ b/src/float/bottomPopup.ts @@ -207,6 +207,23 @@ export function BottomPopup(props: any) { } } +export function GiftsListPopup(props:any) { + return { + $template:'#gifts-list-popup-template', + giftList:[{ + avatar: 'https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250322202646157-442978556.png', + avatarClass: '', + text: "棘祥杏福 情定终身", + giftImg: "https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250322205303857-804953175.png", + giftImg2: "https://vercel-proxy.fivecc.cn/static-img/1775464/202503/1775464-20250322205245772-817504696.png" + }], + isShow: false, + mounted(){ + console.log(this.giftList) + } + } +} + export function MusicPlay(props: any) { return { isPlay: true, @@ -223,9 +240,9 @@ export function MusicPlay(props: any) { audio.pause(); } }, - mounted() { - this.playMusic() - } + mounted() { + this.playMusic() + } } } -export default { floatStore, BottomPopup, FormPopup,MusicPlay } \ No newline at end of file +export default { floatStore, BottomPopup, FormPopup, GiftsListPopup, MusicPlay } \ No newline at end of file -- GitLab