This commit is contained in:
xsl
2026-03-12 21:13:07 +08:00
parent f7982d45de
commit 55c64a6db4
149 changed files with 15472 additions and 1 deletions
+39
View File
@@ -0,0 +1,39 @@
let firstBackTime = 0
const __sfc__ = defineApp({
onLaunch() {
console.log('App Launch', " at App.uvue:7")
},
onShow() {
console.log('App Show', " at App.uvue:10")
},
onHide() {
console.log('App Hide', " at App.uvue:13")
},
onLastPageBackPress() {
console.log('App LastPageBackPress', " at App.uvue:17")
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() {
console.log('App Exit', " at App.uvue:34")
},
})
export default __sfc__
const GenAppStyles = [_uM([["uni-row", _pS(_uM([["flexDirection", "row"]]))], ["uni-column", _pS(_uM([["flexDirection", "column"]]))]])]