diff --git a/app/noticeDetail/page.js b/app/noticeDetail/page.js
index 78e7609..f1fd82e 100644
--- a/app/noticeDetail/page.js
+++ b/app/noticeDetail/page.js
@@ -1,7 +1,7 @@
"use client";
import React, { useEffect, useRef, useState } from "react";
-import { Tabs, Swiper, Toast } from "antd-mobile";
+import { Tabs, Swiper, Toast, Dialog } from "antd-mobile";
import Link from "next/link";
import requireAPI from "@/utils/requireAPI";
import MessageList from "./components/MessageList";
@@ -112,8 +112,48 @@ export default function Space() {
}
}
const handleReadAll = () => {
- if (mesListEl.current) mesListEl.current.readAllMsg([0, 1, 2, 3]);
+ const showMobal = Dialog.show({
+ title: "提示",
+ content:
确定要清楚所有未读消息吗?
,
+ bodyStyle: {
+ maxHeight: "none",
+ width: "80vw",
+ position: "fixed",
+ top: "200px",
+ left: "10vw",
+ "--text-color": "#fff",
+ color: "#fff",
+ },
+ // cancelText:"确认",
+ // confirmText:"取消",
+ style: {
+ "--text-color": "#fff",
+ },
+ closeOnAction: true,
+ actions: [
+ [
+ {
+ key: "close",
+ text: "取消",
+ bold: true,
+ style: { color: "#ffffff80" },
+ onClick: () => {
+ showMobal?.close();
+ },
+ },
+ {
+ key: "submit",
+ text: "确认",
+ style: { color: "#fff" },
+ onClick: () => {
+ if (mesListEl.current) mesListEl.current.readAllMsg([0, 1, 2, 3]);
+ },
+ },
+ ],
+ ],
+ });
};
+
return (
diff --git a/app/space/setting/collaboratorSetting/page.jsx b/app/space/setting/collaboratorSetting/page.jsx
index 4e8e59b..f94cf7e 100644
--- a/app/space/setting/collaboratorSetting/page.jsx
+++ b/app/space/setting/collaboratorSetting/page.jsx
@@ -27,6 +27,7 @@ import { useRouter, useSearchParams } from "next/navigation";
import OwnInput from "@/components/OwnInput";
import { get } from "@/utils/storeInfo";
import OwnIcon from "@/components/OwnIcon";
+import baseRequest from "@/utils/baseRequest";
export default function CollaboratorSetting() {
const [data, setData] = useState(null);
const [selfMid, setSelfMid] = useState();