修改滚动通知参数名

This commit is contained in:
al 2025-01-17 18:49:41 +08:00
parent 7f5f3fd96f
commit efb20500a7
2 changed files with 6 additions and 2 deletions

View File

@ -13,6 +13,7 @@ import { changeNoticeCount } from "@/store/actions";
import { Badge, Toast } from "antd-mobile";
import OwnImage from "@/components/OwnImage";
import OwnIcon from "@/components/OwnIcon";
const MessageList = ({ mid, changeNoticeCount, refInstance, noticeCount }) => {
const router = useRouter();
const [data, setData] = useState({});

View File

@ -4,8 +4,11 @@ import React from "react";
import { NoticeBar } from "antd-mobile";
import OwnIcon from "@/components/OwnIcon";
import { useRouter } from "next/navigation";
/************* ✨ Codeium Command ⭐ *************/
import baseRequest from "@/utils/baseRequest";
export default function ScrollNotice({ data }) {
const base = baseRequest();
const router = useRouter();
// const [fadeAnim] = useState(new Animated.Value(300)); // 透明度初始值为0
// let animation = Animated.timing(fadeAnim, {
@ -53,7 +56,7 @@ export default function ScrollNotice({ data }) {
// alert(encodeURIComponent(links[0]?.params));
router.push(
`/webView/${encodeURIComponent(
links[0]?.params +
links[0]?.url +
(links[0]?.action === "webViewWithOutHeaderInward" ||
links[0]?.action === "webViewHeaderInward"
? `?base=${encodeURIComponent(JSON.stringify(base))}`