fix: make content api
This commit is contained in:
@@ -675,6 +675,8 @@ onShareAppMessage(async () => {
|
|||||||
return {
|
return {
|
||||||
title: "新春祝福",
|
title: "新春祝福",
|
||||||
path: `/pages/index/index?shareToken=${shareToken}`,
|
path: `/pages/index/index?shareToken=${shareToken}`,
|
||||||
|
imageUrl:
|
||||||
|
"https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
uni.showLoading({ title: "分享中...", mask: true });
|
uni.showLoading({ title: "分享中...", mask: true });
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<NavBar title="" :transparent="true" color="#ffd700" />
|
<NavBar title="" :transparent="true" color="#ffd700" />
|
||||||
|
|
||||||
<!-- 顶部提示条 -->
|
<!-- 顶部提示条 -->
|
||||||
<!-- <view class="top-banner" v-if="inviterName">
|
<view class="top-banner" v-if="inviterName">
|
||||||
<image
|
<image
|
||||||
class="avatar-icon"
|
class="avatar-icon"
|
||||||
v-if="inviterAvatar"
|
v-if="inviterAvatar"
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
>你的好友 {{ inviterName }} 正在测试2026新年运势</text
|
>你的好友 {{ inviterName }} 正在测试2026新年运势</text
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
<view class="top-banner" v-else>
|
<!-- <view class="top-banner" v-else>
|
||||||
<text class="banner-icon">✨</text>
|
<text class="banner-icon">✨</text>
|
||||||
<text class="banner-text">2026 灵马贺岁 · 开启你的新年好运</text>
|
<text class="banner-text">2026 灵马贺岁 · 开启你的新年好运</text>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
|||||||
@@ -115,7 +115,6 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onUnmounted, computed } from "vue";
|
import { ref, onUnmounted, computed } from "vue";
|
||||||
import { getDeviceInfo } from "@/utils/system";
|
|
||||||
import { onLoad, onShow, onShareAppMessage } from "@dcloudio/uni-app";
|
import { onLoad, onShow, onShareAppMessage } from "@dcloudio/uni-app";
|
||||||
import { abilityCheck } from "@/api/system.js";
|
import { abilityCheck } from "@/api/system.js";
|
||||||
import { drawFortune } from "@/api/fortune.js";
|
import { drawFortune } from "@/api/fortune.js";
|
||||||
@@ -166,7 +165,7 @@ onShareAppMessage(async () => {
|
|||||||
getRewardByShare();
|
getRewardByShare();
|
||||||
return {
|
return {
|
||||||
title: "马年运势我已经抽过了,你的会是什么?",
|
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:
|
imageUrl:
|
||||||
"https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png",
|
"https://file.lihailezzc.com/resource/cfed2edbfa19250b836a87a4bbf0d5ad.png",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -100,12 +100,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from "vue";
|
import { ref } from "vue";
|
||||||
import {
|
import {
|
||||||
onPullDownRefresh,
|
onPullDownRefresh,
|
||||||
onShareAppMessage,
|
onShareAppMessage,
|
||||||
onReachBottom,
|
onReachBottom,
|
||||||
onLoad,
|
onLoad,
|
||||||
|
onShow,
|
||||||
} from "@dcloudio/uni-app";
|
} from "@dcloudio/uni-app";
|
||||||
import { getBavBarHeight } from "@/utils/system";
|
import { getBavBarHeight } from "@/utils/system";
|
||||||
import { getRecommendList, getRandomGreeting } from "@/api/system";
|
import { getRecommendList, getRandomGreeting } from "@/api/system";
|
||||||
@@ -148,16 +149,19 @@ const updateCountdown = () => {
|
|||||||
const todayDate = ref("");
|
const todayDate = ref("");
|
||||||
const dailyGreeting = ref("");
|
const dailyGreeting = ref("");
|
||||||
|
|
||||||
|
onShow(() => {
|
||||||
|
updateCountdown();
|
||||||
|
const date = new Date();
|
||||||
|
todayDate.value = `${date.getMonth() + 1}月${date.getDate()}日`;
|
||||||
|
});
|
||||||
|
|
||||||
onLoad((options) => {
|
onLoad((options) => {
|
||||||
if (options.shareToken) saveViewRequest(options.shareToken, "index");
|
if (options.shareToken) saveViewRequest(options.shareToken, "index");
|
||||||
|
|
||||||
updateCountdown();
|
// updateCountdown();
|
||||||
getRandomGreetingText();
|
getRandomGreetingText();
|
||||||
fetchRecommendList();
|
fetchRecommendList();
|
||||||
|
|
||||||
const date = new Date();
|
|
||||||
todayDate.value = `${date.getMonth() + 1}月${date.getDate()}日`;
|
|
||||||
|
|
||||||
// Daily Inspiration Logic
|
// Daily Inspiration Logic
|
||||||
// const startOfYear = new Date(date.getFullYear(), 0, 0);
|
// const startOfYear = new Date(date.getFullYear(), 0, 0);
|
||||||
// const diff = date - startOfYear;
|
// const diff = date - startOfYear;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="wallpaper-page">
|
<view class="wallpaper-page">
|
||||||
<NavBar title="新春精美壁纸" />
|
<NavBar title="精美壁纸" />
|
||||||
|
|
||||||
<!-- Category Tabs -->
|
<!-- Category Tabs -->
|
||||||
<view class="category-tabs">
|
<view class="category-tabs">
|
||||||
@@ -115,7 +115,7 @@ onShareAppMessage(async (options) => {
|
|||||||
path: `/pages/wallpaper/detail?shareToken=${shareToken}`,
|
path: `/pages/wallpaper/detail?shareToken=${shareToken}`,
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
const shareToken = await getShareToken("wallpaper_download", "");
|
const shareToken = await getShareToken("wallpaper_download_index", "");
|
||||||
return {
|
return {
|
||||||
title: "新春祝福",
|
title: "新春祝福",
|
||||||
path: `/pages/index/index?shareToken=${shareToken}`,
|
path: `/pages/index/index?shareToken=${shareToken}`,
|
||||||
|
|||||||
@@ -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://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";
|
// const BASE_URL = "http://192.168.31.253:3999";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user