Files
spring-festival-greetings/pages/fortune/index.vue

798 lines
18 KiB
Vue
Raw Normal View History

2026-01-15 10:27:14 +08:00
<template>
2026-02-03 05:55:04 +08:00
<view class="fortune-page">
<NavBar title="2026 新年运势" :transparent="true" color="#ffd700" />
2026-01-15 10:27:14 +08:00
<!-- 初始状态签筒 -->
<view class="state-initial" v-if="status !== 'result'">
<view class="header-text">
<text class="title">点击开启你的</text>
<text class="year">2026</text>
<text class="title">年度关键词</text>
<view class="underline"></view>
</view>
<view class="shaker-container" :class="{ shaking: status === 'shaking' }">
<view class="shaker-body">
<view class="sticks">
<view class="stick s1"></view>
<view class="stick s2"></view>
<view class="stick s3"></view>
<view class="stick s4"></view>
<view class="stick s5"></view>
</view>
<view class="label-box">
<text class="label-text">祈福</text>
</view>
</view>
</view>
<button
class="action-btn"
@tap="startShake"
:disabled="status === 'shaking'"
>
{{ status === "shaking" ? "抽取中..." : "立即抽取" }}
</button>
2026-01-27 21:21:46 +08:00
<view v-if="isLoggedIn" class="footer-info">
2026-01-15 10:27:14 +08:00
<text class="info-icon"></text>
2026-01-21 16:50:44 +08:00
<text v-if="allowShareCount - useShareCount > 0">
今日还有 {{ remainingCount }} 次抽取机会分享可增加次数
</text>
<text v-else> 今日还有 {{ remainingCount }} 次抽取机会 </text>
2026-01-15 10:27:14 +08:00
</view>
</view>
<!-- 结果状态运势卡片 -->
<view class="state-result" v-else>
2026-01-20 20:49:19 +08:00
<view
class="result-card"
id="result-card"
:class="{ 'image-mode': !!currentFortune.imageUrl }"
>
<template v-if="currentFortune.imageUrl">
<image
:src="currentFortune.imageUrl"
mode="widthFix"
class="fortune-image"
/>
</template>
<template v-else>
<view class="card-header">
<text class="year-tag">2026 乙巳年</text>
2026-01-15 10:27:14 +08:00
</view>
2026-01-20 20:49:19 +08:00
<view class="card-body">
<view class="icon-circle">
<text class="result-icon"></text>
</view>
<text class="result-title">{{ currentFortune.title }}</text>
<view class="divider"></view>
<text class="result-desc">{{ currentFortune.desc }}</text>
<text class="result-sub">旧岁千般皆如意新年万事定称心</text>
2026-01-15 10:27:14 +08:00
</view>
2026-01-20 20:49:19 +08:00
<view class="card-footer">
<view class="footer-left">
<text class="sub-en">LUCKY CHARM</text>
<text class="sub-cn">每日运势签</text>
</view>
<view class="footer-right">
<text class="scan-tip">长按识别\n扫码祈福</text>
<view class="qr-code"></view>
</view>
2026-01-15 10:27:14 +08:00
</view>
2026-01-20 20:49:19 +08:00
</template>
2026-01-15 10:27:14 +08:00
</view>
<view class="result-actions">
<button class="share-btn" open-type="share">
<text class="icon"></text> 分享获取额外抽取机会
</button>
<view class="secondary-btns">
<button class="sec-btn" @tap="saveCard">
<text class="icon">📥</text> 保存运势卡片
</button>
2026-01-21 22:33:37 +08:00
<button class="sec-btn" @tap="goToRecord">
2026-01-15 10:27:14 +08:00
<text class="icon"></text> 我的记录
</button>
</view>
<view class="footer-status">
2026-01-21 16:50:44 +08:00
已分享 {{ useShareCount }}/{{ allowShareCount }} · 今日剩余机会:
{{ remainingCount }}
2026-01-15 10:27:14 +08:00
</view>
</view>
</view>
<!-- Canvas 用于生成图片 (隐藏) -->
2026-01-27 21:21:46 +08:00
<!-- <canvas
2026-01-15 10:27:14 +08:00
canvas-id="shareCanvas"
class="share-canvas"
style="width: 300px; height: 500px; position: fixed; left: 9999px"
2026-01-27 21:21:46 +08:00
></canvas> -->
2026-01-21 16:50:44 +08:00
<LoginPopup ref="loginPopupRef" @logind="handleLogind" />
2026-01-15 10:27:14 +08:00
</view>
</template>
<script setup>
2026-01-21 16:50:44 +08:00
import { ref, onUnmounted, computed } from "vue";
import { onLoad, onShow, onShareAppMessage } from "@dcloudio/uni-app";
2026-01-20 20:49:19 +08:00
import { abilityCheck } from "@/api/system.js";
import { drawFortune } from "@/api/fortune.js";
2026-02-05 23:43:51 +08:00
import { getShareReward } from "@/api/system.js";
2026-01-21 16:50:44 +08:00
import LoginPopup from "@/components/LoginPopup/LoginPopup.vue";
import { useUserStore } from "@/stores/user";
2026-02-05 23:43:51 +08:00
import {
getShareToken,
saveRemoteImageToLocal,
saveRecordRequest,
} from "@/utils/common.js";
2026-01-31 23:44:00 +08:00
import NavBar from "@/components/NavBar/NavBar.vue";
2026-01-21 16:50:44 +08:00
const userStore = useUserStore();
const loginPopupRef = ref(null);
const isLoggedIn = computed(() => !!userStore.userInfo.nickName);
2026-01-15 10:27:14 +08:00
const status = ref("initial"); // initial, shaking, result
2026-01-20 20:49:19 +08:00
const remainingCount = ref(0);
2026-01-21 16:50:44 +08:00
const allowShareCount = ref(0);
const useShareCount = ref(0);
2026-01-20 20:49:19 +08:00
const canUse = ref(true);
2026-01-15 10:27:14 +08:00
2026-01-16 15:09:19 +08:00
// 音效控制
const audioContext = uni.createInnerAudioContext();
audioContext.src = "/static/music/shake.mp3";
let playCount = 0;
audioContext.onEnded(() => {
playCount++;
if (playCount < 3) {
audioContext.play();
}
});
2026-01-20 20:49:19 +08:00
onLoad(() => {});
onShow(() => {
checkDrawStatus();
});
2026-01-21 16:50:44 +08:00
onUnmounted(() => {
audioContext.destroy();
});
onShareAppMessage(async () => {
2026-02-05 23:43:51 +08:00
const shareToken = await getShareToken("fortune_draw", cardId.value);
2026-01-21 16:50:44 +08:00
getRewardByShare();
return {
2026-02-03 12:35:26 +08:00
title: "马年运势我已经抽过了,你的会是什么?",
2026-02-06 09:42:56 +08:00
path: `${cardId.value ? `/pages/fortune/detail?shareToken=${shareToken}` : `/pages/fortune/index?shareToken=${shareToken}`}`,
2026-02-03 05:55:04 +08:00
imageUrl:
2026-02-08 15:01:42 +08:00
"https://file.lihailezzc.com/resource/8dd026d76ef7a63d123b7fd698fb989b.png",
2026-01-21 16:50:44 +08:00
};
});
const handleLogind = async () => {
checkDrawStatus();
};
const getRewardByShare = async () => {
const res = await getShareReward({ scene: "fortune_draw" });
if (res.success) {
uni.showToast({ title: "分享成功,额外抽取机会已增加" });
checkDrawStatus();
}
};
2026-01-20 20:49:19 +08:00
const checkDrawStatus = async () => {
2026-01-21 16:50:44 +08:00
if (!isLoggedIn.value) return;
2026-01-20 20:49:19 +08:00
const res = await abilityCheck("fortune_draw");
2026-01-27 21:21:46 +08:00
remainingCount.value = res.remain || 0;
allowShareCount.value = res.allowShareCount || 0;
useShareCount.value = res.useShareCount || 0;
2026-01-20 20:49:19 +08:00
};
2026-01-21 16:50:44 +08:00
const currentFortune = ref({});
const cardId = ref("");
2026-01-15 10:27:14 +08:00
2026-01-21 22:33:37 +08:00
const goToRecord = () => {
uni.navigateTo({
url: "/pages/fortune/record",
});
};
2026-01-20 20:49:19 +08:00
const startShake = async () => {
2026-01-21 16:50:44 +08:00
if (!isLoggedIn.value) {
loginPopupRef.value.open();
return;
}
2026-01-15 10:27:14 +08:00
if (remainingCount.value <= 0) {
uni.showToast({ title: "今日次数已用完", icon: "none" });
return;
}
status.value = "shaking";
2026-01-16 15:09:19 +08:00
// 播放音效
playCount = 0;
audioContext.play();
2026-01-15 10:27:14 +08:00
// 模拟摇晃动画和数据请求
2026-01-20 20:49:19 +08:00
const minTime = 2000;
const startT = Date.now();
try {
const res = await drawFortune();
const endT = Date.now();
const waitTime = Math.max(0, minTime - (endT - startT));
setTimeout(() => {
currentFortune.value = res;
2026-01-21 16:50:44 +08:00
cardId.value = res.dataId;
2026-01-20 20:49:19 +08:00
status.value = "result";
remainingCount.value--;
}, waitTime);
} catch (e) {
setTimeout(() => {
status.value = "initial";
uni.showToast({ title: "网络请求失败", icon: "none" });
}, minTime);
}
2026-01-15 10:27:14 +08:00
};
const reset = () => {
status.value = "initial";
};
const saveCard = () => {
2026-01-20 20:49:19 +08:00
if (currentFortune.value.imageUrl) {
uni.showLoading({ title: "保存中..." });
2026-01-27 21:21:46 +08:00
saveRemoteImageToLocal(currentFortune.value.imageUrl);
saveRecordRequest(
"",
cardId.value,
"fortune_draw",
currentFortune.value.imageUrl,
);
2026-01-20 20:49:19 +08:00
return;
}
2026-01-27 21:21:46 +08:00
// uni.showLoading({ title: "生成中..." });
// const ctx = uni.createCanvasContext("shareCanvas");
// // 绘制背景
// ctx.setFillStyle("#FFFBF0");
// ctx.fillRect(0, 0, 300, 500);
// // 绘制外边框
// ctx.setStrokeStyle("#E6CAA0");
// ctx.setLineWidth(1);
// ctx.strokeRect(0, 0, 300, 500);
// // 绘制内装饰边框
// ctx.setStrokeStyle("#D4AF37");
// ctx.setLineWidth(2);
// ctx.strokeRect(10, 10, 280, 480);
// // 绘制年份标签
// ctx.setFillStyle("#E63946");
// // 圆角矩形模拟(简化)
// ctx.fillRect(100, 40, 100, 24);
// ctx.setFillStyle("#FFFFFF");
// ctx.setFontSize(14);
// ctx.setTextAlign("center");
// ctx.fillText("2026 乙巳年", 150, 57);
// // 绘制标题
// ctx.setFillStyle("#C0392B");
// ctx.setFontSize(32);
// ctx.font = "bold 32px serif";
// ctx.fillText(currentFortune.value.title, 150, 120);
// // 绘制分隔线
// ctx.setStrokeStyle("#D4AF37");
// ctx.beginPath();
// ctx.moveTo(130, 140);
// ctx.lineTo(170, 140);
// ctx.stroke();
// // 绘制描述
// ctx.setFillStyle("#333333");
// ctx.setFontSize(16);
// // 简单换行处理(假设文字不长)
// ctx.fillText(currentFortune.value.desc, 150, 180);
// // 绘制底部文字
// ctx.setFillStyle("#888888");
// ctx.setFontSize(12);
// ctx.fillText("旧岁千般皆如意,新年万事定称心。", 150, 220);
// ctx.draw(false, () => {
// uni.canvasToTempFilePath({
// canvasId: "shareCanvas",
// success: (res) => {
// uni.saveImageToPhotosAlbum({
// filePath: res.tempFilePath,
// success: () => {
// uni.hideLoading();
// uni.showToast({ title: "已保存到相册" });
// },
// fail: () => {
// uni.hideLoading();
// uni.showToast({ title: "保存失败", icon: "none" });
// },
// });
// },
// fail: (err) => {
// uni.hideLoading();
// console.error(err);
// },
// });
// });
2026-01-15 10:27:14 +08:00
};
</script>
<style scoped>
.fortune-page {
min-height: 100vh;
2026-01-21 16:50:44 +08:00
background: radial-gradient(
circle at 50% 30%,
#d93030 0%,
#8b0000 60%,
#4a0000 100%
);
2026-01-15 10:27:14 +08:00
color: #ffe4c4;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
2026-01-21 16:50:44 +08:00
overflow-x: hidden;
}
/* 装饰纹理背景 */
.fortune-page::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
repeating-linear-gradient(
45deg,
rgba(255, 215, 0, 0.03) 0,
rgba(255, 215, 0, 0.03) 1px,
transparent 1px,
transparent 10px
),
repeating-linear-gradient(
-45deg,
rgba(255, 215, 0, 0.03) 0,
rgba(255, 215, 0, 0.03) 1px,
transparent 1px,
transparent 10px
);
pointer-events: none;
z-index: 0;
2026-01-15 10:27:14 +08:00
}
/* 初始状态 */
.state-initial {
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
2026-02-01 00:14:19 +08:00
justify-content: space-between;
padding-top: 130px;
padding-bottom: 40px;
2026-01-21 16:50:44 +08:00
position: relative;
z-index: 1;
2026-01-15 10:27:14 +08:00
}
.header-text {
text-align: center;
2026-02-01 00:14:19 +08:00
margin-bottom: 60px;
2026-01-15 10:27:14 +08:00
}
.title {
2026-01-21 16:50:44 +08:00
font-size: 22px;
color: #ffe4c4;
letter-spacing: 2px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
2026-01-15 10:27:14 +08:00
}
.year {
2026-01-21 16:50:44 +08:00
font-size: 32px;
2026-01-15 10:27:14 +08:00
font-weight: bold;
color: #ffd700;
2026-01-21 16:50:44 +08:00
margin: 0 8px;
font-family: serif;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
position: relative;
}
.year::after {
content: "";
position: absolute;
bottom: -4px;
left: 0;
width: 100%;
height: 3px;
background: rgba(255, 215, 0, 0.6);
border-radius: 2px;
2026-01-15 10:27:14 +08:00
}
.underline {
2026-01-21 16:50:44 +08:00
display: none;
2026-01-15 10:27:14 +08:00
}
/* 签筒动画 */
.shaker-container {
2026-02-01 00:14:19 +08:00
margin-bottom: 50px;
2026-01-15 10:27:14 +08:00
position: relative;
}
.shaker-body {
width: 160px;
2026-01-21 16:50:44 +08:00
height: 250px;
/* 更有质感的木纹/红漆效果 */
background: linear-gradient(
90deg,
#600000 0%,
#a00000 20%,
#d00000 45%,
#d00000 55%,
#a00000 80%,
#600000 100%
);
2026-01-15 10:27:14 +08:00
border-radius: 20px;
2026-01-21 16:50:44 +08:00
border: 4px solid #b8860b;
border-top: none; /* 顶部开口 */
2026-01-15 10:27:14 +08:00
position: relative;
2026-01-21 16:50:44 +08:00
box-shadow:
inset 0 10px 20px rgba(0, 0, 0, 0.4),
0 15px 35px rgba(0, 0, 0, 0.6);
2026-01-15 10:27:14 +08:00
display: flex;
justify-content: center;
align-items: center;
}
2026-01-21 16:50:44 +08:00
/* 签筒口边缘 */
.shaker-body::before {
content: "";
position: absolute;
top: -10px;
left: -4px;
right: -4px;
height: 20px;
border: 4px solid #b8860b;
border-radius: 50%;
background: #400000; /* 内部阴影 */
z-index: -1;
box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.8);
}
2026-01-15 10:27:14 +08:00
.label-box {
width: 60px;
height: 100px;
2026-01-21 16:50:44 +08:00
background: #800000;
border: 2px solid #ffd700;
2026-01-15 10:27:14 +08:00
display: flex;
justify-content: center;
align-items: center;
2026-01-21 16:50:44 +08:00
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
2026-01-15 10:27:14 +08:00
}
.label-text {
2026-01-21 16:50:44 +08:00
font-size: 28px;
2026-01-15 10:27:14 +08:00
color: #ffd700;
writing-mode: vertical-rl;
font-weight: bold;
2026-01-21 16:50:44 +08:00
letter-spacing: 6px;
font-family: serif;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
2026-01-15 10:27:14 +08:00
}
2026-01-21 16:50:44 +08:00
2026-01-15 10:27:14 +08:00
.sticks {
position: absolute;
top: -40px;
left: 50%;
transform: translateX(-50%);
2026-01-21 16:50:44 +08:00
width: 120px;
2026-01-15 10:27:14 +08:00
height: 60px;
display: flex;
justify-content: center;
align-items: flex-end;
2026-01-21 16:50:44 +08:00
z-index: -2;
2026-01-15 10:27:14 +08:00
}
.stick {
2026-01-21 16:50:44 +08:00
width: 14px;
height: 90px;
background: linear-gradient(90deg, #daa520 0%, #ffd700 50%, #daa520 100%);
2026-01-15 10:27:14 +08:00
margin: 0 2px;
border-radius: 4px 4px 0 0;
border: 1px solid #b8860b;
2026-01-21 16:50:44 +08:00
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
2026-01-15 10:27:14 +08:00
}
.s2 {
2026-01-21 16:50:44 +08:00
height: 110px;
2026-01-15 10:27:14 +08:00
}
.s3 {
2026-01-21 16:50:44 +08:00
height: 90px;
background: linear-gradient(90deg, #b8860b 0%, #ffd700 50%, #b8860b 100%);
}
.s4 {
height: 100px;
2026-01-15 10:27:14 +08:00
}
.shaking {
animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both infinite;
}
@keyframes shake {
10%,
90% {
transform: translate3d(-1px, 0, 0) rotate(-1deg);
}
20%,
80% {
transform: translate3d(2px, 0, 0) rotate(2deg);
}
30%,
50%,
70% {
transform: translate3d(-4px, 0, 0) rotate(-4deg);
}
40%,
60% {
transform: translate3d(4px, 0, 0) rotate(4deg);
}
}
.action-btn {
2026-01-21 16:50:44 +08:00
width: 260px;
height: 56px;
line-height: 56px;
background: linear-gradient(180deg, #ffec8b 0%, #ffd700 40%, #daa520 100%);
border-radius: 28px;
2026-01-15 10:27:14 +08:00
color: #590000;
2026-01-21 16:50:44 +08:00
font-size: 20px;
2026-01-15 10:27:14 +08:00
font-weight: bold;
2026-01-21 16:50:44 +08:00
box-shadow:
0 6px 0 #b8860b,
0 15px 20px rgba(0, 0, 0, 0.4);
transition: all 0.1s;
border: none;
}
.action-btn:active {
transform: translateY(4px);
box-shadow:
0 2px 0 #b8860b,
0 5px 10px rgba(0, 0, 0, 0.4);
}
.action-btn[disabled] {
opacity: 0.8;
transform: none;
2026-01-15 10:27:14 +08:00
}
2026-01-21 16:50:44 +08:00
2026-01-15 10:27:14 +08:00
.footer-info {
2026-01-21 16:50:44 +08:00
margin-top: 30px;
font-size: 13px;
color: rgba(255, 228, 196, 0.8);
2026-01-15 10:27:14 +08:00
display: flex;
align-items: center;
2026-01-21 16:50:44 +08:00
background: rgba(0, 0, 0, 0.2);
padding: 8px 16px;
border-radius: 20px;
2026-01-15 10:27:14 +08:00
}
.info-icon {
2026-01-21 16:50:44 +08:00
margin-right: 6px;
font-size: 15px;
2026-01-15 10:27:14 +08:00
}
/* 结果状态 */
.state-result {
width: 100%;
2026-02-03 12:22:15 +08:00
padding: 130px 30px 20px;
2026-01-15 10:27:14 +08:00
animation: fadeIn 0.8s ease-out;
2026-01-21 16:50:44 +08:00
position: relative;
z-index: 1;
2026-01-15 10:27:14 +08:00
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.result-card {
background: #fffbf0;
2026-01-21 16:50:44 +08:00
border-radius: 12px;
padding: 24px;
2026-01-15 10:27:14 +08:00
position: relative;
2026-01-21 16:50:44 +08:00
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
2026-01-15 10:27:14 +08:00
margin-bottom: 30px;
2026-01-21 16:50:44 +08:00
border: 1px solid #e6caa0;
2026-01-15 10:27:14 +08:00
}
2026-01-21 16:50:44 +08:00
/* 增加卡片内边框纹理 */
.result-card:not(.image-mode)::after {
content: "";
position: absolute;
top: 6px;
left: 6px;
right: 6px;
bottom: 6px;
border: 1px solid #d4af37;
border-radius: 8px;
pointer-events: none;
}
2026-01-20 20:49:19 +08:00
.result-card.image-mode {
padding: 0;
overflow: hidden;
background: transparent;
2026-01-21 16:50:44 +08:00
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
border: none;
2026-01-20 20:49:19 +08:00
}
2026-01-21 16:50:44 +08:00
.result-card.image-mode::after {
display: none;
}
2026-01-20 20:49:19 +08:00
.fortune-image {
width: 100%;
display: block;
2026-01-21 16:50:44 +08:00
border-radius: 12px;
2026-01-20 20:49:19 +08:00
}
2026-01-21 16:50:44 +08:00
2026-01-15 10:27:14 +08:00
.card-header {
text-align: center;
2026-01-21 16:50:44 +08:00
margin-bottom: 24px;
2026-01-15 10:27:14 +08:00
}
.year-tag {
2026-01-21 16:50:44 +08:00
background: linear-gradient(90deg, #e63946 0%, #d62828 100%);
2026-01-15 10:27:14 +08:00
color: #fff;
2026-01-21 16:50:44 +08:00
padding: 6px 20px;
2026-01-15 10:27:14 +08:00
border-radius: 20px;
font-size: 14px;
2026-01-21 16:50:44 +08:00
font-weight: bold;
box-shadow: 0 4px 10px rgba(214, 40, 40, 0.3);
letter-spacing: 1px;
2026-01-15 10:27:14 +08:00
}
.card-body {
text-align: center;
margin-bottom: 40px;
}
.icon-circle {
2026-01-21 16:50:44 +08:00
width: 90px;
height: 90px;
background: rgba(230, 57, 70, 0.08);
2026-01-15 10:27:14 +08:00
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto 20px;
2026-01-21 16:50:44 +08:00
border: 1px solid rgba(230, 57, 70, 0.2);
2026-01-15 10:27:14 +08:00
}
.result-icon {
2026-01-21 16:50:44 +08:00
font-size: 48px;
2026-01-15 10:27:14 +08:00
}
.result-title {
2026-01-21 16:50:44 +08:00
font-size: 40px;
color: #c0392b;
2026-01-15 10:27:14 +08:00
font-weight: bold;
display: block;
margin-bottom: 16px;
2026-01-21 16:50:44 +08:00
font-family: serif;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
2026-01-15 10:27:14 +08:00
}
.divider {
2026-01-21 16:50:44 +08:00
width: 60px;
height: 3px;
background: linear-gradient(90deg, transparent, #d4af37, transparent);
2026-01-15 10:27:14 +08:00
margin: 0 auto 20px;
}
.result-desc {
2026-01-21 16:50:44 +08:00
font-size: 18px;
2026-01-15 10:27:14 +08:00
color: #333;
display: block;
2026-01-21 16:50:44 +08:00
margin-bottom: 16px;
line-height: 1.6;
font-weight: 500;
2026-01-15 10:27:14 +08:00
}
.result-sub {
font-size: 14px;
2026-01-21 16:50:44 +08:00
color: #888;
font-style: italic;
2026-01-15 10:27:14 +08:00
}
.card-footer {
2026-01-21 16:50:44 +08:00
border-top: 1px dashed #e0e0e0;
padding-top: 20px;
2026-01-15 10:27:14 +08:00
display: flex;
justify-content: space-between;
align-items: center;
}
.footer-left {
display: flex;
flex-direction: column;
}
.sub-en {
font-size: 10px;
2026-01-21 16:50:44 +08:00
color: #aaa;
letter-spacing: 2px;
margin-bottom: 2px;
2026-01-15 10:27:14 +08:00
}
.sub-cn {
2026-01-21 16:50:44 +08:00
font-size: 16px;
2026-01-15 10:27:14 +08:00
font-weight: bold;
2026-01-21 16:50:44 +08:00
color: #555;
font-family: serif;
2026-01-15 10:27:14 +08:00
}
.scan-tip {
font-size: 10px;
color: #999;
text-align: right;
2026-01-21 16:50:44 +08:00
margin-right: 10px;
line-height: 1.4;
2026-01-15 10:27:14 +08:00
}
.qr-code {
2026-01-21 16:50:44 +08:00
width: 48px;
height: 48px;
background: #eee;
background-image: url("https://file.lihailezzc.com/resource/qr-placeholder.png");
2026-01-15 10:27:14 +08:00
background-size: cover;
2026-01-21 16:50:44 +08:00
border-radius: 4px;
2026-01-15 10:27:14 +08:00
}
.limit-tip {
text-align: center;
2026-01-21 16:50:44 +08:00
color: rgba(255, 255, 255, 0.8);
font-size: 13px;
margin-bottom: 16px;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
2026-01-15 10:27:14 +08:00
}
.share-btn {
2026-01-21 16:50:44 +08:00
background: linear-gradient(90deg, #e63946 0%, #d62828 100%);
2026-01-15 10:27:14 +08:00
color: #fff;
border-radius: 25px;
font-size: 16px;
2026-01-21 16:50:44 +08:00
font-weight: bold;
2026-01-15 10:27:14 +08:00
margin-bottom: 16px;
display: flex;
justify-content: center;
align-items: center;
2026-01-21 16:50:44 +08:00
height: 48px;
box-shadow: 0 4px 12px rgba(214, 40, 40, 0.4);
border: none;
2026-01-15 10:27:14 +08:00
}
.secondary-btns {
display: flex;
justify-content: space-between;
2026-01-21 16:50:44 +08:00
margin-bottom: 20px;
2026-01-15 10:27:14 +08:00
}
.sec-btn {
width: 48%;
2026-01-21 16:50:44 +08:00
height: 44px;
background: rgba(255, 255, 255, 0.9);
color: #8b0000;
2026-01-15 10:27:14 +08:00
font-size: 14px;
2026-01-21 16:50:44 +08:00
font-weight: 600;
border-radius: 22px;
2026-01-15 10:27:14 +08:00
display: flex;
justify-content: center;
align-items: center;
2026-01-21 16:50:44 +08:00
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
border: none;
2026-01-15 10:27:14 +08:00
}
.footer-status {
text-align: center;
font-size: 12px;
2026-01-21 16:50:44 +08:00
color: rgba(255, 215, 0, 0.8);
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
2026-01-15 10:27:14 +08:00
}
.icon {
margin-right: 6px;
}
</style>