Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        ByteBuffer buffer = MyUtilTools.tryToLogic("Regist");

        if (buffer != null)
        {
            //注册成功
            DialogUtil.tip(buffer.ReadString());
            clearInputs();
        }
        buffer = MyUtilTools.tryToLogic("Token");
        if (buffer != null)
        {
            startTime = System.DateTime.Now.Ticks / 10000000;
            tokenButton.SetState(UIButtonColor.State.Disabled, true);
        }
        if (startTime > 0)
        {
            long now = System.DateTime.Now.Ticks / 10000000;
            int  fix = (int)(now - startTime);
            if (fix >= 60)
            {
                init();
            }
            else
            {
                tokenLabe.text = "重发(" + MyUtilTools.numToString(60 - fix) + ")秒";
            }
        }
    }
Beispiel #2
0
        void Update()
        {
            ByteBuffer buffer = MyUtilTools.tryToLogic("BankAccountDel");

            if (buffer != null)
            {
                DialogUtil.tip("删除成功", true, new EventDelegate(infoEvent.refreshAccountList));
            }
            if (isPressed)
            {
                count++;
                if (count > 50)
                {
                    openPop();
                    count = 0;
                }
            }
            else
            {
                if (delete_obj.activeSelf)
                {
                    popCount--;
                    if (popCount <= 0)
                    {
                        delete_obj.SetActive(false);
                    }
                }
            }
        }
Beispiel #3
0
    // Update is called once per frame
    void Update()
    {
        ByteBuffer buffer = MyUtilTools.tryToLogic("OpenAccountApply");

        if (buffer != null)
        {
            isUploaded = false;
            DialogUtil.tip("申请成功", true, new EventDelegate(backToCenter));
        }

        /*
         * buffer = MyUtilTools.tryToLogic("Token");
         * if (buffer != null)
         * {
         *  startTime = DateTime.Now.Ticks / 10000000;
         *  tokenButton.SetState(UIButtonColor.State.Disabled,true);
         * }
         * if (startTime > 0)
         * {
         *  long now = DateTime.Now.Ticks / 10000000;
         *  int fix = (int)(now - startTime);
         *  if (fix >= 60)
         *  {
         *      initPhoneSend();
         *  }
         *  else
         *  {
         *      tokenLabe.text = "重发(" + MyUtilTools.numToString(60 - fix) + ")秒";
         *  }
         * }*/
    }
Beispiel #4
0
        void Update()
        {
            ByteBuffer buffer = MyUtilTools.tryToLogic("AddressChange");

            if (buffer != null)
            {
                byte type = buffer.ReadByte();
                MainData.instance.user.deserialize(buffer);
                DialogUtil.tip(type == 1 ? "删除成功" : "添加成功", true, new EventDelegate(infoEvent.refreshAddressList));
            }
            if (isPressed)
            {
                count++;
                if (count > 50)
                {
                    openPop();
                    count = 0;
                }
            }
            else
            {
                if (delete_obj.activeSelf)
                {
                    popCount--;
                    if (popCount <= 0)
                    {
                        delete_obj.SetActive(false);
                    }
                }
            }
        }
Beispiel #5
0
 void uploadPicOk(SendMessageEntity entity, UITexture texture1, UITexture texture2)
 {
     if (texture1 != null && texture2 != null)
     {
         EventDelegate ok = new EventDelegate(this, "uploadPicOk");
         ok.parameters[0]     = new EventDelegate.Parameter();
         ok.parameters[0].obj = entity;
         ok.parameters[1]     = new EventDelegate.Parameter();
         ok.parameters[1].obj = texture2;
         ok.parameters[2]     = new EventDelegate.Parameter();
         ok.parameters[2].obj = null;
         JustRun.Instance.upLoadPic(entity.names[1], ((Texture2D)texture1.mainTexture).EncodeToJPG(), ok, new EventDelegate(uploadPicFail));
     }
     else if (texture1 != null && texture2 == null)
     {
         EventDelegate ok = new EventDelegate(this, "uploadPicOk");
         ok.parameters[0]     = new EventDelegate.Parameter();
         ok.parameters[0].obj = entity;
         ok.parameters[1]     = new EventDelegate.Parameter();
         ok.parameters[1].obj = null;
         ok.parameters[2]     = new EventDelegate.Parameter();
         ok.parameters[2].obj = null;
         JustRun.Instance.upLoadPic(entity.names[2], ((Texture2D)texture1.mainTexture).EncodeToJPG(), ok, new EventDelegate(uploadPicFail));
     }
     else
     {
         isUploaded = true;
         LoadUtil.show(false);
         EventDelegate next = new EventDelegate(this, "sendMessage");
         next.parameters[0]     = new EventDelegate.Parameter();
         next.parameters[0].obj = entity;
         DialogUtil.tip("图片上传成功点击确定继续", true, next);
     }
 }
