2024-11-16 17:56:30 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
using UnityEngine.UI;
|
|
|
|
|
public class Lingjiang_Tanchuang : mount
|
|
|
|
|
{
|
|
|
|
|
public Button Kfbtn;
|
2024-12-29 15:30:02 +08:00
|
|
|
|
public Button Txbtn;
|
|
|
|
|
public Text title;
|
|
|
|
|
public Text balance;
|
|
|
|
|
public Text explained;
|
|
|
|
|
|
2024-11-16 17:56:30 +08:00
|
|
|
|
public Transform canvas;
|
2024-12-29 15:30:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private async void OnEnable()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
Init();
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-16 17:56:30 +08:00
|
|
|
|
// Start is called before the first frame update
|
|
|
|
|
void Start()
|
|
|
|
|
{
|
2024-12-29 15:30:02 +08:00
|
|
|
|
|
|
|
|
|
|
2024-11-16 17:56:30 +08:00
|
|
|
|
Kfbtn.onClick.AddListener(Display_pop_up_window);
|
2024-12-29 15:30:02 +08:00
|
|
|
|
Txbtn.onClick.AddListener(TxClick);
|
|
|
|
|
|
2024-11-16 17:56:30 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2024-12-29 15:30:02 +08:00
|
|
|
|
private void Display_pop_up_window()//<2F><><EFBFBD><EFBFBD>֧<EFBFBD><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>п<EFBFBD>
|
2024-11-16 17:56:30 +08:00
|
|
|
|
{
|
|
|
|
|
|
2024-12-29 15:30:02 +08:00
|
|
|
|
}
|
2024-11-16 17:56:30 +08:00
|
|
|
|
|
2024-12-29 15:30:02 +08:00
|
|
|
|
void TxClick()//<2F><><EFBFBD><EFBFBD>֧<EFBFBD><D6A7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>п<EFBFBD>
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async void Init()
|
|
|
|
|
{
|
|
|
|
|
WithdrawConfigResponse response = await Scene_main_jiekou.instance.WithdrawConfigs();
|
|
|
|
|
title.text = response.data.config.title;
|
|
|
|
|
balance.text = response.data.config.balance;
|
|
|
|
|
explained.text = response.data.config.explained;
|
|
|
|
|
if (response.data.accounts.Count != 0)
|
2024-11-16 17:56:30 +08:00
|
|
|
|
{
|
2024-12-29 15:30:02 +08:00
|
|
|
|
Debug.Log(response.data.accounts);
|
|
|
|
|
Txbtn.gameObject.SetActive(true);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Kfbtn.gameObject.SetActive(true);
|
|
|
|
|
}
|
2024-11-16 17:56:30 +08:00
|
|
|
|
}
|
2024-12-29 15:30:02 +08:00
|
|
|
|
|
2024-11-16 17:56:30 +08:00
|
|
|
|
}
|