//登录 手机
public static LoginMobile(_mobile, _quhao, _code, _isInland, callBack) {
let params = "mobile=" + _mobile;
params += "&code=" + _code;
params += "&country_code=" + _quhao;
params += "&type=" + _isInland;
params += "&platform=2";
// var url = "http://jdjy.joinpowern.com/api/login/login";
var url = HttpManage.GetHttpPath() + "/api/login/login";
this.HttpPost(url, params, function (resultjson) {
callBack(resultjson);
});
}
// 具体实现
HttpManage.LoginMobile(this._mobileNumber, this._mobileNumber_Quhao, this._inputCode, MCore.isInland, function (_data) {
if (_data.msg == 1) {
cc.log(" 登录 成功 " + JSON.stringify(_data.data));
cc.log(" HintManage.LanType = " + HintManage.LanType);
HintManage.SetHint(HintManage.hint_login, self.node.parent);
MCore.PlayDataInit(_data.data);
MCore.palyData.SetMobile(self._mobileNumber);