42 lines
719 B
C++
42 lines
719 B
C++
#pragma once
|
|
|
|
#include "TipNode.h"
|
|
|
|
USING_NS_CC;
|
|
using namespace cocos2d::ui;
|
|
|
|
class PayLogScene : public TipNode
|
|
{
|
|
public:
|
|
PayLogScene();
|
|
~PayLogScene();
|
|
|
|
public:
|
|
CREATE_FUNC(PayLogScene);
|
|
|
|
virtual bool init();
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onEnterTransitionDidFinish();
|
|
|
|
virtual void onExit();
|
|
|
|
// 请求当页数据;
|
|
void getCurPageData(int nPageIndex);
|
|
|
|
// 请求信息结果;
|
|
void responseResult(rapidjson::Document* pDoc);
|
|
|
|
private:
|
|
Node* m_rootPanel; // 根节点;
|
|
|
|
Text* m_txtPageDesc; // 分页描述;
|
|
Button* m_btnLastPage; // 上一页;
|
|
Button* m_btnNextPage; // 下一页;
|
|
|
|
Layout* m_listItem; // List节点;
|
|
ListView* m_listLogView; // ListView;
|
|
|
|
int m_nCurPageIndex; // 当前页索引;
|
|
}; |