连同个人主页地址UI逻辑

This commit is contained in:
huyulong 2024-11-27 20:29:57 +08:00
parent 6c9dd04c12
commit 9320aba965
4 changed files with 93 additions and 77 deletions

View File

@ -1,16 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class AddressPanel : MonoBehaviour
{
public GameObject addressPrefab;
public Transform trans;
public GameObject newAdPanelPrefab;
public Button newAddressBtn;
void Start()
{
getData();
newAddressBtn.onClick.AddListener(NewAddress);
}
public void NewAddress()
{
GameObject.Instantiate(newAdPanelPrefab,trans);
}
public async void getData()

View File

@ -25,6 +25,11 @@ public class NewAddressPanel : MonoBehaviour
newAddress81 newAddress81 = new newAddress81();
newAddressResponse newAddressResponse = new newAddressResponse();
newAddressResponse = await newAddress81.newAddress(nameInput.text,telInput.text,addresInput.text,detailInput.text);
if(newAddressResponse.code == 200)
{
Destroy(this.gameObject);
}
}

View File

@ -326,7 +326,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 9051052528993816626, guid: cf8157ba97bdda94494fae6a9cc56ff2, type: 3}
propertyPath: m_RootOrder
value: 8
value: 7
objectReference: {fileID: 0}
- target: {fileID: 9051052528993816626, guid: cf8157ba97bdda94494fae6a9cc56ff2, type: 3}
propertyPath: m_AnchorMax.x
@ -464,27 +464,27 @@ PrefabInstance:
objectReference: {fileID: 4499171977774247193, guid: b7a2ccb5cba723240b3b23ecbfd825e2, type: 3}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 613
objectReference: {fileID: 0}
- target: {fileID: 7365734031970685147, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -349.91998
objectReference: {fileID: 0}
- target: {fileID: 7365734032093996524, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_Pivot.x
@ -576,55 +576,55 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 7365734032093996531, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 194
objectReference: {fileID: 0}
- target: {fileID: 7365734032134663386, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -349.91998
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 613
objectReference: {fileID: 0}
- target: {fileID: 7365734032139323463, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -204.95999
objectReference: {fileID: 0}
- target: {fileID: 7365734032285175081, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
@ -652,99 +652,99 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 194
objectReference: {fileID: 0}
- target: {fileID: 7365734032354904342, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -204.95999
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 613
objectReference: {fileID: 0}
- target: {fileID: 7365734033029684611, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -60
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 194
objectReference: {fileID: 0}
- target: {fileID: 7365734033068930763, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -494.88
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 388
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 120
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 194
objectReference: {fileID: 0}
- target: {fileID: 7365734033188163814, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -60
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1fb84dcfa1604bc429f5c3a37ba6d8b0, type: 3}
@ -778,7 +778,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4328097647563504795, guid: c83e83a747149a24889cec00adeee2de, type: 3}
propertyPath: m_RootOrder
value: 7
value: 6
objectReference: {fileID: 0}
- target: {fileID: 4328097647563504795, guid: c83e83a747149a24889cec00adeee2de, type: 3}
propertyPath: m_AnchorMax.x
@ -1041,11 +1041,11 @@ RectTransform:
- {fileID: 896465692}
- {fileID: 1809415960}
- {fileID: 1710366148}
- {fileID: 610794838}
- {fileID: 1616090942}
- {fileID: 3427659398288222956}
- {fileID: 1089613153}
- {fileID: 699176076}
- {fileID: 610794838}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -1249,7 +1249,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1113922771235768986, guid: 0c6b226cae5e67d4d8874104f6549a1b, type: 3}
propertyPath: m_RootOrder
value: 6
value: 5
objectReference: {fileID: 0}
- target: {fileID: 1113922771235768986, guid: 0c6b226cae5e67d4d8874104f6549a1b, type: 3}
propertyPath: m_AnchorMax.x
@ -1494,27 +1494,27 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 2987401724014986002, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchorMax.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724014986002, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchorMin.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724014986002, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_SizeDelta.x
value: 870.8313
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724014986002, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_SizeDelta.y
value: 122.7744
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724014986002, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchoredPosition.x
value: 435.41565
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724014986002, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchoredPosition.y
value: -462.8004
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724065773185, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_RootOrder
@ -1522,27 +1522,27 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 2987401724358874646, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchorMax.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724358874646, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchorMin.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724358874646, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_SizeDelta.x
value: 870.8313
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724358874646, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_SizeDelta.y
value: 122.7744
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724358874646, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchoredPosition.x
value: 435.41565
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724358874646, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchoredPosition.y
value: -61.3872
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724360385202, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_fontAsset
@ -1590,51 +1590,51 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 2987401724514752353, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchorMax.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724514752353, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchorMin.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724514752353, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_SizeDelta.x
value: 870.8313
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724514752353, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_SizeDelta.y
value: 122.7744
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724514752353, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchoredPosition.x
value: 435.41565
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724514752353, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchoredPosition.y
value: -328.996
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724723304547, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchorMax.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724723304547, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchorMin.y
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724723304547, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_SizeDelta.x
value: 870.8313
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724723304547, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_SizeDelta.y
value: 122.7744
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724723304547, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchoredPosition.x
value: 435.41565
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724723304547, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchoredPosition.y
value: -195.19159
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2987401724787116905, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_fontAsset
@ -1666,7 +1666,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 2987401724823548005, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_IsActive
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2987401724823548006, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_Pivot.x
@ -1678,7 +1678,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 2987401724823548006, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_RootOrder
value: 4
value: 8
objectReference: {fileID: 0}
- target: {fileID: 2987401724823548006, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
propertyPath: m_AnchorMax.x
@ -2152,7 +2152,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4499171977774247194, guid: b7a2ccb5cba723240b3b23ecbfd825e2, type: 3}
propertyPath: m_RootOrder
value: 5
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4499171977774247194, guid: b7a2ccb5cba723240b3b23ecbfd825e2, type: 3}
propertyPath: m_AnchorMax.x

View File

@ -920,6 +920,8 @@ MonoBehaviour:
m_EditorClassIdentifier:
addressPrefab: {fileID: 8078615872601345300, guid: 15109fc7975ccee44ad1c6a89f0564b5, type: 3}
trans: {fileID: 4499171977555058829}
newAdPanelPrefab: {fileID: 2987401724823548005, guid: eff2da918a3a81741b2b794c44b1545e, type: 3}
newAddressBtn: {fileID: 4499171976461940113}
--- !u!114 &4499171977774247195
MonoBehaviour:
m_ObjectHideFlags: 0