| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #pragma once
- class OrderListStatus
- {
- public:
- int m_status;
- int m_page;
- };
- class OrderListUI : public CVerticalLayoutUI
- {
- public:
- OrderListUI();
- ~OrderListUI();
- //刷新当前页面的内容,注意这个函数不会改变当前的订单状态以及“页数”
- void Refresh();
- void LastPage();
- void NextPage();
- void DoEvent(TEventUI& event);
- void SetStatus(int status)
- {
- m_status = status;
- }
- void SetPage(int n)
- {
- m_page = n;
- }
- void HandleRefresh(OrderListStatus* status);
- void DoRefresh();
- private:
- int m_status = 1; //1:未处理 2:已确认 3:配送中 4:成功 5:失败 6:已取消 7:退款中
- int m_page = 1;
- int m_total_page; //总页数
- std::string m_response;
- };
|