Пример #1
0
        public void InitPanel()
        {
            mOrderIdText.text   = mData.OrderId;
            mMoneyText.text     = mData.Money.ToString();
            mGoodsNameText.text = GoodsInfoTool.GetGoodsName(mData.GoodsId);
            mAmountText.text    = mData.GoodsAmount.ToString();
            mTimeText.text      = TimeTool.ConvertLongToTimeDesc(mData.Time);
            switch (mData.TopUpState)
            {
            case TopUpStateType.NoPay:
                mRemarkText.text = "未支付";
                break;

            case TopUpStateType.AlreadyPay:
                mRemarkText.text = "完成交易";
                break;

            case TopUpStateType.RepairOrder:
                mRemarkText.text = "补单成功";
                break;

            default:
                break;
            }

            mRepairOrderBtn.Add(RepairOrderBtnEvent);
        }
Пример #2
0
        public void InitPanel()
        {
            mTimeText.text = TimeTool.ConvertLongToTimeDesc(mData.Time);

            mNameText.text = GoodsInfoTool.GetGoodsName(mData.GoodsId) + "x" + mData.Amount;
            if (mData.Type == 0)
            {
                mStateText.text = "未兑奖";
            }
            else
            {
                mStateText.text = "已兑奖";
            }
        }
Пример #3
0
 public void InitPanel()
 {
     mAlterStateBtn.Add(AlterStateBtnEvent);
     mGoodsNameText.text   = GoodsInfoTool.GetGoodsName(mData.GoodsId);
     mGoodsAmountText.text = mData.Amount.ToString();
     mTimeText.text        = TimeTool.ConvertLongToTimeDesc(mData.Time);
     if (mData.Type == 0)
     {
         mStateText.text = "未兑奖";
     }
     else
     {
         mStateText.text = "已兑奖";
     }
     mRemarText.text = mData.Remark;
 }