63 lines
1014 B
C++
63 lines
1014 B
C++
#pragma once
|
|
|
|
#include "TipNode.h"
|
|
|
|
USING_NS_CC;
|
|
using namespace cocos2d::ui;
|
|
|
|
class PayScene : public TipNode
|
|
{
|
|
public:
|
|
PayScene();
|
|
~PayScene();
|
|
|
|
public:
|
|
CREATE_FUNC(PayScene);
|
|
|
|
virtual bool init();
|
|
|
|
virtual void onEnter();
|
|
|
|
virtual void onEnterTransitionDidFinish();
|
|
|
|
virtual void onExit();
|
|
|
|
void onPrevButtonClick(Ref*);
|
|
|
|
void onNextButtonClick(Ref*);
|
|
|
|
//生成密文
|
|
bool mapEncrypt(const char * pszSourceData, char * pszEncrypData, uint16 wMaxCount);
|
|
|
|
void encryptData(std::string strUrl, std::string& strOut);
|
|
|
|
//请求玩家昵称
|
|
void responsePlayerNickName(rapidjson::Document* pDoc);
|
|
|
|
//请求信息结果
|
|
void responsePayResult(rapidjson::Document* pDoc);
|
|
private:
|
|
// 根节点;
|
|
Node* m_rootPanel;
|
|
|
|
// 上一步;
|
|
Button* m_btnPrev;
|
|
// 下一步;
|
|
Button* m_btnNext;
|
|
|
|
Text* m_txtTitle;
|
|
Text* m_txtNumber;
|
|
|
|
Text* m_txtGameID;
|
|
Text* m_txtNickName;
|
|
Text* m_txtCurScore;
|
|
|
|
// 当前步骤;
|
|
uint8 m_cbCurStep;
|
|
|
|
// 玩家ID;
|
|
std::string m_strGameID;
|
|
|
|
// 房卡数量;
|
|
std::string m_strScore;
|
|
}; |