diff --git a/TheStrongestSnail/Assets/Scripts/Trade/TradeDes.cs b/TheStrongestSnail/Assets/Scripts/Trade/TradeDes.cs index 17a9641..911637e 100644 --- a/TheStrongestSnail/Assets/Scripts/Trade/TradeDes.cs +++ b/TheStrongestSnail/Assets/Scripts/Trade/TradeDes.cs @@ -35,7 +35,7 @@ public class TradeDes : MonoBehaviour public GameObject detailPrefab; - public Transform canvasTrans; + public Transform trans; // Start is called before the first frame update void Awake() @@ -61,10 +61,10 @@ public class TradeDes : MonoBehaviour public void ShowDetail() { - GameObject.Instantiate(detailPrefab, canvasTrans); + GameObject.Instantiate(detailPrefab, trans); } - public void SetInfo(UnionDataInPage body) + public void SetInfo(UnionDataInPage body,Transform tran) { id = body.Id; name = body.Name; @@ -76,7 +76,7 @@ public class TradeDes : MonoBehaviour createTime = body.CreateTime; updateTime = body.UpdateTime; nameTxt.text = name; - + trans = tran; } } diff --git a/TheStrongestSnail/Assets/Scripts/Trade/TradeUnion.cs b/TheStrongestSnail/Assets/Scripts/Trade/TradeUnion.cs index 966241c..fc0b72b 100644 --- a/TheStrongestSnail/Assets/Scripts/Trade/TradeUnion.cs +++ b/TheStrongestSnail/Assets/Scripts/Trade/TradeUnion.cs @@ -15,6 +15,7 @@ public class TradeUnion : MonoBehaviour { ReadData(); + //testLogo(); } public async void ReadData() @@ -30,15 +31,18 @@ public class TradeUnion : MonoBehaviour GameObject union = GameObject.Instantiate(gonghuiPrefab, content); union.name = "union_" + i; TradeDes tradeDes = union.GetComponent(); - tradeDes.SetInfo(unionPage.Data.DataList[i]); + tradeDes.SetInfo(unionPage.Data.DataList[i],transform); } } + // Update is called once per frame void Update() { - + //testhead + //string response511 = await web.SendRequest(web.URL + "/snail/gameEscape/queryLatest", "POST", body, testhead); + //string response511 = await web.SendRequest(web.URL + "/snail/gameEscape/queryLatest", "POST", body, Global.global.CreateHeaders()); } } diff --git a/TheStrongestSnail/Assets/UIScene/gonghui.prefab b/TheStrongestSnail/Assets/UIScene/gonghui.prefab index 3e43b86..8b8ac63 100644 --- a/TheStrongestSnail/Assets/UIScene/gonghui.prefab +++ b/TheStrongestSnail/Assets/UIScene/gonghui.prefab @@ -768,7 +768,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0.003112793, y: 333.97394} + m_AnchoredPosition: {x: 0, y: 334} m_SizeDelta: {x: 992.71, y: 218.7623} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &8133399435849918391 @@ -797,7 +797,7 @@ MonoBehaviour: panelBtn: {fileID: 5568445523757616195} nameTxt: {fileID: 6604778934918701610} detailPrefab: {fileID: 1001758454263862282, guid: 24d39cbc0ad9ddc4188e8448773f23c3, type: 3} - canvasTrans: {fileID: 0} + trans: {fileID: 0} --- !u!114 &5568445523757616195 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/TheStrongestSnail/Assets/prefabs/HYLPrefabs/GongHuiInfo.prefab b/TheStrongestSnail/Assets/prefabs/HYLPrefabs/GongHuiInfo.prefab index a51df22..90b100c 100644 --- a/TheStrongestSnail/Assets/prefabs/HYLPrefabs/GongHuiInfo.prefab +++ b/TheStrongestSnail/Assets/prefabs/HYLPrefabs/GongHuiInfo.prefab @@ -702,7 +702,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 146.20752} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 1164.6345, y: 1281.8242} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1001758454263862279 @@ -725,6 +725,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: d28b93aa3e27efe459ed3371d2072596, type: 3} m_Name: m_EditorClassIdentifier: + retbutton: {fileID: 0} id: 0 name: cover: