Пример #1
0
 public void deleteMore()
 {
     if (list_container != null)
     {
         string    ids   = "";
         Transform trans = list_container.transform;
         for (int i = 0; i < trans.childCount; i++)
         {
             Transform sun    = trans.GetChild(i);
             UIToggle  toggle = sun.FindChild("delete-flag").GetComponent <UIToggle>();
             if (toggle.value)
             {
                 string[] ss = sun.name.Split("-"[0]);
                 ids += ss[1] + ",";
             }
         }
         if (!MyUtilTools.stringIsNull(ids))
         {
             SendMessageEntity entity = new SendMessageEntity();
             entity.buffer.skip(4);
             entity.buffer.WriteString("DeleteEmail");
             entity.buffer.WriteLong(MainData.instance.user.id);
             entity.buffer.WriteString(ids);
             EventDelegate sure = new EventDelegate(this, "confirmDeleteMore");
             sure.parameters[0]     = new EventDelegate.Parameter();
             sure.parameters[0].obj = entity;
             ConfirmUtil.confirm("是否删除选中的邮件", sure);
         }
         else
         {
             DialogUtil.tip("请选择要删除的邮件");
         }
     }
 }
Пример #2
0
    void delete(MainData.EmailBody email)
    {
        EventDelegate sure = new EventDelegate(this, "confirmDelete");

        sure.parameters[0]     = new EventDelegate.Parameter();
        sure.parameters[0].obj = email;
        ConfirmUtil.confirm("是否删除此邮件", sure);
    }
Пример #3
0
    void confirmDelDeal(DealBody item)
    {
        EventDelegate sure = new EventDelegate(this, "delDeal");

        sure.parameters[0]     = new EventDelegate.Parameter();
        sure.parameters[0].obj = item;
        ConfirmUtil.confirm("确定撤销此贴?", sure);
    }
Пример #4
0
    void openDelRevert(RevertDel revert)
    {
        EventDelegate sure = new EventDelegate(this, "delRevertSure");

        sure.parameters[0]     = new EventDelegate.Parameter();
        sure.parameters[0].obj = revert;
        ConfirmUtil.confirm("确定" + revert.tips + "此条回复内容?", sure);
    }
Пример #5
0
 public void doGrab()
 {
     if (!MainData.instance.user.login())
     {
         LoginEvent.tryToLogin();
         return;
     }
     ConfirmUtil.confirm("确定抢单?", confirmGrab);
 }
Пример #6
0
 public void openLogin()
 {
     if (MainData.instance.user.login())
     {
         ConfirmUtil.confirm("切换账号?", _openLogin);
     }
     else
     {
         _openLogin();
     }
 }
Пример #7
0
    void checkIssue(DealBody item)
    {
        if (!MainData.instance.user.recharge.haveMoney(10))
        {
            DialogUtil.tip("您的邮游币不足请先去充值");
            return;
        }
        EventDelegate sure = new EventDelegate(this, "issueSure");

        sure.parameters[0]     = new EventDelegate.Parameter();
        sure.parameters[0].obj = item;
        ConfirmUtil.confirm("需要消耗10个邮游币继续推送?", sure);
    }
Пример #8
0
 public void SendMessage(byte[] datas, bool needShowLoading)
 {
     if (!socket.Connected)
     {
         ConfirmUtil.confirm("未连接服务器,连接?", tryToReconnect);
         return;
     }
     try  {
         LoadUtil.show(needShowLoading);
         socket.BeginSend(datas, 0, datas.Length, SocketFlags.None, null, socket);
     }  catch  {
         Debug.Log("send message error");
     }
 }
Пример #9
0
 public void commit(GameObject owner)
 {
     if (owner.name.Equals("fk"))
     {
         ConfirmUtil.confirm("提交已付款提交后无法取消?", _fk);
     }
     else if (owner.name.Equals("fh"))
     {
         ConfirmUtil.confirm("提交已发货提交后无法取消?", _fh);
     }
     else if (owner.name.Equals("qr"))
     {
         ConfirmUtil.confirm("提交确认收货提交后无法取消?", _qr);
     }
 }
Пример #10
0
    void cancleFavorite(DealBody item)
    {
        if (!MainData.instance.user.login())
        {
            LoginEvent.tryToLogin();
            LoginEvent.callback = new EventDelegate(this, "back_deal_detail");
            LoginEvent.callback.parameters[0]     = new EventDelegate.Parameter();
            LoginEvent.callback.parameters[0].obj = item;
            return;
        }
        EventDelegate sure = new EventDelegate(this, "comfirmCancleFavorite");

        sure.parameters[0]     = new EventDelegate.Parameter();
        sure.parameters[0].obj = item;
        ConfirmUtil.confirm("取消收藏?", sure);
    }
Пример #11
0
    // Update is called once per frame
    void Update()
    {
        if (NetUtil.getInstance.mustLogin && !ConfirmUtil.isConfirmShow() && !LoadUtil.isActivity() && !DialogUtil.isPopTips())
        {
            if (pushEvent != null)
            {
                pushEvent.ignoreAll();
            }
            NetUtil.getInstance.mustLogin = false;
            ConfirmUtil.confirm("你的账号在别处登录了", goToLogin, exit);
            return;
        }
        List <ByteBuffer> modules = NetUtil.getInstance.Module;

        if (modules.Count > 0)
        {
            foreach (ByteBuffer buffer in modules)
            {
                buffer.ReadInt();//成功
                int size = buffer.ReadInt();
                for (int i = 0; i < size; i++)
                {
                    byte code = buffer.ReadByte();
                    if (moduleCalls.ContainsKey(code))
                    {
                        ModuleCallBack call = moduleCalls[code];
                        call(buffer);
                    }
                }
            }
            modules.Clear();
        }
        modules = NetUtil.getInstance.Cachs;
        if (modules.Count > 0)
        {
            modules.Clear();
        }
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            if (LoadUtil.isActivity())
            {
                return;
            }
            if (ConfirmUtil.isConfirmShow())
            {
                ConfirmUtil.TryToDispear();
                return;
            }
            GameObject photographer = GameObject.Find("photographer");
            if (photographer != null && photographer.activeSelf)
            {
                photographer.GetComponent <PhotographEvent>().over();
                return;
            }
            GameObject popup_select = GameObject.Find("popup-select");
            if (popup_select != null && popup_select.activeSelf)
            {
                popup_select.GetComponent <PopupListEvent>().close();
                return;
            }
            if (DialogUtil.isPopTips())
            {
                DialogUtil.dispear();
                return;
            }
            ConfirmUtil.confirm("是否退出?", exit);
        }
    }
Пример #12
0
 void doDelete()
 {
     delete_obj.SetActive(false);
     ConfirmUtil.confirm("确定删除此条收货地址?", comfirmDelete);
 }
Пример #13
0
 public void zjfk()
 {
     ConfirmUtil.confirm("确定已给卖家打款?", _zjfk);
 }
Пример #14
0
 public void zjsk()
 {
     ConfirmUtil.confirm("确定买家已打款?", _zjsk);
 }
Пример #15
0
 public void revoke()
 {
     ConfirmUtil.confirm("确定撤销?", _revoke);
 }
Пример #16
0
 public void reject()
 {
     ConfirmUtil.confirm("确定拒绝此用户的卖家认证?", _reject);
 }
Пример #17
0
 public void pass()
 {
     MainData.UserData user = datas[selectIndex];
     ConfirmUtil.confirm("确定通过此用户的卖家认证?", _pass);
 }
Пример #18
0
 public static void tryToLogin()
 {
     ConfirmUtil.confirm("未登录,去登录?", openLogin);
     callback = null;
 }