Compare commits

..

No commits in common. "1cd3bac6af0775239cd85e693c9776a45878f9cd" and "d28c6a4f8208ad5bb54c925ada7f47263a5a37c4" have entirely different histories.

5 changed files with 11 additions and 35 deletions

View File

@ -869,7 +869,6 @@ 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>
} }
@ -617,11 +617,4 @@ 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,22 +6,16 @@ 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();
} }
public async void Init() 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,18 +21,9 @@ public class Nice_numPanel : MonoBehaviour
void ConfirmBuy() void ConfirmBuy()
{ {
string pricetext = numberTc.price.text; //if(PlayerInfo.instance.Money-float.Parse(numberTc.price))
if ((PlayerInfo.instance.Money - float.Parse(pricetext)) >= 0) numberTc.musk_show();
{ Destroy(this.gameObject);
numberTc.musk_show();
Destroy(this.gameObject);
}
else
{
Debug.Log("弹出蜗壳不足的弹窗");
}
} }

View File

@ -28,7 +28,6 @@ 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()