private bool ShowAlipayWechatChooser(ProductVo productVo, PayAgent.PayType payType) { if (payType == PayAgent.PayType.None && Channel.CheckShowPayChooser()) { IconSelectWindow win = PopupManager.ShowWindow <IconSelectWindow>(Constants.IconSelectWindowPath); win.SetData("", IconType.Alipay, IconType.WeChatFriend); win.clickCallback = (m) => { if (m == IconType.Alipay) { this.payType = PayAgent.PayType.AliPay; } else if (m == IconType.WeChatFriend) { this.payType = PayAgent.PayType.WechatPay; } CreateOrder(productVo); win.Close(); }; return(true); } return(false); }
private void ShowProduct(ProductVo vo) { Debug.LogError("商品信息:" + vo.ToString()); IconSelectWindow win = PopupManager.ShowWindow <IconSelectWindow>(Constants.IconSelectWindowPath); win.SetData("", IconType.Alipay, IconType.WeChatFriend); win.clickCallback = (m) => { win.Close(); }; }