|
@@ -6573,7 +6573,6 @@
|
|
|
this.n15 = (this.getChild("n15"));
|
|
|
this.n34 = (this.getChild("n34"));
|
|
|
this.closeBtn = (this.getChild("closeBtn"));
|
|
|
- this.n39 = (this.getChild("n39"));
|
|
|
this.lab_tip = (this.getChild("lab_tip"));
|
|
|
this.n43 = (this.getChild("n43"));
|
|
|
this.txt_ua = (this.getChild("txt_ua"));
|
|
@@ -6583,6 +6582,7 @@
|
|
|
this.txt_up2 = (this.getChild("txt_up2"));
|
|
|
this.btn_gotoLogin = (this.getChild("btn_gotoLogin"));
|
|
|
this.btn_reg = (this.getChild("btn_reg"));
|
|
|
+ this.n50 = (this.getChild("n50"));
|
|
|
}
|
|
|
}
|
|
|
ui_UIReg.URL = "ui://isxx5ak7bobav57v";
|
|
@@ -6633,7 +6633,6 @@
|
|
|
let ua = this.ui.txt_ua.text;
|
|
|
let up = this.ui.txt_up.text;
|
|
|
if (ua && up) {
|
|
|
- xGame.uiMgr.Show(UIMsg, "Request in progress..");
|
|
|
let reqData = JSON.stringify({
|
|
|
username: ua.trim(),
|
|
|
password: up.trim(),
|
|
@@ -6644,7 +6643,6 @@
|
|
|
console.log('zh:res = ' + JSON.stringify(res));
|
|
|
let code = res.code;
|
|
|
let msg = res.msg;
|
|
|
- xGame.uiMgr.Show(UIMsg, msg);
|
|
|
if (code == 200) {
|
|
|
let keyStr = 'userInfo';
|
|
|
let jsonStr = {
|
|
@@ -6652,8 +6650,11 @@
|
|
|
"token": res.token
|
|
|
};
|
|
|
LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ xGame.uiMgr.Show(UIMsg, msg);
|
|
|
+ this.closeSelf();
|
|
|
}
|
|
|
else {
|
|
|
+ xGame.uiMgr.Show(UIMsg, msg);
|
|
|
}
|
|
|
}
|
|
|
catch (error) {
|
|
@@ -6701,7 +6702,6 @@
|
|
|
let up1 = this.ui.txt_up1.text;
|
|
|
let up2 = this.ui.txt_up2.text;
|
|
|
if (ua && up1 && up2 && up1 == up2) {
|
|
|
- xGame.uiMgr.Show(UIMsg, "Request in progress..");
|
|
|
let reqData = JSON.stringify({
|
|
|
username: ua.trim(),
|
|
|
password: up1.trim(),
|
|
@@ -6709,17 +6709,18 @@
|
|
|
});
|
|
|
xGame.httpMgr.sendPost2025('registerForApp', reqData, (res) => {
|
|
|
try {
|
|
|
- this.ui.lab_tip.visible = true;
|
|
|
console.log('zh:res = ' + JSON.stringify(res));
|
|
|
let code = res.code;
|
|
|
let msg = res.msg;
|
|
|
- this.ui.lab_tip.text = msg;
|
|
|
xGame.uiMgr.Show(UIMsg, msg);
|
|
|
if (code == 200) {
|
|
|
this.ui.lab_tip.color = "#FFFFFF";
|
|
|
+ xGame.uiMgr.Show(UIMsg, msg);
|
|
|
+ this.closeSelf();
|
|
|
}
|
|
|
else {
|
|
|
this.ui.lab_tip.color = "#FF0000";
|
|
|
+ xGame.uiMgr.Show(UIMsg, msg);
|
|
|
}
|
|
|
}
|
|
|
catch (error) {
|
|
@@ -15123,8 +15124,13 @@
|
|
|
return (fgui.UIPackage.createObject("game", "daoJuDisplay"));
|
|
|
}
|
|
|
onConstruct() {
|
|
|
- this.n1 = (this.getChild("n1"));
|
|
|
- this.n0 = (this.getChild("n0"));
|
|
|
+ this.n6 = (this.getChild("n6"));
|
|
|
+ this.n2 = (this.getChild("n2"));
|
|
|
+ this.n3 = (this.getChild("n3"));
|
|
|
+ this.n4 = (this.getChild("n4"));
|
|
|
+ this.n_jiaGe = (this.getChild("n_jiaGe"));
|
|
|
+ this.n_zuanShi = (this.getChild("n_zuanShi"));
|
|
|
+ this.eftZuanShi = (this.getChild("eftZuanShi"));
|
|
|
}
|
|
|
}
|
|
|
ui_daoJuDisplay.URL = "ui://isxx5ak7uel8v58m";
|
|
@@ -22580,7 +22586,6 @@
|
|
|
let ua = this.ui.txt_ua.text;
|
|
|
let up = this.ui.txt_up.text;
|
|
|
if (ua && up) {
|
|
|
- xGame.uiMgr.Show(UIMsg$1, "Request in progress..");
|
|
|
let reqData = JSON.stringify({
|
|
|
username: ua.trim(),
|
|
|
password: up.trim(),
|
|
@@ -22591,7 +22596,6 @@
|
|
|
console.log('zh:res = ' + JSON.stringify(res));
|
|
|
let code = res.code;
|
|
|
let msg = res.msg;
|
|
|
- xGame.uiMgr.Show(UIMsg$1, msg);
|
|
|
if (code == 200) {
|
|
|
let keyStr = 'userInfo';
|
|
|
let jsonStr = {
|
|
@@ -22599,8 +22603,11 @@
|
|
|
"token": res.token
|
|
|
};
|
|
|
LocalStorageManager.setItem(keyStr, jsonStr);
|
|
|
+ xGame.uiMgr.Show(UIMsg$1, msg);
|
|
|
+ this.closeSelf();
|
|
|
}
|
|
|
else {
|
|
|
+ xGame.uiMgr.Show(UIMsg$1, msg);
|
|
|
}
|
|
|
}
|
|
|
catch (error) {
|
|
@@ -22648,7 +22655,6 @@
|
|
|
let up1 = this.ui.txt_up1.text;
|
|
|
let up2 = this.ui.txt_up2.text;
|
|
|
if (ua && up1 && up2 && up1 == up2) {
|
|
|
- xGame.uiMgr.Show(UIMsg$1, "Request in progress..");
|
|
|
let reqData = JSON.stringify({
|
|
|
username: ua.trim(),
|
|
|
password: up1.trim(),
|
|
@@ -22656,17 +22662,18 @@
|
|
|
});
|
|
|
xGame.httpMgr.sendPost2025('registerForApp', reqData, (res) => {
|
|
|
try {
|
|
|
- this.ui.lab_tip.visible = true;
|
|
|
console.log('zh:res = ' + JSON.stringify(res));
|
|
|
let code = res.code;
|
|
|
let msg = res.msg;
|
|
|
- this.ui.lab_tip.text = msg;
|
|
|
xGame.uiMgr.Show(UIMsg$1, msg);
|
|
|
if (code == 200) {
|
|
|
this.ui.lab_tip.color = "#FFFFFF";
|
|
|
+ xGame.uiMgr.Show(UIMsg$1, msg);
|
|
|
+ this.closeSelf();
|
|
|
}
|
|
|
else {
|
|
|
this.ui.lab_tip.color = "#FF0000";
|
|
|
+ xGame.uiMgr.Show(UIMsg$1, msg);
|
|
|
}
|
|
|
}
|
|
|
catch (error) {
|