Initial commit
This commit is contained in:
37
unpackage/dist/dev/.uvue/app-android/App.uvue
vendored
Normal file
37
unpackage/dist/dev/.uvue/app-android/App.uvue
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
// import { initTables } from './ak/sqlite.uts'
|
||||
let firstBackTime = 0;
|
||||
const __sfc__ = defineApp({
|
||||
onLaunch: function () {
|
||||
console.log('App Launch', " at App.uvue:10");
|
||||
// initTables();
|
||||
},
|
||||
onShow: function () {
|
||||
console.log('App Show', " at App.uvue:15");
|
||||
},
|
||||
onHide: function () {
|
||||
console.log('App Hide', " at App.uvue:18");
|
||||
},
|
||||
onLastPageBackPress: function () {
|
||||
console.log('App LastPageBackPress', " at App.uvue:22");
|
||||
if (firstBackTime == 0) {
|
||||
uni.showToast({
|
||||
title: '再按一次退出应用',
|
||||
position: 'bottom',
|
||||
});
|
||||
firstBackTime = Date.now();
|
||||
setTimeout(() => {
|
||||
firstBackTime = 0;
|
||||
}, 2000);
|
||||
}
|
||||
else if (Date.now() - firstBackTime < 2000) {
|
||||
firstBackTime = Date.now();
|
||||
uni.exit();
|
||||
}
|
||||
},
|
||||
onExit: function () {
|
||||
console.log('App Exit', " at App.uvue:39");
|
||||
},
|
||||
});
|
||||
export default __sfc__;
|
||||
const GenAppStyles = [_uM([["uni-row", _pS(_uM([["flexDirection", "row"]]))], ["uni-column", _pS(_uM([["flexDirection", "column"]]))]])];
|
||||
//# sourceMappingURL=App.uvue.map
|
||||
Reference in New Issue
Block a user