修改细节
This commit is contained in:
parent
1b3743a135
commit
365fab22d4
@ -51,8 +51,14 @@ public class RecommendController : MonoBehaviour
|
||||
break;
|
||||
case 2:
|
||||
await ConfigHelper.activityApi.JoinActivity(Area.ActivityId ?? 0);
|
||||
UIManager.ShowActivityPanel(Area.Url + "?Token=" + App.CurrentUser.cookie);
|
||||
//Application.OpenURL(Area.Url);
|
||||
if (string.IsNullOrEmpty(App.CurrentUser.Contact) || string.IsNullOrEmpty(App.CurrentUser.ContactPhone) || string.IsNullOrEmpty(App.CurrentUser.ContactAddress))
|
||||
{
|
||||
UIManager.ShowAddressPanel();
|
||||
}
|
||||
else
|
||||
{
|
||||
UIManager.ShowActivityPanel(Area.Url + "?Token=" + App.CurrentUser.cookie);
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
App.RouteIdParam = Area.RouteId;
|
||||
|
||||
@ -189,6 +189,9 @@ public static class App
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static bool CanOpenAd = false;
|
||||
|
||||
public static Dictionary<string, string> websiteDict = new Dictionary<string, string>()
|
||||
{
|
||||
{"https://wx.powerfun.com.cn/","http://www.powerfun.com/" },
|
||||
|
||||
@ -117,6 +117,10 @@ public class LoginController : BaseScene
|
||||
|
||||
public Texture avatar;
|
||||
// Start is called before the first frame update
|
||||
private void Awake()
|
||||
{
|
||||
App.CanOpenAd = true;
|
||||
}
|
||||
void Start()
|
||||
{
|
||||
#if UNITY_ANDROID || UNITY_IOS
|
||||
|
||||
@ -337,17 +337,22 @@ public class MainController : BaseScene
|
||||
else
|
||||
{
|
||||
UIManager.ShowHomePanel();
|
||||
var _r = await ConfigHelper.activityApi.GetCurrentActivityList();
|
||||
if (_r.result && _r.data!=null)
|
||||
if (App.CanOpenAd)
|
||||
{
|
||||
var adList = _r.data;
|
||||
App.adQueue.Clear();
|
||||
foreach (var _ad in adList)
|
||||
App.CanOpenAd = false;
|
||||
|
||||
var _r = await ConfigHelper.activityApi.GetCurrentActivityList();
|
||||
if (_r.result && _r.data != null)
|
||||
{
|
||||
App.adQueue.Enqueue(_ad);
|
||||
var adList = _r.data;
|
||||
App.adQueue.Clear();
|
||||
foreach (var _ad in adList)
|
||||
{
|
||||
App.adQueue.Enqueue(_ad);
|
||||
}
|
||||
var ad = App.adQueue.Dequeue();
|
||||
UIManager.ShowActivityAdPanel(ad.Id, ad.DetailUrl, ad.Url + $"?Token={App.CurrentUser.cookie}");
|
||||
}
|
||||
var ad = App.adQueue.Dequeue();
|
||||
UIManager.ShowActivityAdPanel(ad.Id, ad.DetailUrl, ad.Url + $"?Token={App.CurrentUser.cookie}");
|
||||
}
|
||||
|
||||
//UIManager.ShowNewRouteOverviewPanel();
|
||||
|
||||
@ -15,7 +15,6 @@ public class ActivityController : PFUIPanel
|
||||
{
|
||||
browser = transform.Find("Browser");
|
||||
webView = browser.GetComponent<UniWebView>();
|
||||
//webView.LoadHTMLString("<div style='width:100%;height:100%;background:#000;'></div>", "http://192.168.0.101:3081");
|
||||
//webView.Show();
|
||||
}
|
||||
|
||||
|
||||
@ -31,6 +31,10 @@ public class AddressController : PFUIPanel
|
||||
UIManager.ShowActivityPanel(App.ActivityUrl);
|
||||
}
|
||||
});
|
||||
UIManager.AddEvent(transform.Find("Main/Exit").gameObject, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
|
||||
{
|
||||
Close();
|
||||
});
|
||||
}
|
||||
void Start()
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user