_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/gonghui/New_GonghuiInfo.cs

43 lines
1.2 KiB
C#
Raw Normal View History

2024-12-02 12:02:54 +08:00
using System.Collections;
using System.Collections.Generic;
2024-12-02 15:35:46 +08:00
using System.Diagnostics;
2024-12-05 16:59:31 +08:00
using TMPro;
2024-12-02 12:02:54 +08:00
using UnityEngine;
2024-12-05 16:59:31 +08:00
using UnityEngine.UI;
2024-12-02 15:35:46 +08:00
using Debug = UnityEngine.Debug;
2024-12-02 12:02:54 +08:00
2024-12-02 15:35:46 +08:00
public class New_GonghuiInfo : UnionDetail17
2024-12-02 12:02:54 +08:00
{
2024-12-02 15:35:46 +08:00
public UnionDataInPage body;
2024-12-05 16:59:31 +08:00
2024-12-02 15:35:46 +08:00
public UnionDataInPage Body
2024-12-02 12:02:54 +08:00
{
2024-12-02 15:35:46 +08:00
[DebuggerStepThrough] get => body;
2024-12-05 16:59:31 +08:00
[DebuggerStepThrough]
set => updateBody(value);
2024-12-02 12:02:54 +08:00
}
2024-12-02 15:35:46 +08:00
public RichText richText;
2024-12-05 16:59:31 +08:00
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")] public TextMeshProUGUI Name;
[Header("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")] public TextMeshProUGUI Cout;
[Header("<22><><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7>")] public Image Image;
[Header("<22><><EFBFBD><EFBFBD>qq")] public TextMeshProUGUI qq;
[Header("<22><><EFBFBD><EFBFBD>΢<EFBFBD><CEA2>")] public TextMeshProUGUI wx;
public async void updateBody(UnionDataInPage value)
{
{
Debug.Log(value.ToString());
body = value;
richText.Text = body.Slogan;
UnionDetalResponse unionDetalResponse = await queryUnionDetail(body.Id);
Cout.text = unionDetalResponse.Data.BizUnionUserModelList.Count.ToString();
Name.text = body.Name;
Image.sprite = await GlobalObj.GetComponent<ImageLoader>().LoadImageAsync(body.Cover);
qq.text = body.qq;
wx.text = body.wx;
}
}
2024-12-02 15:35:46 +08:00
2024-12-02 12:02:54 +08:00
}