Exemplo n.º 1
0
    void OnConfirmZhuihao()
    {
        ConfirmPanelObj obj = zhOrderObj.cfirmObj;

        int acCount = _zhqs; //

        int singleMoney = 0;

        if (obj.model == 1)
        {
            singleMoney = 200;
        }
        else if (obj.model == 2)
        {
            singleMoney = 20;
        }
        else if (obj.model == 3)
        {
            singleMoney = 2;
        }
        double intje = _zje;

        int bingoStop = stopToggle.value ? 1 : 0;

        NetworkManager.Instance.TakerZhuihaoOrder(obj.lCfg.lotteryId, (int)obj.subCfg.subModeId, acCount, singleMoney, (int)intje, obj.zs, bingoStop, obj.tzbs, obj.contents);

        Loading.GetInstance().ShowLoading(3);
    }
Exemplo n.º 2
0
    void OnTakeOrder(List <ConfirmPanelObj> ConfirmObjList)
    {
        string orderStr = "";
        double tamount  = 0;

        for (int i = 0; i < ConfirmObjList.Count; ++i)
        {
            ConfirmPanelObj obj = ConfirmObjList[i];
            orderStr += obj.subCfg.subModeId + "#";
            orderStr += obj.contents + "#";

            if (obj.model == 1)
            {
                orderStr += "200#";
            }
            else if (obj.model == 2)
            {
                orderStr += "20#";
            }
            else if (obj.model == 3)
            {
                orderStr += "2#";
            }
            orderStr += obj.bs + "#";
            //orderStr += float.Parse(obj.amount) * 100 + "#";
            orderStr += MathUtil.calculate(obj.amount, 100.ToString(), '*') + "#";
            orderStr += obj.zs + "#";
            orderStr += obj.tzbs + "#";
            tamount   = MathUtil.calculate(tamount.ToString(), obj.amount, '+');
        }
        tamount = MathUtil.calculate(tamount.ToString(), "100", '*');
        NetworkManager.Instance.TakeOrder(lmodel.lotteryCfg.lotteryId, lmodel.GetActivityId(), (int)tamount, ConfirmObjList.Count, orderStr);
    }
Exemplo n.º 3
0
 public void ShowPanel(ConfirmPanelObj obj)
 {
     if (obj != null)
     {
         ConfirmObjList.Add(obj);
         panelScript.TitleLabel.text = obj.lCfg.name + " 投注列表";
     }
     else
     {
         panelScript.TitleLabel.text = "投注列表";
     }
     panel.SetActive(true);
     panelScript.CreateItems(ConfirmObjList);
     UpdateBotInfo();
 }
Exemplo n.º 4
0
    public void FillContent(ConfirmPanelObj cobj)
    {
        obj = cobj;
        string mode = "-";

        if (cobj.model == 1)
        {
            mode += "元模式";
        }
        else if (cobj.model == 2)
        {
            mode += "角模式";
        }
        else
        {
            mode += "分模式";
        }
        LotteryTxtLabel.text = cobj.showContent + mode;

        SubModeLabel.text = string.Format("[{0}]", cobj.subCfg.name);

        zbyLabel.text = string.Format("{0}注 {1}倍 {2}元", cobj.zs, cobj.bs, cobj.amount);
    }
Exemplo n.º 5
0
 void OnShowSignal(ConfirmPanelObj cobj)
 {
     view.ClearText();
 }
Exemplo n.º 6
0
 void OnItemDelete(ConfirmPanelObj itemObj)
 {
     ConfirmObjList.Remove(itemObj);
     UpdateBotInfo();
 }
Exemplo n.º 7
0
 void OnShowSignal(ConfirmPanelObj cobj)
 {
     view.ShowPanel(cobj);
 }