修改更多图片数量

This commit is contained in:
al 2024-08-21 13:55:16 +08:00
parent 60a8eee78e
commit e4643cf358
3 changed files with 15 additions and 10 deletions

View File

@ -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);

View File

@ -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,8 +203,15 @@ export default function PersonSpace() {
)
)
}
>
<Image
width={42}
height={42}
src={process.env.NEXT_PUBLIC_WEB_ASSETS_URL + "/icons/setting.png"}
placeholder=""
/>
</div>
</div>
{/* 内容 */}
<div>
<div

View File

@ -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}
>