Merge branch 'main' of http://shu.sheziwanglo.cn:3000/wulongxiao/_TheStrongestSnail
This commit is contained in:
commit
a94daba6fa
2004
TheStrongestSnail/Assets/Resources/LLPrefabs/ExchangePanel.prefab
Normal file
2004
TheStrongestSnail/Assets/Resources/LLPrefabs/ExchangePanel.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 561440df45b228349a409964d7f37450
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
3190
TheStrongestSnail/Assets/Resources/LLPrefabs/ShiMingPanel.prefab
Normal file
3190
TheStrongestSnail/Assets/Resources/LLPrefabs/ShiMingPanel.prefab
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cf8157ba97bdda94494fae6a9cc56ff2
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
public class ExchangePanel : MonoBehaviour
|
public class ExchangePanel : Base
|
||||||
{
|
{
|
||||||
public TMP_InputField exchangeInput;
|
public TMP_InputField exchangeInput;
|
||||||
public Button CancelBtn;
|
public Button CancelBtn;
|
||||||
@ -11,6 +11,7 @@ public class ExchangePanel : MonoBehaviour
|
|||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
|
testLogo();
|
||||||
ConfirmBtn.onClick.AddListener(ConfrimPanel);
|
ConfirmBtn.onClick.AddListener(ConfrimPanel);
|
||||||
CancelBtn.onClick.AddListener(CancelPanel);
|
CancelBtn.onClick.AddListener(CancelPanel);
|
||||||
}
|
}
|
||||||
@ -24,7 +25,11 @@ public class ExchangePanel : MonoBehaviour
|
|||||||
|
|
||||||
async void ConfrimPanel()
|
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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ using System.Collections;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
public class Nice_numPanel : MonoBehaviour
|
public class Nice_numPanel : Base
|
||||||
{
|
{
|
||||||
public Button CancleBtn;
|
public Button CancleBtn;
|
||||||
public Button ConfirmBtn;
|
public Button ConfirmBtn;
|
||||||
@ -26,9 +26,17 @@ public class Nice_numPanel : MonoBehaviour
|
|||||||
//string pricetext = numberTc.price.text;
|
//string pricetext = numberTc.price.text;
|
||||||
buyGoodIdResponse = await buyGoodId42.buyGoodId(numberTc.id);
|
buyGoodIdResponse = await buyGoodId42.buyGoodId(numberTc.id);
|
||||||
Debug.Log(buyGoodIdResponse);
|
Debug.Log(buyGoodIdResponse);
|
||||||
|
if (buyGoodIdResponse.code == 200)
|
||||||
|
{
|
||||||
numberTc.musk_show();
|
numberTc.musk_show();
|
||||||
Destroy(this.gameObject);
|
Destroy(this.gameObject);
|
||||||
//Debug.Log("弹出蜗壳不足的弹窗");
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
addEventPopUp("弹出蜗壳不足的弹窗");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user