43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using Debug = UnityEngine.Debug;
|
|
|
|
public class New_GonghuiInfo : UnionDetail17
|
|
{
|
|
public UnionDataInPage body;
|
|
|
|
public UnionDataInPage Body
|
|
{
|
|
[DebuggerStepThrough] get => body;
|
|
[DebuggerStepThrough]
|
|
set => updateBody(value);
|
|
}
|
|
|
|
|
|
public RichText richText;
|
|
[Header("工会名字")] public TextMeshProUGUI Name;
|
|
[Header("工会人数")] public TextMeshProUGUI Cout;
|
|
[Header("工会头像")] public Image Image;
|
|
[Header("工会qq")] public TextMeshProUGUI qq;
|
|
[Header("工会微信")] 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;
|
|
}
|
|
}
|
|
|
|
}
|