From cdf398244e3960f95572142577518b57e7da2bef Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 15 十月 2018 15:47:49 +0800
Subject: [PATCH] 4121 【前端】【1.2.0】登录界面新增客服中心入口和功能界面
---
System/Launch/LaunchWin.cs | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/System/Launch/LaunchWin.cs b/System/Launch/LaunchWin.cs
index 72497e8..1769424 100644
--- a/System/Launch/LaunchWin.cs
+++ b/System/Launch/LaunchWin.cs
@@ -8,6 +8,7 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
+using TableConfig;
namespace Snxxz.UI
{
@@ -23,6 +24,7 @@
[SerializeField] Text m_IosProgressTip;
[SerializeField] Text m_BuildTime;
[SerializeField] Text m_Version;
+ [SerializeField] Button m_Service;
bool assetBuildTimeShowed = false;
@@ -55,14 +57,19 @@
m_AlphaTween.SetStartState();
m_Version.text = StringUtility.Contact(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex);
- if (VersionConfig.Get().debugVersion)
+ m_BuildTime.text = VersionConfig.Get().debugVersion ? VersionConfig.Get().buildTime : "";
+
+ var hasContact = false;
+ foreach (var item in Config.Instance.GetAllValues<ContactConfig>())
{
- m_BuildTime.text = VersionConfig.Get().buildTime;
+ if (item.appid == VersionConfig.Get().appId)
+ {
+ hasContact = true;
+ break;
+ }
}
- else
- {
- m_BuildTime.text = "";
- }
+
+ m_Service.gameObject.SetActive(hasContact);
if (Application.platform == RuntimePlatform.IPhonePlayer)
{
--
Gitblit v1.8.0