|
@@ -1,69 +0,0 @@
|
|
|
-import APIClient from '../../../util/API/APIClient';
|
|
|
-import Consts from '../../../util/Consts';
|
|
|
-
|
|
|
-class QuitPreventScene extends scene {
|
|
|
- constructor(scope) {
|
|
|
- super(scope);
|
|
|
- }
|
|
|
-
|
|
|
- onCreate() {
|
|
|
- this.setContentView(require('../../../res/tpl/QuitConfirmScene.tpl'), {}, 'QuitConfirmScene', {}, () => {
|
|
|
- this.moye.root.getWidgetById('ret-btn').focus();
|
|
|
- });
|
|
|
- }
|
|
|
-
|
|
|
- onResume() {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- onPause() {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- onDestroy() {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- onActive() {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- onInactive() {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- onOK(e) {
|
|
|
- if (e.target.con.classList.contains('cancel')) {
|
|
|
- this.hideScene();
|
|
|
- } else if (e.target.con.classList.contains('exit')) {
|
|
|
-
|
|
|
- const eventType = Consts.USER_ACTION_QUIT;
|
|
|
- const tarName = Consts.USER_ACTION_QUIT_NAME;
|
|
|
- const tarId = Consts.USER_ACTION_QUIT_ID;
|
|
|
- const value = globalUseDurationRecord;
|
|
|
- APIClient.putUserAction(eventType, tarName, tarId, value, (success, res) => {});
|
|
|
- window.efunbox.exitApp();
|
|
|
- } else {
|
|
|
- return;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- onBack() {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- onKeydown() {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- onKeyup() {
|
|
|
-
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-module.exports = QuitPreventScene;
|