anln_1.7 (#36)
Co-authored-by: al <al@cdhncy.com> Reviewed-on: https://git.wishpal.cn/wishpal_ironfan/tiefen_space_h5/pulls/36
This commit is contained in:
parent
40caa0a296
commit
556ef80e5e
|
@ -6,7 +6,7 @@ import { formatTimestamp } from "@/utils/tools";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import { faCalendar } from "@fortawesome/free-solid-svg-icons";
|
import { faCalendar } from "@fortawesome/free-solid-svg-icons";
|
||||||
import OwnImage from "@/components/OwnImage";
|
import OwnImage from "@/components/OwnImage";
|
||||||
|
import OwnIcon from "@/components/OwnIcon";
|
||||||
export default function SuperFanSpaceMember({ zid, currentIndex }) {
|
export default function SuperFanSpaceMember({ zid, currentIndex }) {
|
||||||
const [offset, setOffset] = useState(0);
|
const [offset, setOffset] = useState(0);
|
||||||
const [more, setMore] = useState(1);
|
const [more, setMore] = useState(1);
|
||||||
|
|
|
@ -7,6 +7,8 @@ import { faAngleLeft, faCalendar } from "@fortawesome/free-solid-svg-icons";
|
||||||
import requireAPI from "@/utils/requireAPI";
|
import requireAPI from "@/utils/requireAPI";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter } from "next/navigation";
|
||||||
import { formatTimestamp } from "@/utils/tools";
|
import { formatTimestamp } from "@/utils/tools";
|
||||||
|
import OwnImage from "@/components/OwnImage";
|
||||||
|
import OwnIcon from "@/components/OwnIcon";
|
||||||
export default function SpaceSearch({ navigation }) {
|
export default function SpaceSearch({ navigation }) {
|
||||||
const [data, setData] = useState([]);
|
const [data, setData] = useState([]);
|
||||||
const [search, setSearch] = useState("");
|
const [search, setSearch] = useState("");
|
||||||
|
@ -59,7 +61,7 @@ export default function SpaceSearch({ navigation }) {
|
||||||
//单个成员组件
|
//单个成员组件
|
||||||
const renderItem = useCallback((item, index) => {
|
const renderItem = useCallback((item, index) => {
|
||||||
return (
|
return (
|
||||||
<div className="flex-1">
|
<div className="flex-1" key={index}>
|
||||||
<div className="flex items-center py-3">
|
<div className="flex items-center py-3">
|
||||||
<OwnImage
|
<OwnImage
|
||||||
src={item?.account?.avatar?.images[0]?.urls[0]}
|
src={item?.account?.avatar?.images[0]?.urls[0]}
|
||||||
|
@ -132,7 +134,7 @@ export default function SpaceSearch({ navigation }) {
|
||||||
<div className="flex items-center flex-1">
|
<div className="flex items-center flex-1">
|
||||||
<div className="relative bg-[#FFFFFF1A] rounded-lg px-4 py-1.5 flex-1">
|
<div className="relative bg-[#FFFFFF1A] rounded-lg px-4 py-1.5 flex-1">
|
||||||
<Input
|
<Input
|
||||||
placeholder="搜索Ta的昵称或id"
|
placeholder="搜索Ta的ID"
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
value={search}
|
value={search}
|
||||||
ref={searchRef}
|
ref={searchRef}
|
||||||
|
|
Loading…
Reference in New Issue