Beispiel #6
0
    // Update is called once per frame
    void Update()
    {
        ByteBuffer buffer = MyUtilTools.tryToLogic("AdminMemberSearch");

        if (buffer != null)
        {
            int size = buffer.ReadInt();
            if (size > 0)
            {
                selectIndex = 0;
                users.Clear();
                for (int i = 0; i < size; i++)
                {
                    MainData.UserData user = new MainData.UserData();
                    user.deserialize(buffer);
                    users.Add(user);
                }
                refresh();
            }
            else
            {
                DialogUtil.tip("查找不到相关数据");
            }
        }
        buffer = MyUtilTools.tryToLogic("AdminUserResetPwd");
        if (buffer != null)
        {
            DialogUtil.tip(buffer.ReadString(), true);
        }
        buffer = MyUtilTools.tryToLogic("AdminUserCommit");
        if (buffer != null)
        {
            DialogUtil.tip("提交成功", true);
        }
    }
Beispiel #7
0
        void Update()
        {
            ByteBuffer buffer = MyUtilTools.tryToLogic("AddAccount");

            if (buffer != null)
            {
                MainData.instance.user.bacnkAccount.deserialize(buffer);
                DialogUtil.tip("添加成功", true, uEvent.callback);
            }
            buffer = MyUtilTools.tryToLogic("SellerCommit");
            if (buffer != null)
            {
                MainData.instance.user.seller.deserialize(buffer);
                DialogUtil.tip("申请成功", true, new EventDelegate(uEvent.backFromRZAndRefresh));
            }
            buffer = MyUtilTools.tryToLogic("UserUpdate");
            if (buffer != null)
            {
                MainData.instance.user.deserialize(buffer);
                uEvent.backToCenter();
            }
            buffer = MyUtilTools.tryToLogic("AddressChange");
            if (buffer != null)
            {
                byte type = buffer.ReadByte();
                MainData.instance.user.deserialize(buffer);
                DialogUtil.tip(type == 1 ? "删除成功" : "添加成功", true, uEvent.callback);
            }
        }
Beispiel #8
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("请选择要删除的邮件");
         }
     }
 }
Beispiel #9
0
    void sure(GameObject container, bool flag)
    {
        Transform level      = container.transform.FindChild("level");
        UIToggle  good       = level.FindChild("good").GetComponent <UIToggle>();
        UIToggle  normal     = level.FindChild("normal").GetComponent <UIToggle>();
        byte      type       = (byte)(good.value ? 3 : (normal ? 2 : 1));
        UIInput   inputFiled = container.transform.FindChild("inputer").GetComponent <UIInput>();

        if (MyUtilTools.stringIsNull(inputFiled.value))
        {
            UILabel label = inputFiled.transform.FindChild("tips").GetComponent <UILabel>();
            DialogUtil.tip(label.text);
            return;
        }
        ByteBuffer buffer = ByteBuffer.Allocate(1024);

        buffer.skip(4);
        buffer.WriteString("Appraise");
        buffer.WriteByte((byte)(flag?1:0));
        buffer.WriteLong(order.dealId);
        buffer.WriteLong(order.id);
        buffer.WriteByte(type);
        buffer.WriteString(inputFiled.value);
        NetUtil.getInstance.SendMessage(buffer);
    }
