修复代运营问题
This commit is contained in:
parent
293557d6dd
commit
0567162885
|
@ -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: <div className="text-center">确定要清楚所有未读消息吗?</div>,
|
||||
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 (
|
||||
<div className="">
|
||||
<div className="flex justify-between items-center px-2 custom-tabs text-gray-400 sticky top-0 z-10 bg-deepBg">
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue