Commit 671a68ca authored by liujiangnan's avatar liujiangnan

feat: 隐私协议等

parent adeee2f2
This diff is collapsed.
...@@ -287,6 +287,21 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -287,6 +287,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
.start(); .start();
}); });
const privacy = cc.find(`Canvas/bg/ui/btnLaw/privacy`);
privacy.on('click', () => {
this.onOpenPrivacy();
});
const policy = cc.find(`Canvas/bg/ui/btnLaw/policy`);
policy.on('click', () => {
this.onOpenPolicy();
});
const closeWebbtn = cc.find(`Canvas/bg/webContainer/closeWebbtn`);
closeWebbtn.on('click', () => {
this.closeWebView();
});
// 环境切换后门(两秒内连点十下以上) // 环境切换后门(两秒内连点十下以上)
// Canvas/bg/bg_oxford // Canvas/bg/bg_oxford
const bk = cc.find(`Canvas/bg/bg_oxford`); const bk = cc.find(`Canvas/bg/bg_oxford`);
...@@ -303,5 +318,24 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -303,5 +318,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
bk.attr({bk_count: bk_count+1}); bk.attr({bk_count: bk_count+1});
} }
}); });
}
onOpenPrivacy() {
const web_container = cc.find(`Canvas/bg/webContainer`);
const web_view = cc.find(`webBg/webview`, web_container);
web_view.getComponent(cc.WebView).url = "https://appstore.iteachabc.com/application/web/privacy_policy/oxford_privacy.html?t="+Date.now();
web_container.active = true;
} }
onOpenPolicy() {
const web_container = cc.find(`Canvas/bg/webContainer`);
const web_view = cc.find(`webBg/webview`, web_container);
web_view.getComponent(cc.WebView).url = "https://appstore.iteachabc.com/application/web/privacy_policy/oxford_policy.html?t="+Date.now();
web_container.active = true;
}
closeWebView() {
const web_container = cc.find(`Canvas/bg/webContainer`);
web_container.active = false;
}
} }
assets/NJ_login/textures/bg_oxford.png

8.56 KB | W: | H:

assets/NJ_login/textures/bg_oxford.png

13.7 KB | W: | H:

assets/NJ_login/textures/bg_oxford.png
assets/NJ_login/textures/bg_oxford.png
assets/NJ_login/textures/bg_oxford.png
assets/NJ_login/textures/bg_oxford.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -18,14 +18,14 @@ ...@@ -18,14 +18,14 @@
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
"offsetX": -1, "offsetX": 0,
"offsetY": -0.5, "offsetY": 0,
"trimX": 2, "trimX": 0,
"trimY": 4, "trimY": 0,
"width": 264, "width": 125,
"height": 109, "height": 33,
"rawWidth": 270, "rawWidth": 125,
"rawHeight": 116, "rawHeight": 33,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
"premultiplyAlpha": false, "premultiplyAlpha": true,
"genMipmaps": false, "genMipmaps": false,
"packable": true, "packable": true,
"width": 522, "width": 522,
......
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