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); }
private void InitItem() { AwardNumText.text = "x" + mData.Amount; // IconImage.sprite =GetResoure(GoodsInfoTool.GetGoodsIcon(mData.GoodsType)) as Sprite; IconImage.sprite = GetResoure <Sprite>(GoodsInfoTool.GetGoodsIcon(mData.GoodsId)); DayNumText.text = $"第{mData.NumberDays}天"; DoneSignInGo.SetActive(mData.isDoneSignIn); }
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 = "已兑奖"; } }
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; }
public void InitPanel() { mQuantityText.text = "x" + mData.GetAmount; mIconImage.sprite = GetResoure <Sprite>(GoodsInfoTool.GetGoodsIcon(mData.GoodsId)); mIconImage.SetNativeSize(); }