靓号item的生成
This commit is contained in:
parent
f1641e45fa
commit
a600c3b4e2
@ -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
|
||||
|
@ -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<object> DataList { get; set; } // 由于dataList为空数组,未给出具体类型,这里使用List<object>
|
||||
}
|
||||
|
||||
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<GoodIdItem> 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; }
|
||||
}
|
@ -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<NumberTc>().BeautifulNumber.text = idResponse.Data.DataList[i].CuteNo;
|
||||
Lhitem.GetComponent<NumberTc>().price.text = idResponse.Data.DataList[i].BeansCoin.ToString();
|
||||
if (idResponse.Data.DataList[i].Type == 1)
|
||||
{
|
||||
Lhitem.GetComponent<NumberTc>().musk_show();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
Loading…
Reference in New Issue
Block a user