fix: xinchun
This commit is contained in:
@@ -218,7 +218,7 @@ const formatDate = (dateStr) => {
|
||||
|
||||
const getDefaultName = (item) => {
|
||||
// Simple deterministic name generation based on ID char code sum
|
||||
if (!item.id) return "新春头像";
|
||||
if (!item.id) return "精美头像";
|
||||
let sum = 0;
|
||||
for (let i = 0; i < item.id.length; i++) {
|
||||
sum += item.id.charCodeAt(i);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="greeting-page">
|
||||
<NavBar title="我的新春祝福" background="transparent" />
|
||||
<NavBar title="我的真挚祝福" background="transparent" />
|
||||
|
||||
<!-- Header Stats -->
|
||||
<view class="header-stats">
|
||||
@@ -19,7 +19,7 @@
|
||||
</view>
|
||||
<view class="divider"></view>
|
||||
<view class="stats-right">
|
||||
<text class="label">马年运势</text>
|
||||
<text class="label">今日运势</text>
|
||||
<text class="value red-text">一马当先</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -79,7 +79,7 @@
|
||||
</view>
|
||||
|
||||
<view class="footer-note" v-if="!loading && list.length > 0">
|
||||
<text>2026 丙午马年 · 祝福管理助手</text>
|
||||
<text>2026 精美头像壁纸祝福</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
<view class="fab-btn" @tap="onMake">
|
||||
<view class="fab-content">
|
||||
<text class="fab-emoji">✍️</text>
|
||||
<text>新春制作</text>
|
||||
<text>快速制作</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -146,7 +146,7 @@ onShareAppMessage(async (options) => {
|
||||
const shareToken = await getShareToken("greeting_page", "");
|
||||
getShareReward({ scene: "greeting_page" });
|
||||
return {
|
||||
title: "新年好运已送达 🎊|祝福卡·头像·壁纸",
|
||||
title: "送你一份好运祝福 🎁|头像·壁纸·祝福卡",
|
||||
path: `/pages/index/index?shareToken=${shareToken}`,
|
||||
imageUrl:
|
||||
"https://file.lihailezzc.com/resource/8dd026d76ef7a63d123b7fd698fb989b.png",
|
||||
@@ -197,12 +197,12 @@ const formatDate = (dateStr) => {
|
||||
|
||||
const getTagText = (item) => {
|
||||
// if (item.status === "draft") return "草稿";
|
||||
return item?.title?.name || item.festival || "新春快乐";
|
||||
return item?.title?.name || item.festival || "真挚祝福";
|
||||
};
|
||||
|
||||
const getTitle = (item) => {
|
||||
const title =
|
||||
(item?.blessingTo || "祝您") + (item?.content?.content || "新春快乐");
|
||||
(item?.blessingTo || "祝您") + (item?.content?.content || "万事如意");
|
||||
return title.length > 10 ? title.substring(0, 10) + "..." : title;
|
||||
};
|
||||
|
||||
|
||||
@@ -122,9 +122,9 @@
|
||||
<view class="footer">
|
||||
<view class="footer-blessing">
|
||||
<uni-icons type="vip-filled" size="14" color="#ff3b30" />
|
||||
<text>祝您2026新春大吉,万事如意</text>
|
||||
<text>祝您 万事大吉,万事如意</text>
|
||||
</view>
|
||||
<view class="footer-copy">2026 丙午马年 · 官方出品</view>
|
||||
<view class="footer-copy">官方出品</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -193,6 +193,11 @@ const faqList = ref([
|
||||
},
|
||||
]);
|
||||
|
||||
const copyright = [
|
||||
"如有疑问,请通过“我的-使用说明”联系客服处理。",
|
||||
"最终解释权归 2026 助手团队所有。",
|
||||
];
|
||||
|
||||
const toggleCategory = (index) => {
|
||||
faqList.value[index].expanded = !faqList.value[index].expanded;
|
||||
};
|
||||
|
||||
@@ -65,22 +65,22 @@
|
||||
<view class="menu-group">
|
||||
<view class="menu-item" @tap="navTo('greetings')">
|
||||
<view class="icon-box red-bg"><text>🧧</text></view>
|
||||
<text class="menu-text">我的新春祝福</text>
|
||||
<text class="menu-text">我的美好祝福</text>
|
||||
<text class="arrow">›</text>
|
||||
</view>
|
||||
<view class="menu-item" @tap="navTo('fortune-record')">
|
||||
<view class="icon-box orange-bg"><text>📹</text></view>
|
||||
<text class="menu-text">我的新年运势</text>
|
||||
<text class="menu-text">我的每日运势</text>
|
||||
<text class="arrow">›</text>
|
||||
</view>
|
||||
<view class="menu-item" @tap="navTo('avatar')">
|
||||
<view class="icon-box pink-bg"><text>☺</text></view>
|
||||
<text class="menu-text">我的新春头像</text>
|
||||
<text class="menu-text">我的专属头像</text>
|
||||
<text class="arrow">›</text>
|
||||
</view>
|
||||
<view class="menu-item" @tap="navTo('wallpaper')">
|
||||
<view class="icon-box yellow-bg"><text>🖼</text></view>
|
||||
<text class="menu-text">我的新春壁纸</text>
|
||||
<text class="menu-text">我的精美壁纸</text>
|
||||
<view class="new-badge">NEW</view>
|
||||
<text class="arrow">›</text>
|
||||
</view>
|
||||
@@ -121,7 +121,7 @@
|
||||
</view>
|
||||
|
||||
<!-- Footer -->
|
||||
<view class="version-info">2026 丙午马年 · 新春助手 v1.0.2</view>
|
||||
<!-- <view class="version-info">2026 丙午马年 · 精美助手 v1.0.2</view> -->
|
||||
|
||||
<!-- Bottom Spacer for TabBar -->
|
||||
<view style="height: 120rpx"></view>
|
||||
@@ -177,7 +177,7 @@ onShareAppMessage(async () => {
|
||||
const shareToken = await getShareToken("mine");
|
||||
getShareReward({ scene: "mine" });
|
||||
return {
|
||||
title: "新年好运已送达 🎊|祝福卡·头像·壁纸",
|
||||
title: "送你一份好运祝福 🎁|头像·壁纸·祝福卡",
|
||||
path: "/pages/index/index?shareToken=" + shareToken,
|
||||
imageUrl:
|
||||
"https://file.lihailezzc.com/resource/8dd026d76ef7a63d123b7fd698fb989b.png",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="profile-page" >
|
||||
<view class="profile-page">
|
||||
<NavBar title="个人信息" />
|
||||
|
||||
<!-- Content -->
|
||||
@@ -39,7 +39,7 @@
|
||||
</view>
|
||||
</view> -->
|
||||
<!-- <view class="info-item" @click="handleEditManifesto">
|
||||
<text class="label">新春宣言</text>
|
||||
<text class="label">个性宣言</text>
|
||||
<view class="value-box">
|
||||
<text class="value red-text">{{ form.bio || "点击选择" }}</text>
|
||||
<uni-icons type="compose" size="16" color="#ccc" />
|
||||
@@ -186,12 +186,12 @@ const handleSave = async () => {
|
||||
const originalForm = {
|
||||
nickName: userInfo.value.nickName || "",
|
||||
gender: userInfo.value.gender || 1,
|
||||
bio: userInfo.value.bio || "万事如意,岁岁平安"
|
||||
bio: userInfo.value.bio || "万事如意,岁岁平安",
|
||||
};
|
||||
|
||||
try {
|
||||
const res = await updateUserInfo({
|
||||
nickname: form.value.nickName,
|
||||
nickname: form.value.nickName,
|
||||
gender: form.value.gender,
|
||||
bio: form.value.bio,
|
||||
});
|
||||
@@ -204,7 +204,7 @@ const handleSave = async () => {
|
||||
} else {
|
||||
// 恢复之前的内容
|
||||
form.value = { ...originalForm };
|
||||
uni.showToast({ title: res.message || '修改失败', icon: "none" });
|
||||
uni.showToast({ title: res.message || "修改失败", icon: "none" });
|
||||
uni.hideLoading();
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
@@ -148,7 +148,7 @@ const notes = [
|
||||
"会员服务为虚拟产品,支付后立即生效,不支持退款。",
|
||||
"会员权益在有效期内全平台通用。",
|
||||
"如有疑问,请通过“我的-使用说明”联系客服处理。",
|
||||
"最终解释权归 2026 新春助手团队所有。",
|
||||
"最终解释权归 本平台所有。",
|
||||
];
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
@@ -30,7 +30,11 @@
|
||||
class="grid-item"
|
||||
@tap="onPreview(item)"
|
||||
>
|
||||
<image :src="item.imageUrl" mode="aspectFill" class="wallpaper-img" />
|
||||
<image
|
||||
:src="getThumbUrl(item.imageUrl)"
|
||||
mode="aspectFill"
|
||||
class="wallpaper-img"
|
||||
/>
|
||||
<view class="date-badge">
|
||||
<text>{{ formatDate(item.createdAt) }}</text>
|
||||
</view>
|
||||
@@ -81,6 +85,10 @@ onReachBottom(() => {
|
||||
loadMore();
|
||||
});
|
||||
|
||||
const getThumbUrl = (url) => {
|
||||
return `${url}?imageView2/1/w/340/h/600/q/80`;
|
||||
};
|
||||
|
||||
const fetchList = async (reset = false) => {
|
||||
if (loading.value) return;
|
||||
if (reset) {
|
||||
|
||||
Reference in New Issue
Block a user