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 {
.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
const bk = cc.find(`Canvas/bg/bg_oxford`);
......@@ -303,5 +318,24 @@ export default class SceneComponent extends MyCocosSceneComponent {
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 @@
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": -0.5,
"trimX": 2,
"trimY": 4,
"width": 264,
"height": 109,
"rawWidth": 270,
"rawHeight": 116,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 125,
"height": 33,
"rawWidth": 125,
"rawHeight": 33,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
......
......@@ -4,7 +4,7 @@
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"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