You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
370 B
JavaScript

6 months ago
export function back (option) {
uni.navigateBack(option)
}
export function to (option) {
uni.navigateTo(option)
}
let time = null;
export function quitApp () {
if (time) {
plus.runtime.quit();
return false;
}
uni.showToast({
title: '再点一次退出应用',
position: 'bottom'
})
time = setTimeout(() => {
time = null,
uni.hideToast();
},1500)
}