Beispiel #10
0
    // Update is called once per frame
    void Update()
    {
        if (pushs.Count == 0)
        {
            return;
        }
        if (!ConfirmUtil.isConfirmShow() && !LoadUtil.isActivity() && !DialogUtil.isPopTips())
        {
            if (!isOpen)
            {
                tryToOpenPush();
            }
        }
        ByteBuffer buffer = MyUtilTools.tryToLogic("DealGrab");

        if (buffer != null)
        {
            DialogUtil.tip("抢单成功", true);
        }
        buffer = MyUtilTools.tryToLogic("DealFavorite");
        if (buffer != null)
        {
            int type = buffer.ReadInt();
            int len  = buffer.ReadInt();
            MainData.instance.user.favorites.Clear();
            for (int i = 0; i < len; i++)
            {
                long value = buffer.ReadLong();
                MainData.instance.user.favorites.Add(value);
            }
            DialogUtil.tip(type == 0 ? "收藏成功" : "取消收藏成功", true);
        }
    }
Beispiel #11
0
        void Update()
        {
            bool       flag   = false;
            ByteBuffer buffer = MyUtilTools.tryToLogic("DealDel");

            if (buffer != null)
            {
                DialogUtil.tip("撤销成功", true);
            }
            buffer = MyUtilTools.tryToLogic("RevertDel");
            if (buffer != null)
            {
                DialogUtil.tip("操作成功", true);
            }
            buffer = MyUtilTools.tryToLogic("UserLook");
            if (buffer != null)
            {
                dealEvent.toLook(buffer);
            }
            buffer = MyUtilTools.tryToLogic("DealIssue");
            if (buffer != null)
            {
                DialogUtil.tip(buffer.ReadString(), true);
            }
            if (flag)
            {
                dealEvent.updateList();
            }
        }
Beispiel #12
0
    // Update is called once per frame
    void Update()
    {
        ByteBuffer buffer = MyUtilTools.tryToLogic("AdminResetPwd");

        if (buffer != null)
        {
            DialogUtil.tip("密码重置成功", true);
        }
    }
Beispiel #13
0
    void uploadPicOk(SendMessageEntity entity)
    {
        LoadUtil.show(false);
        EventDelegate next = new EventDelegate(this, "sendRZ");

        next.parameters[0]     = new EventDelegate.Parameter();
        next.parameters[0].obj = entity;
        DialogUtil.tip("图片上传成功点击确定继续认证", true, next);
    }
Beispiel #14
0
    public void doAddAccount()
    {
        Transform   container = needshow[0].transform.FindChild("account-body").FindChild("add");
        Transform   name_tran = container.FindChild("name");
        UIPopupList list      = name_tran.GetComponent <UIPopupList>();
        string      name      = null;

        if (list.value.Equals("其他银行"))
        {
            UIInput input = name_tran.FindChild("inputer").GetComponent <UIInput>();
            name = input.value;
            if (MyUtilTools.stringIsNull(name))
            {
                DialogUtil.tip(input.transform.FindChild("tips").GetComponent <UILabel>().text);
                return;
            }
        }
        else
        {
            name = list.value;
        }
        UIInput account_input = container.FindChild("account").GetComponent <UIInput>();
        string  account       = account_input.value;

        if (MyUtilTools.stringIsNull(account))
        {
            DialogUtil.tip(account_input.transform.FindChild("tips").GetComponent <UILabel>().text);
            return;
        }
        account_input = container.FindChild("openAddress").GetComponent <UIInput>();
        string openName = account_input.value;

        if (MyUtilTools.stringIsNull(openName))
        {
            DialogUtil.tip(account_input.transform.FindChild("tips").GetComponent <UILabel>().text);
            return;
        }
        account_input = container.FindChild("openNames").GetComponent <UIInput>();
        string openPeopleName = account_input.value;

        if (MyUtilTools.stringIsNull(openPeopleName))
        {
            DialogUtil.tip(account_input.transform.FindChild("tips").GetComponent <UILabel>().text);
            return;
        }
        ByteBuffer buffer = ByteBuffer.Allocate(1024);

        buffer.skip(4);
        buffer.WriteString("AddAccount");
        buffer.WriteLong(MainData.instance.user.id);        //编号
        buffer.WriteString(name);
        buffer.WriteString(account);
        buffer.WriteString(openName);
        buffer.WriteString(openPeopleName);
        NetUtil.getInstance.SendMessage(buffer);
    }
Beispiel #15
0
    public void tryToAddFriend()
    {
        UIInput num_input = transform.FindChild("find-body").FindChild("inputer").GetComponent <UIInput>();

        if (MyUtilTools.stringIsNull(num_input.value))
        {
            DialogUtil.tip("请输入手机号码或者昵称");
            return;
        }
        justUseAddFriend = num_input.value;
        sendAddMessage();
    }
Beispiel #16
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);
    }
Beispiel #17
0
 // Update is called once per frame
 void Update()
 {
     if (count > 0)         //超时处理
     {
         count--;
         if (count == 0)
         {
             dispear();
             DialogUtil.tip("通讯超时,请检测网络再试");
             NetUtil.getInstance.clear();
         }
     }
 }
Beispiel #18
0
 public void check()
 {
     if (input != null)
     {
         int num = int.Parse(input.value);
         if (num < maxNUm)
         {
             DialogUtil.tip("剩余数量不足" + maxNUm);
             input.value = saveNum + "";
             return;
         }
         saveNum = num;
     }
 }
Beispiel #19
0
    // Update is called once per frame
    void Update()
    {
        int count_mjfk = 0, count_mjqr = 0;

        foreach (DealBody.Order order in orders)
        {
            if (order.state == 1)
            {
                count_mjfk++;
            }
            else if (order.state == 4)
            {
                count_mjqr++;
            }
        }
        bool flag = count_mjfk != mjfk.FindChild("suns").childCount || count_mjqr != mjqr.FindChild("suns").childCount;

        if (flag)
        {
            refresh();
        }
        ByteBuffer buffer = MyUtilTools.tryToLogic("AdminLookUser");

        if (buffer != null)
        {
            MainData.UserData user = new MainData.UserData();
            user.deserialize(buffer);
            refreshUser(user);
        }
        buffer = MyUtilTools.tryToLogic("AdminOrderRevoke");
        if (buffer != null)
        {
            DialogUtil.tip("撤销成功", true);
        }
        buffer = MyUtilTools.tryToLogic("AdminDealOrderUpdate");
        if (buffer != null)
        {
            DialogUtil.tip("操作成功", true);
        }
        Transform right = transform.FindChild("right");

        if (orders.Count == 0)
        {
            right.FindChild("order-help").gameObject.SetActive(false);
            right.FindChild("appraise").gameObject.SetActive(false);
            right.FindChild("user-look").gameObject.SetActive(false);
            return;
        }
    }
Beispiel #20
0
    // Update is called once per frame
    void Update()
    {
        ByteBuffer buffer = MyUtilTools.tryToLogic("AdminDealSearch");

        if (buffer != null)
        {
            MainData.instance.deserializeDeals(buffer);
            selectIndex = 0;
            refreshList();
        }
        buffer = MyUtilTools.tryToLogic("AdminDealMore");
        if (buffer != null)
        {
            MainData.instance.deserializeDeals(buffer);
            backHighSearch(transform.FindChild("right").gameObject, transform.FindChild("search-pop").gameObject);
            refreshList();
        }
        buffer = MyUtilTools.tryToLogic("AdminDealRevoke");
        if (buffer != null)
        {
            long dealId = buffer.ReadLong();
            for (int i = 0; i < MainData.instance.deal_all.Count; i++)
            {
                DealBody deal = MainData.instance.deal_all[i];
                if (deal.id == dealId)
                {
                    MainData.instance.deal_all.RemoveAt(i);
                    break;
                }
            }
            MainData.instance.deserializeDeals(buffer);
            backHighSearch(transform.FindChild("right").gameObject, transform.FindChild("search-pop").gameObject);
            if (selectIndex > 0)
            {
                selectIndex--;
            }
            refreshList();
        }
        buffer = MyUtilTools.tryToLogic("AdminOrderRevoke");
        if (buffer != null)
        {
            DialogUtil.tip("撤销成功", true);
        }
        buffer = MyUtilTools.tryToLogic("AdminLockDeal");
        if (buffer != null)
        {
            DialogUtil.tip("操作成功", true);
        }
    }
