fix: make content api

This commit is contained in:
zzc
2026-02-06 09:42:56 +08:00
parent 99aa89a5c2
commit cee6ef9f91
6 changed files with 18 additions and 13 deletions

View File

@@ -675,6 +675,8 @@ onShareAppMessage(async () => {
return {
title: "新春祝福",
path: `/pages/index/index?shareToken=${shareToken}`,
imageUrl:
"https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png",
};
}
uni.showLoading({ title: "分享中...", mask: true });

View File

@@ -3,7 +3,7 @@
<NavBar title="" :transparent="true" color="#ffd700" />
<!-- 顶部提示条 -->
<!-- <view class="top-banner" v-if="inviterName">
<view class="top-banner" v-if="inviterName">
<image
class="avatar-icon"
v-if="inviterAvatar"
@@ -14,7 +14,7 @@
>你的好友 {{ inviterName }} 正在测试2026新年运势</text
>
</view>
<view class="top-banner" v-else>
<!-- <view class="top-banner" v-else>
<text class="banner-icon"></text>
<text class="banner-text">2026 灵马贺岁 · 开启你的新年好运</text>
</view> -->

View File

@@ -115,7 +115,6 @@
<script setup>
import { ref, onUnmounted, computed } from "vue";
import { getDeviceInfo } from "@/utils/system";
import { onLoad, onShow, onShareAppMessage } from "@dcloudio/uni-app";
import { abilityCheck } from "@/api/system.js";
import { drawFortune } from "@/api/fortune.js";
@@ -166,7 +165,7 @@ onShareAppMessage(async () => {
getRewardByShare();
return {
title: "马年运势我已经抽过了,你的会是什么?",
path: `${cardId.value ? `/pages/fortune/detail?shareToken=${shareToken}` : `/pages/fortune/index?shareToken=${shareTokenRes.shareToken}`}`,
path: `${cardId.value ? `/pages/fortune/detail?shareToken=${shareToken}` : `/pages/fortune/index?shareToken=${shareToken}`}`,
imageUrl:
"https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png",
};

View File

@@ -100,12 +100,13 @@
</template>
<script setup>
import { ref, onMounted } from "vue";
import { ref } from "vue";
import {
onPullDownRefresh,
onShareAppMessage,
onReachBottom,
onLoad,
onShow,
} from "@dcloudio/uni-app";
import { getBavBarHeight } from "@/utils/system";
import { getRecommendList, getRandomGreeting } from "@/api/system";
@@ -148,16 +149,19 @@ const updateCountdown = () => {
const todayDate = ref("");
const dailyGreeting = ref("");
onShow(() => {
updateCountdown();
const date = new Date();
todayDate.value = `${date.getMonth() + 1}${date.getDate()}`;
});
onLoad((options) => {
if (options.shareToken) saveViewRequest(options.shareToken, "index");
updateCountdown();
// updateCountdown();
getRandomGreetingText();
fetchRecommendList();
const date = new Date();
todayDate.value = `${date.getMonth() + 1}${date.getDate()}`;
// Daily Inspiration Logic
// const startOfYear = new Date(date.getFullYear(), 0, 0);
// const diff = date - startOfYear;

View File

@@ -1,6 +1,6 @@
<template>
<view class="wallpaper-page">
<NavBar title="新春精美壁纸" />
<NavBar title="精美壁纸" />
<!-- Category Tabs -->
<view class="category-tabs">
@@ -115,7 +115,7 @@ onShareAppMessage(async (options) => {
path: `/pages/wallpaper/detail?shareToken=${shareToken}`,
};
} else {
const shareToken = await getShareToken("wallpaper_download", "");
const shareToken = await getShareToken("wallpaper_download_index", "");
return {
title: "新春祝福",
path: `/pages/index/index?shareToken=${shareToken}`,

View File

@@ -1,6 +1,6 @@
// const BASE_URL = "https://api.ai-meng.com";
const BASE_URL = "https://api.ai-meng.com";
// const BASE_URL = 'http://127.0.0.1:3999'
const BASE_URL = "http://192.168.1.3:3999";
// const BASE_URL = "http://192.168.1.3:3999";
// const BASE_URL = "http://192.168.31.253:3999";
import { useUserStore } from "@/stores/user";