修改更多图片数量
This commit is contained in:
parent
60a8eee78e
commit
e4643cf358
|
@ -9,11 +9,11 @@ import { getUserInfo } from "@/api/public";
|
|||
import { get, save } from "@/utils/storeInfo";
|
||||
import requireAPI from "@/utils/requireAPI";
|
||||
import { utf8Length } from "@/utils/tools";
|
||||
const account = get("account");
|
||||
|
||||
export default function EditUserName() {
|
||||
const router = useRouter();
|
||||
const [name, setName] = useState();
|
||||
|
||||
const account = get("account");
|
||||
useEffect(() => {
|
||||
const getName = async () => {
|
||||
setName(account.name);
|
||||
|
|
|
@ -184,11 +184,7 @@ export default function PersonSpace() {
|
|||
}}
|
||||
/>
|
||||
</div>
|
||||
<Image
|
||||
width={42}
|
||||
height={42}
|
||||
src={process.env.NEXT_PUBLIC_WEB_ASSETS_URL + "/icons/setting.png"}
|
||||
placeholder=""
|
||||
<div
|
||||
onClick={() =>
|
||||
router.push(
|
||||
"setting?data=" +
|
||||
|
@ -207,7 +203,14 @@ export default function PersonSpace() {
|
|||
)
|
||||
)
|
||||
}
|
||||
/>
|
||||
>
|
||||
<Image
|
||||
width={42}
|
||||
height={42}
|
||||
src={process.env.NEXT_PUBLIC_WEB_ASSETS_URL + "/icons/setting.png"}
|
||||
placeholder=""
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{/* 内容 */}
|
||||
<div>
|
||||
|
|
|
@ -322,11 +322,13 @@ export default function Photos({
|
|||
className="absolute top-0 w-full h-full flex justify-center items-center bg-[#33333348]"
|
||||
onClick={handleSeeAllPhotos}
|
||||
>
|
||||
<span className="text-2xl">+{currentPhotos.length}</span>
|
||||
<span className="text-2xl">
|
||||
+{photos.length - currentPhotos.length}
|
||||
</span>
|
||||
</div>
|
||||
) : (
|
||||
<div
|
||||
className="absolute top-0 h-full flex justify-center items-center bg-[#33333348]"
|
||||
className="absolute top-0 w-full h-full flex justify-center items-center bg-[#33333348]"
|
||||
key="closeBtn"
|
||||
onClick={handleSeeAllPhotos}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue