靓号等待接口

This commit is contained in:
liuliang 2024-11-26 00:41:57 +08:00
parent 91d6cd534d
commit ece8bc610e
5 changed files with 35 additions and 11 deletions

View File

@ -869,6 +869,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
contentItem: {fileID: 352902871} contentItem: {fileID: 352902871}
goodId: {fileID: 0}
--- !u!1001 &1063384825 --- !u!1001 &1063384825
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -607,9 +607,9 @@ public class GoodIdPageBody
public class GoodIdData public class GoodIdData
{ {
public int PageNo { get; set; } public int PageNo { get; set; }//页面的页数
public int PageSize { get; set; } public int PageSize { get; set; }//每页展示
public int TotalCount { get; set; } public int TotalCount { get; set; }//总记录数
public List<object> DataList { get; set; } // 由于dataList为空数组未给出具体类型这里使用List<object> public List<object> DataList { get; set; } // 由于dataList为空数组未给出具体类型这里使用List<object>
} }
@ -618,3 +618,10 @@ public class GoodIdResponse : Response
public GoodIdData Data { get; set; } public GoodIdData Data { get; set; }
} }
//====================== //======================
public class GoodIdList
{
public int id;
public int cuteNo;
public float beansCoin;
}

View File

@ -6,16 +6,22 @@ public class LoginItem : MonoBehaviour
{ {
public Transform contentItem; public Transform contentItem;
public GoodIdPage41 goodId = new GoodIdPage41();
GoodIdResponse idResponse = new GoodIdResponse();
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
Init(); Init();
} }
void Init() public async void Init()
{
idResponse=await goodId.queryUnionPage();
for (int i = 0; i < idResponse.Data.DataList.Count; i++)
{ {
}
} }
// Update is called once per frame // Update is called once per frame

View File

@ -21,10 +21,19 @@ public class Nice_numPanel : MonoBehaviour
void ConfirmBuy() void ConfirmBuy()
{ {
//if(PlayerInfo.instance.Money-float.Parse(numberTc.price)) string pricetext = numberTc.price.text;
if ((PlayerInfo.instance.Money - float.Parse(pricetext)) >= 0)
{
numberTc.musk_show(); numberTc.musk_show();
Destroy(this.gameObject); Destroy(this.gameObject);
} }
else
{
Debug.Log("弹出蜗壳不足的弹窗");
}
}
// Update is called once per frame // Update is called once per frame

View File

@ -28,6 +28,7 @@ public class NumberTc : MonoBehaviour
public void musk_show() public void musk_show()
{ {
musk.gameObject.SetActive(true); musk.gameObject.SetActive(true);
Show_buy.interactable = false;
} }
// Update is called once per frame // Update is called once per frame
void Update() void Update()