fix:1、添加h5 2、修复bug
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
using DG.Tweening;
|
||||
using FairyGUI;
|
||||
using FGUI.Loading_25;
|
||||
|
||||
using FGUI.tixian;
|
||||
using UnityEngine;
|
||||
using IgnoreOPS;
|
||||
|
||||
namespace ChillConnect
|
||||
{
|
||||
@@ -25,9 +21,9 @@ namespace ChillConnect
|
||||
uiInfo.packageName = "tixian";
|
||||
uiInfo.assetName = "com_redeem_code";
|
||||
uiInfo.layerType = UILayerType.Loading;
|
||||
uiInfo.isNeedOpenAnim = false;
|
||||
uiInfo.isNeedCloseAnim = false;
|
||||
uiInfo.isNeedUIMask = false;
|
||||
uiInfo.isNeedOpenAnim = true;
|
||||
uiInfo.isNeedCloseAnim = true;
|
||||
uiInfo.isNeedUIMask = true;
|
||||
}
|
||||
|
||||
#region 生命周期
|
||||
@@ -49,7 +45,8 @@ namespace ChillConnect
|
||||
protected override void OnOpenBefore(object args)
|
||||
{
|
||||
GameDispatcher.Instance.Dispatch(GameMsg.StopArrowTouch, false);
|
||||
ui.btn_close1.SetClick(CtrlCloseUI);
|
||||
|
||||
InitView();
|
||||
}
|
||||
|
||||
protected override void OnOpen(object args)
|
||||
@@ -58,6 +55,30 @@ namespace ChillConnect
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
private void InitView()
|
||||
{
|
||||
ui.lab_mn2.text = GameHelper.Get101Str(0);
|
||||
|
||||
ui.lab_ticket.text = GameHelper.GetPriceInt(SaveData.GetSaveObject().PettyAmount);
|
||||
|
||||
var strings = ConfigSystem.GetConfig<CommonModel>().X_Redeemcode;
|
||||
ui.lab_code.text = strings;
|
||||
|
||||
ui.btn_copy.SetClick(() =>
|
||||
{
|
||||
GameHelper.CopyText(ui.lab_code.text);
|
||||
});
|
||||
|
||||
ui.btn_contact_us.SetClick(() =>
|
||||
{
|
||||
|
||||
});
|
||||
|
||||
ui.btn_close1.SetClick(CtrlCloseUI);
|
||||
|
||||
|
||||
}
|
||||
#region 消息
|
||||
|
||||
protected override void AddListener()
|
||||
|
||||
Reference in New Issue
Block a user