Beispiel #21
0
    void openSearchResult(string resultStr, MainData.FriendBody friend)
    {
        string[] ss   = resultStr.Split(","[0]);
        int      type = int.Parse(ss[0]);

        if (type == 0)
        {
            DialogUtil.tip("找不到用户");
            return;
        }
        GameObject result = transform.FindChild("list").FindChild("result").gameObject;

        result.SetActive(true);
        transform.FindChild("list").FindChild("body").GetComponent <UIPanel>().alpha = 0.2f;
        result.GetComponent <JustChangeLayer>().change(10);
        CameraUtil.push(8, 2);
        Transform sure        = result.transform.FindChild("bg").FindChild("down").FindChild("sure");
        UIButton  sure_button = sure.GetComponent <UIButton>();
        UILabel   sure_label  = sure.GetComponent <UILabel>();
        UILabel   content     = result.transform.FindChild("content").GetComponent <UILabel>();

        if (type == 1)
        {
            sure_label.text = "添加好友";
            sure_button.onClick.Clear();
            justUseAddFriend = ss[1];
            content.text     = ss[1];
            sure_button.onClick.Add(new EventDelegate(sendAddMessage));
        }
        else if (type == 2)
        {
            sure_label.text = "聊  天";
            sure_button.onClick.Clear();
            if (friend.pass == 0)
            {
                sure_button.enabled = false;
                content.text        = ss[1] + "(已申请,对方尚未通过)";
            }
            else
            {
                content.text = ss[1];
                EventDelegate chat_event = new EventDelegate(this, "openMessage");
                chat_event.parameters[0]     = new EventDelegate.Parameter();
                chat_event.parameters[0].obj = friend;
                sure_button.onClick.Add(chat_event);
            }
        }
    }
Beispiel #22
0
    public void search()
    {
        UIInput input = transform.FindChild("left").FindChild("search").FindChild("inputer").GetComponent <UIInput>();

        if (MyUtilTools.stringIsNull(input.value))
        {
            DialogUtil.tip(input.transform.FindChild("tips").GetComponent <UILabel>().text);
            return;
        }
        ByteBuffer buffer = ByteBuffer.Allocate(1024);

        buffer.skip(4);
        buffer.WriteString("AdminMemberSearch");
        buffer.WriteString(input.value);
        NetUtil.getInstance.SendMessage(buffer);
    }
Beispiel #23
0
    private void scan()
    {
        Result result = reader.Decode(temps, cameraTexture.height, cameraTexture.width);

        if (result != null)
        {
            DialogUtil.tip(result.Text);
            UIPlaySound sound = gameObject.GetComponent <UIPlaySound>();
            sound.Play();
            cameraTexture.Stop();
            if (callBack != null)
            {
                callBack.Execute();
            }
        }
    }
Beispiel #24
0
    public void send()
    {
        if (!MainData.instance.user.login())
        {
            LoginEvent.tryToLogin();
            return;
        }
        Transform container      = transform.FindChild("send");
        UIInput   input_accepter = container.FindChild("accepter").GetComponent <UIInput>();

        if (MyUtilTools.stringIsNull(input_accepter.value))
        {
            UILabel label = input_accepter.transform.FindChild("tips").GetComponent <UILabel>();
            DialogUtil.tip(label.text);
            return;
        }
        if (input_accepter.value.Equals(MainData.instance.user.nikeName))
        {
            DialogUtil.tip("不能给自己发邮件");
            return;
        }
        UIInput input_theme = container.FindChild("theme").GetComponent <UIInput>();

        if (MyUtilTools.stringIsNull(input_theme.value))
        {
            UILabel label = input_theme.transform.FindChild("tips").GetComponent <UILabel>();
            DialogUtil.tip(label.text);
            return;
        }
        UIInput input_content = container.FindChild("content").GetComponent <UIInput>();

        if (MyUtilTools.stringIsNull(input_content.value))
        {
            UILabel label = input_content.transform.FindChild("tips").GetComponent <UILabel>();
            DialogUtil.tip(label.text);
            return;
        }
        ByteBuffer buffer = ByteBuffer.Allocate(1024);

        buffer.skip(4);
        buffer.WriteString("SendEmail");
        buffer.WriteLong(MainData.instance.user.id);//编号
        buffer.WriteString(input_accepter.value);
        buffer.WriteString(input_theme.value);
        buffer.WriteString(input_content.value);
        NetUtil.getInstance.SendMessage(buffer);
    }
