fix: 抽签
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="fortune-detail-page">
|
<view class="fortune-detail-page">
|
||||||
<NavBar title="2026 灵马贺岁" :transparent="true"/>
|
<NavBar title="" :transparent="true" color="#ffd700" />
|
||||||
|
|
||||||
<!-- 顶部提示条 -->
|
<!-- 顶部提示条 -->
|
||||||
<!-- <view class="top-banner" v-if="inviterName">
|
<!-- <view class="top-banner" v-if="inviterName">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="fortune-page" >
|
<view class="fortune-page">
|
||||||
<NavBar title="2026 新年运势" :transparent="true" color="#ffd700"/>
|
<NavBar title="2026 新年运势" :transparent="true" color="#ffd700" />
|
||||||
|
|
||||||
<!-- 初始状态:签筒 -->
|
<!-- 初始状态:签筒 -->
|
||||||
<view class="state-initial" v-if="status !== 'result'">
|
<view class="state-initial" v-if="status !== 'result'">
|
||||||
@@ -168,7 +168,8 @@ onShareAppMessage(async () => {
|
|||||||
return {
|
return {
|
||||||
title: "新春祝福",
|
title: "新春祝福",
|
||||||
path: `${cardId.value ? `/pages/fortune/detail?shareToken=${shareTokenRes.shareToken}` : `/pages/fortune/index?shareToken=${shareTokenRes.shareToken}`}`,
|
path: `${cardId.value ? `/pages/fortune/detail?shareToken=${shareTokenRes.shareToken}` : `/pages/fortune/index?shareToken=${shareTokenRes.shareToken}`}`,
|
||||||
imageUrl: "/static/images/bg.jpg",
|
imageUrl:
|
||||||
|
"https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png",
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<view class="stats-body">
|
<view class="stats-body">
|
||||||
<view class="stats-row">
|
<view class="stats-row">
|
||||||
<text class="stats-label">已收集</text>
|
<text class="stats-label">已收集</text>
|
||||||
<text class="stats-num">{{ records.length }}</text>
|
<text class="stats-num">{{ totalCount }}</text>
|
||||||
<text class="stats-label">张好运卡</text>
|
<text class="stats-label">张好运卡</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="progress-bar">
|
<view class="progress-bar">
|
||||||
@@ -57,11 +57,9 @@
|
|||||||
<view class="item-info">
|
<view class="item-info">
|
||||||
<text class="item-title">{{ item.title }}</text>
|
<text class="item-title">{{ item.title }}</text>
|
||||||
<view class="item-footer">
|
<view class="item-footer">
|
||||||
<text class="item-date">{{ item.date }}</text>
|
<text class="item-date">{{
|
||||||
<view class="item-link">
|
formatDate(item.day, "YYYY-MM-DD")
|
||||||
<text>详情</text>
|
}}</text>
|
||||||
<text class="arrow">→</text>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -90,11 +88,11 @@ import { ref, computed } from "vue";
|
|||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import { getList } from "@/api/fortune.js";
|
import { getList } from "@/api/fortune.js";
|
||||||
import NavBar from "@/components/NavBar/NavBar.vue";
|
import NavBar from "@/components/NavBar/NavBar.vue";
|
||||||
|
import { formatDate } from "@/utils/date.js";
|
||||||
// 状态管理
|
// 状态管理
|
||||||
const records = ref([]);
|
const records = ref([]);
|
||||||
const page = ref(1);
|
const page = ref(1);
|
||||||
const curCount = ref(0);
|
const totalCount = ref(0);
|
||||||
const loading = ref(false);
|
const loading = ref(false);
|
||||||
const hasMore = ref(true);
|
const hasMore = ref(true);
|
||||||
|
|
||||||
@@ -145,7 +143,7 @@ const loadData = async () => {
|
|||||||
page.value++;
|
page.value++;
|
||||||
// 简单判断是否还有更多数据
|
// 简单判断是否还有更多数据
|
||||||
hasMore.value = res.hasNext;
|
hasMore.value = res.hasNext;
|
||||||
curCount.value = res.totalCount || 0;
|
totalCount.value = res.totalCount || 0;
|
||||||
} else {
|
} else {
|
||||||
hasMore.value = false;
|
hasMore.value = false;
|
||||||
}
|
}
|
||||||
@@ -165,10 +163,9 @@ const loadMore = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const goDetail = (item) => {
|
const goDetail = (item) => {
|
||||||
// 传递数据到详情页
|
uni.previewImage({
|
||||||
const data = encodeURIComponent(JSON.stringify(item));
|
current: item.imageUrl,
|
||||||
uni.navigateTo({
|
urls: records.value.map((r) => r.imageUrl),
|
||||||
url: `/pages/fortune/detail?data=${data}`,
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -358,7 +358,8 @@ onShareAppMessage(() => {
|
|||||||
return {
|
return {
|
||||||
title: "新春祝福",
|
title: "新春祝福",
|
||||||
path: "/pages/detail/index",
|
path: "/pages/detail/index",
|
||||||
imageUrl: "/static/images/bg.jpg",
|
imageUrl:
|
||||||
|
"https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png",
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
uni.showToast({ title: "分享成功", icon: "success" });
|
uni.showToast({ title: "分享成功", icon: "success" });
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -815,7 +815,8 @@ onShareAppMessage(async () => {
|
|||||||
return {
|
return {
|
||||||
title: "我刚做了一张祝福卡片,送给你",
|
title: "我刚做了一张祝福卡片,送给你",
|
||||||
path: "/pages/detail/index?shareToken=" + shareTokenRes.shareToken,
|
path: "/pages/detail/index?shareToken=" + shareTokenRes.shareToken,
|
||||||
imageUrl: "/static/images/share.jpg",
|
imageUrl:
|
||||||
|
"https://file.lihailezzc.com/resource/13ec1134e6614feadeeaaa9ef21ea96e.png",
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="vip-page" >
|
<view class="vip-page">
|
||||||
<NavBar title="会员中心" />
|
<NavBar title="会员中心" />
|
||||||
|
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
@@ -120,10 +120,20 @@ const selectedPlanIndex = ref(1);
|
|||||||
const plans = ref([]);
|
const plans = ref([]);
|
||||||
|
|
||||||
const benefits = [
|
const benefits = [
|
||||||
{ name: "高级模板", icon: "star-filled", color: "#ff3b30", bg: "#fff0f0" },
|
{ name: "纯净无广", icon: "star-filled", color: "#ff3b30", bg: "#fff0f0" },
|
||||||
{ name: "无限制下载", icon: "image-filled", color: "#ff6b00", bg: "#fff7e6" },
|
{ name: "多次下载", icon: "image-filled", color: "#ff6b00", bg: "#fff7e6" },
|
||||||
{ name: "马年头像框", icon: "medal-filled", color: "#bfa46f", bg: "#fffbe6" },
|
{
|
||||||
{ name: "高速渲染", icon: "upload-filled", color: "#ff3b30", bg: "#fff0f0" },
|
name: "会员精选头像",
|
||||||
|
icon: "medal-filled",
|
||||||
|
color: "#bfa46f",
|
||||||
|
bg: "#fffbe6",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "会员精选模版",
|
||||||
|
icon: "upload-filled",
|
||||||
|
color: "#ff3b30",
|
||||||
|
bg: "#fff0f0",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: "数据永久保存",
|
name: "数据永久保存",
|
||||||
icon: "paperplane-filled",
|
icon: "paperplane-filled",
|
||||||
|
|||||||
BIN
static/.DS_Store
vendored
Normal file
BIN
static/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
static/images/.DS_Store
vendored
Normal file
BIN
static/images/.DS_Store
vendored
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 58 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 72 KiB |
Reference in New Issue
Block a user