From a600c3b4e2a7b658b06a05bc9fbf12e60f599dc5 Mon Sep 17 00:00:00 2001 From: liuliang <597380732@qq.com> Date: Tue, 26 Nov 2024 17:12:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=93=E5=8F=B7item=E7=9A=84=E7=94=9F?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Scenes/Scene_lianghao.unity | 45 ++++++++++--------- .../Assets/Scripts/Login/Global.cs | 39 ++++++++-------- .../Assets/Scripts/lianghaoLL/LoginItem.cs | 19 +++++--- 3 files changed, 57 insertions(+), 46 deletions(-) diff --git a/TheStrongestSnail/Assets/Scenes/Scene_lianghao.unity b/TheStrongestSnail/Assets/Scenes/Scene_lianghao.unity index 649dc19..9234af4 100644 --- a/TheStrongestSnail/Assets/Scenes/Scene_lianghao.unity +++ b/TheStrongestSnail/Assets/Scenes/Scene_lianghao.unity @@ -282,7 +282,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchorMin.x @@ -290,7 +290,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_SizeDelta.x @@ -330,11 +330,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 459.12 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -172 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_LocalEulerAnglesHint.x @@ -378,7 +378,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7586974503533905102, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_IsActive - value: 1 + value: 0 objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} @@ -751,7 +751,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchorMin.x @@ -759,7 +759,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_SizeDelta.x @@ -799,11 +799,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 724.24 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -172 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_LocalEulerAnglesHint.x @@ -847,7 +847,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7586974503533905102, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_IsActive - value: 1 + value: 0 objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} @@ -868,6 +868,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 3ca795e6b84541f43bbd5a0239e3eaee, type: 3} m_Name: m_EditorClassIdentifier: + retbutton: {fileID: 0} contentItem: {fileID: 352902871} goodId: {fileID: 0} --- !u!1001 &1063384825 @@ -931,7 +932,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchorMin.x @@ -939,7 +940,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_SizeDelta.x @@ -979,11 +980,11 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 194 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -511.6 objectReference: {fileID: 0} - target: {fileID: 4195905154657269784, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_LocalEulerAnglesHint.x @@ -1027,7 +1028,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7586974503533905102, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} propertyPath: m_IsActive - value: 1 + value: 0 objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: a9811bf64599da248a3d27c2d2ebe72d, type: 3} @@ -1240,7 +1241,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 1541940793824040246, guid: 2ea9f46d5d084364b9ed13356743f255, type: 3} propertyPath: m_IsActive - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 1832672508929029481, guid: 2ea9f46d5d084364b9ed13356743f255, type: 3} propertyPath: m_Sprite @@ -1480,27 +1481,27 @@ PrefabInstance: objectReference: {fileID: 21300000, guid: 04b17b8ae9d34d5458927c51a673666a, type: 3} - target: {fileID: 5050385004649441760, guid: 2ea9f46d5d084364b9ed13356743f255, type: 3} propertyPath: m_AnchorMax.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 5050385004649441760, guid: 2ea9f46d5d084364b9ed13356743f255, type: 3} propertyPath: m_AnchorMin.y - value: 0 + value: 1 objectReference: {fileID: 0} - target: {fileID: 5050385004649441760, guid: 2ea9f46d5d084364b9ed13356743f255, type: 3} propertyPath: m_SizeDelta.x - value: 0 + value: 198 objectReference: {fileID: 0} - target: {fileID: 5050385004649441760, guid: 2ea9f46d5d084364b9ed13356743f255, type: 3} propertyPath: m_SizeDelta.y - value: 0 + value: 276 objectReference: {fileID: 0} - target: {fileID: 5050385004649441760, guid: 2ea9f46d5d084364b9ed13356743f255, type: 3} propertyPath: m_AnchoredPosition.x - value: 0 + value: 194 objectReference: {fileID: 0} - target: {fileID: 5050385004649441760, guid: 2ea9f46d5d084364b9ed13356743f255, type: 3} propertyPath: m_AnchoredPosition.y - value: 0 + value: -172 objectReference: {fileID: 0} - target: {fileID: 5308372903374203845, guid: 2ea9f46d5d084364b9ed13356743f255, type: 3} propertyPath: m_AnchorMax.y diff --git a/TheStrongestSnail/Assets/Scripts/Login/Global.cs b/TheStrongestSnail/Assets/Scripts/Login/Global.cs index 8b79e8e..2215117 100644 --- a/TheStrongestSnail/Assets/Scripts/Login/Global.cs +++ b/TheStrongestSnail/Assets/Scripts/Login/Global.cs @@ -611,28 +611,31 @@ public class UnionDetalResponse : Response } //====4.1============================ //查询靓号分页 -public class GoodIdPageBody -{ - public int orderByDesc { get; set; } -} - -public class GoodIdData -{ - public int PageNo { get; set; }//页面的页数 - public int PageSize { get; set; }//每页展示 - public int TotalCount { get; set; }//总记录数 - public List DataList { get; set; } // 由于dataList为空数组,未给出具体类型,这里使用List -} - public class GoodIdResponse : Response { public GoodIdData Data { get; set; } } -//====================== -public class GoodIdList +public class GoodIdData { - public int id; - public int cuteNo; - public float beansCoin; + public int PageNo { get; set; } + public int PageSize { get; set; } + public int TotalCount { get; set; } + public List DataList { get; set; } +} + +public class GoodIdItem +{ + public int Id { get; set; } + public string CuteNo { get; set; } + public float BeansCoin { get; set; } + public int UserId { get; set; } + public int Type { get; set; } + public int Status { get; set; } + public string CreateTime { get; set; } + public string UpdateTime { get; set; } +} +public class GoodIdPageBody +{ + public int orderByDesc { get; set; } } \ No newline at end of file diff --git a/TheStrongestSnail/Assets/Scripts/lianghaoLL/LoginItem.cs b/TheStrongestSnail/Assets/Scripts/lianghaoLL/LoginItem.cs index 347630a..53073b7 100644 --- a/TheStrongestSnail/Assets/Scripts/lianghaoLL/LoginItem.cs +++ b/TheStrongestSnail/Assets/Scripts/lianghaoLL/LoginItem.cs @@ -2,13 +2,13 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; -public class LoginItem : MonoBehaviour +public class LoginItem :MonoBehaviour { - public Transform contentItem; - public GoodIdPage41 goodId = new GoodIdPage41(); + public Transform contentItem; + GoodIdPage41 goodId = new GoodIdPage41(); GoodIdResponse idResponse = new GoodIdResponse(); - + // GoodIdItem goodiditem = new GoodIdItem(); // Start is called before the first frame update void Start() { @@ -19,9 +19,16 @@ public class LoginItem : MonoBehaviour { idResponse=await goodId.queryUnionPage(); for (int i = 0; i < idResponse.Data.DataList.Count; i++) - { - + { + GameObject Lhitem = (GameObject)Instantiate(Resources.Load("LLPrefabs/Beautiful_numberttem"),contentItem); + Lhitem.GetComponent().BeautifulNumber.text = idResponse.Data.DataList[i].CuteNo; + Lhitem.GetComponent().price.text = idResponse.Data.DataList[i].BeansCoin.ToString(); + if (idResponse.Data.DataList[i].Type == 1) + { + Lhitem.GetComponent().musk_show(); + } } + } // Update is called once per frame