This commit is contained in:
Zhou 2024-11-27 19:08:48 +08:00
commit a94daba6fa
7 changed files with 5694 additions and 5187 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 561440df45b228349a409964d7f37450
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: cf8157ba97bdda94494fae6a9cc56ff2
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.UI;
public class ExchangePanel : MonoBehaviour
public class ExchangePanel : Base
{
public TMP_InputField exchangeInput;
public Button CancelBtn;
@ -11,6 +11,7 @@ public class ExchangePanel : MonoBehaviour
// Start is called before the first frame update
void Start()
{
testLogo();
ConfirmBtn.onClick.AddListener(ConfrimPanel);
CancelBtn.onClick.AddListener(CancelPanel);
}
@ -24,7 +25,11 @@ public class ExchangePanel : MonoBehaviour
async void ConfrimPanel()
{
string response = "";//²âÊÔ
string body = "{\"exchangeCode\":\"" + exchangeInput.text + "}";
Debug.Log(body);
response = await web.SendRequest(web.URL + "/snail/exchangeCode", "POST", body, testhead);
Debug.Log(response);
}

View File

@ -2,7 +2,7 @@ using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Nice_numPanel : MonoBehaviour
public class Nice_numPanel : Base
{
public Button CancleBtn;
public Button ConfirmBtn;
@ -26,9 +26,17 @@ public class Nice_numPanel : MonoBehaviour
//string pricetext = numberTc.price.text;
buyGoodIdResponse = await buyGoodId42.buyGoodId(numberTc.id);
Debug.Log(buyGoodIdResponse);
numberTc.musk_show();
Destroy(this.gameObject);
//Debug.Log("弹出蜗壳不足的弹窗");
if (buyGoodIdResponse.code == 200)
{
numberTc.musk_show();
Destroy(this.gameObject);
}
else
{
addEventPopUp("弹出蜗壳不足的弹窗");
}
}