Exemple #1
0
    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);
    }
Exemple #2
0
    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();
        };
    }
Exemple #3
0
        public void ShareMusicGameResult(MusicRhythmRunningInfo data)
        {
            IconSelectWindow win = PopupManager.ShowWindow <IconSelectWindow>(Constants.IconSelectWindowPath);

            win.clickCallback = (m) =>
            {
                ScreenShotUtil.ScreenShot(ScreenShotType.MusicGame,
                                          (imageUrl) => {
                    ScreenShotCallback(m, imageUrl, ShareTypePB.ShareClothes);
                }, data);
            };
            win.SetData(
                I18NManager.Get("Common_ShareTo"),
                IconType.WeChatFriend,
                IconType.WeChatFriendCircle,
                IconType.QQFriend,
                IconType.SinaWeibo
                );
        }
Exemple #4
0
        public void ShareCloth(int backId, int clothId)
        {
            IconSelectWindow win = PopupManager.ShowWindow <IconSelectWindow>(Constants.IconSelectWindowPath);

            win.clickCallback = (m) =>
            {
                ScreenShotUtil.ScreenShot(ScreenShotType.Clothes,
                                          (imageUrl) => {
                    ScreenShotCallback(m, imageUrl, ShareTypePB.ShareClothes);
                }, backId, clothId);
            };
            win.SetData(
                I18NManager.Get("Common_ShareTo"),
                IconType.WeChatFriend,
                IconType.WeChatFriendCircle,
                IconType.QQFriend,
                IconType.SinaWeibo
                );
        }
Exemple #5
0
        public void ShareDrawCard(DrawCardResultVo drawCardResultVo)
        {
            IconSelectWindow win = PopupManager.ShowWindow <IconSelectWindow>(Constants.IconSelectWindowPath);

            win.clickCallback = (m) =>
            {
                ScreenShotUtil.ScreenShot(ScreenShotType.DrawCard,
                                          (imageUrl) =>
                {
                    ScreenShotCallback(m, imageUrl, ShareTypePB.ShareDraw);
                }, drawCardResultVo);
            };
            win.SetData(
                I18NManager.Get("Common_ShareTo"),
                IconType.WeChatFriend,
                IconType.WeChatFriendCircle,
                IconType.QQFriend,
                IconType.SinaWeibo
                );
        }