فهرست منبع

:sparkles: 去掉退出拦截功能

zhanghe 6 سال پیش
والد
کامیت
afa87da058

+ 0 - 13
src/res/tpl/QuitConfirmScene.tpl

@@ -1,13 +0,0 @@
-<div id="QuitConfirmScene" fe-role="Switch">
-    <div class="quit-app-bg">
-        <img src="http://ljimgs.ai160.com/2b/app_resource/app_quit_confirm_1116.jpg" alt="" />
-    </div>
-    <div class="btn-select-wrapper">
-        <div id="ret-btn" class="cancel" fe-role="Widget">
-            <img src="assets/img/QuitConfirmScene/focusIcon.png" alt="" />
-        </div>
-        <div id="end-btn" class="exit" fe-role="Widget">
-            <img src="assets/img/QuitConfirmScene/focusIcon.png" alt="" />
-        </div>
-    </div>
-</div>

BIN
src/stage/index/assets/img/QuitConfirmScene/focusIcon.png


BIN
src/stage/index/assets/img/QuitConfirmScene/quitApp.jpg


+ 0 - 1
src/stage/index/index.less

@@ -22,7 +22,6 @@ body {
 @import './style/RenewAlertScene.less';
 @import './style/BuyConfirmScene.less';
 @import './style/DelConfirmScene.less';
-@import './style/QuitConfirmScene.less';
 @import './style/DataBuildingScene.less';
 @import './style/ScanToPayScene.less';
 @import './style/ShopCartScene.less';

+ 0 - 69
src/stage/index/scene/QuitConfirmScene.js

@@ -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() {
-
-	}
-
-	// 所有事件类函数默认触发时会传递过来一个Event,其中包含着事件响应节点以及其他相关信息
-	// 查看信息:console.log(e)
-	// 获取Event节点Id的方法(前提是触发事件的节点存在Id)
-	// 在使用Atv时Id对应:e.target.id
-	// 非使用Atv是Id对应:e.target.id
-	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;

+ 0 - 1
src/stage/index/scene/WaterFallIndexScene.js

@@ -344,7 +344,6 @@ class WaterfallIndexScene extends scene {
 
     onBack() {
         if (this.waterfallSwiper.activeIndex === 0) {
-            this.showScene(require('./QuitConfirmScene.js'), {});
             return true;
         } else {
             this.waterfallSwiper.slideTo(0, 1000, false);

+ 0 - 62
src/stage/index/style/QuitConfirmScene.less

@@ -1,62 +0,0 @@
-#QuitConfirmScene {
-    position: absolute;
-    width: 100%;
-    height: 100%;
-    background-size: cover;
-    .quit-app-bg {
-        position: absolute;
-        left: 0;
-        top: 0;
-        width: 100%;
-        height: 100%;
-        z-index: -1;
-        img {
-            position: absolute;
-            top: 0;
-            left: 0;
-            width: 100%;
-            height: 100%;
-        }
-    }
-	.btn-select-wrapper {
-        position: absolute;
-        width: 40.6%;
-        height: 10%;
-        left: 49.5%;
-        top: 58.6%;
-		.cancel {
-            width: 49%;
-            height: 100%;
-            float: left;
-            img {
-                height: 100%;
-                width: 100%;
-                visibility: hidden;
-            }
-            &.fe-focus {
-                img {
-                    height: 100%;
-                    width: 100%;
-                    visibility: visible;
-                }
-            }
-        }
-		.exit {
-            width: 49%;
-            height: 100%;
-            float: right;
-            img {
-                height: 100%;
-                width: 100%;
-                visibility: hidden;
-            }
-            &.fe-focus {
-                img {
-                    height: 100%;
-                    width: 100%;
-                    visibility: visible;
-                }
-            }
-        }
-    }
-}