Beispiel #25
0
 public void next()
 {
     if (num_input.value != null && startTime == 0)
     {
         if (MyUtilTools.stringIsNull(num_input.value))
         {
             DialogUtil.tip("请输入手机号码");
             return;
         }
         ByteBuffer buffer = ByteBuffer.Allocate(1024);
         buffer.skip(4);
         buffer.WriteString("FindPassword");
         buffer.WriteString(num_input.value);
         NetUtil.getInstance.SendMessage(buffer);
         tips_obj.SetActive(false);
     }
 }
Beispiel #26
0
    public static ByteBuffer tryToLogic(string key)
    {
        ByteBuffer buffer = NetUtil.getInstance.find(key);

        if (buffer != null)
        {
            NetUtil.getInstance.remove(key);
            int result = buffer.ReadInt();
            if (result == 1)
            {
                string tip = buffer.ReadString();
                DialogUtil.tip(tip);
                return(null);
            }
        }
        return(buffer);
    }
Beispiel #27
0
 public void send(UIInput input)
 {
     if (MyUtilTools.stringIsNull(input.value))
     {
         DialogUtil.tip("请输入手机号码");
         return;
     }
     if (startTime == 0)
     {
         ByteBuffer buffer = ByteBuffer.Allocate(1024);
         buffer.skip(4);
         buffer.WriteString("Token");
         buffer.WriteString(input.value);
         buffer.WriteString("1");
         NetUtil.getInstance.SendMessage(buffer);
     }
 }
Beispiel #28
0
        void Update()
        {
            ByteBuffer buffer = MyUtilTools.tryToLogic("OrderRevoke");

            if (buffer != null)
            {
                DialogUtil.tip("申请成功", true);
            }
            if (order.item.flag == JustRun.DEL_FLAG)
            {//浏览的交易被删除了
                _dealEvent.backList();
                return;
            }
            if (order.refresh)
            {
                order.insterToObj(gameObject);
                UIButton button = transform.FindChild("look").GetComponent <UIButton>();
                if (order.item.uid == MainData.instance.user.id || MainData.instance.user.id == order.buyId)
                {
                    EventDelegate event_delegat = new EventDelegate(_dealEvent, "openLook");
                    event_delegat.parameters[0]     = new EventDelegate.Parameter();
                    event_delegat.parameters[0].obj = new LongParamter(order.item.id);
                    event_delegat.parameters[1]     = new EventDelegate.Parameter();
                    if (order.item.uid == MainData.instance.user.id)
                    {
                        event_delegat.parameters[1].obj = new LongParamter(order.buyId);
                    }
                    else if (order.buyId == MainData.instance.user.id)
                    {
                        event_delegat.parameters[1].obj = new LongParamter(order.item.uid);
                    }
                    button.onClick.Add(event_delegat);
                }
                else
                {
                    EventDelegate event_delegat = new EventDelegate(nolook);
                    button.onClick.Add(event_delegat);
                }
                GameObject buy_obj  = transform.FindChild("buyer-appraise").gameObject;
                GameObject sell_obj = transform.FindChild("seller-appraise").gameObject;
                order.buyerAppraise.insterToObj(buy_obj, gameObject, transform.parent.parent.parent.gameObject);
                order.sellerAppraise.insterToObj(sell_obj, gameObject, transform.parent.parent.parent.gameObject);
                order.refresh = false;
            }
        }
Beispiel #29
0
    // Update is called once per frame
    void Update()
    {
        ByteBuffer buffer = MyUtilTools.tryToLogic("AdminSellerOpration");

        if (buffer != null)
        {
            if (selectIndex > 0)
            {
                selectIndex--;
            }
            DialogUtil.tip("操作成功", true);
            return;
        }
        if (datas.Count != leftContainer.childCount)
        {
            refresh();
        }
    }
Beispiel #30
0
    public void sure()
    {
        UIInput input = gameObject.GetComponentInChildren <UIInput>();

        if (MyUtilTools.stringIsNull(input.value))
        {
            DialogUtil.tip("请输入要回复的内容");
            return;
        }
        ByteBuffer buffer = ByteBuffer.Allocate(1024);

        buffer.skip(4);
        buffer.WriteString("RevertAdd");
        buffer.WriteLong(curItem.id);
        buffer.WriteLong(MainData.instance.user.id);
        buffer.WriteLong(target);
        buffer.WriteString(input.value);
        NetUtil.getInstance.SendMessage(buffer);
    }