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