private void OnPay(ShopModelUnit data) { var payInfo = new PayInfo { Id = data.Id, GoldsName = data.Name, CostNum = data.Currency, Describe = data.Description }; MainYxView.OpenWindowWithData("PayChangeWindow", payInfo); }
/// <summary> /// 点击跳转Url(两种模式:1,跳转外置浏览器) /// </summary> /// <param name="linkUrl"></param> /// <param name="windowName"></param> public void OnClickLinkUrl(string linkUrl, string windowName) { if (string.IsNullOrEmpty(linkUrl)) { return; } if (LinkToBrowser) { OnOpenUrl(linkUrl); } else { MainYxView.OpenWindowWithData(windowName, linkUrl); } }
public void FindRoom(int roomId) { RoomListController.Instance.FindRoom(roomId, obj => { var data = obj as IDictionary <string, object>; if (data == null) { YxMessageBox.Show("没有找到房间!!"); return; } var str = data.ContainsKey(RequestKey.KeyMessage) ? data[RequestKey.KeyMessage] : null; if (str != null) { YxMessageBox.Show(str.ToString()); return; } var rid = data["roomId"]; Debug.Log(rid); Debug.Log(rid.GetType()); if (rid is string) { rid = int.Parse(rid.ToString()); } var Rid = int.Parse(rid.ToString()); YxDebug.Log("加入房间的真实ID是" + Rid); if (roomId < 1) { YxMessageBox.Show("查找异常!"); return; } var gameKey = (string)(data.ContainsKey("gameKey") ? data["gameKey"] : App.GameKey); JoinRoomData roomData = new JoinRoomData(); roomData.roomId = Rid; roomData.GameKey = gameKey; roomData.Info = InfoStr; MainYxView.OpenWindowWithData("TeaRoomInfoWindow", roomData); }); }
public void OnClickBindBtn() { MainYxView.OpenWindowWithData(_curCostData.BinwWindow, _curCostData, OnBindStateChange); }
private void OnBuyWithPay(YxGoods data) { MainYxView.OpenWindowWithData("PayChangeWindow", data); }
/// <summary> /// 点击查看 /// </summary> public void OnCheckClick(string windowName) { MainYxView.OpenWindowWithData(windowName, Data); }
/// <summary> /// 使用内嵌网页打开回放 /// </summary> /// <param name="openWindowName"></param> /// <param name="url"></param> public void ShowUrlByWebView(string openWindowName, string url) { MainYxView.OpenWindowWithData(openWindowName, url); }
/// <summary> /// item 点击事件 /// </summary> public void OnClickItem(string windowName) { MainYxView.OpenWindowWithData(windowName, _cacheData); }