Commit 7b60014e authored by liujiangnan's avatar liujiangnan

feat: 游客模式

parent 3c467d5d
......@@ -10652,7 +10652,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "0cEORWow9JJ5uUaRM+atLb"
"_id": "5fo/Mkc2NIM5w1quAi/9l3"
},
{
"__type__": "cc.Label",
......@@ -10685,7 +10685,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "002bH6bghBLYyNY2VVOuDw"
"_id": "d1xmYILYxJmrmwnJcT+z1r"
},
{
"__type__": "cc.RichText",
......@@ -11001,7 +11001,7 @@
"_groupIndex": 0,
"groupIndex": 0,
"showInEditor": false,
"_id": "7dmRV/WB9A2JsMQa+qY2Ed"
"_id": "05VpeqK6FNtZ9lmJ0pTQ42"
},
{
"__type__": "cc.Label",
......@@ -11034,7 +11034,7 @@
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
"_id": "0e/bUYU41Gf60hOPNfJq3N"
"_id": "5epSqtsZ9IqZ5C/YG0kpnC"
},
{
"__type__": "cc.RichText",
......@@ -11232,7 +11232,7 @@
"__id__": 230
}
],
"_active": false,
"_active": true,
"_components": [
{
"__id__": 232
......@@ -11288,7 +11288,7 @@
},
{
"__type__": "cc.Node",
"_name": "New Label",
"_name": "text",
"_objFlags": 0,
"_parent": {
"__id__": 229
......@@ -11363,8 +11363,8 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "不想登录?随便看看...",
"_N$string": "不想登录?随便看看...",
"_string": "不想登录?去游乐场...",
"_N$string": "不想登录?去游乐场...",
"_fontSize": 18,
"_lineHeight": 18,
"_enableWrapText": true,
......
......@@ -54,6 +54,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.middleLayer.showTips(res.msg);
return;
}
this.middleLayer.isLogin = true;
cc.sys.localStorage.setItem('token', res.token);
cc.sys.localStorage.setItem('phone', phone);
jumpToBundle('NJ_YouLeChang');
......@@ -105,15 +106,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
// if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS) {
// const tryatry = cc.find('Canvas/bg/ui/tryatry');
// tryatry.active = true;
// buttonOnClick(tryatry, () => {
// cc.find('Canvas/bg/ui/btnLaw/check').active = true;
// this.login(15500000006, "qwer1111");
// });
// }
const tryatry = cc.find('Canvas/bg/ui/tryatry');
buttonOnClick(tryatry, () => {
jumpToBundle('NJ_YouLeChang');
});
const btnResetPassword = cc.find('Canvas/bg/ui/forgetNode/btnResetPassword');
buttonOnClick(btnResetPassword, async () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment