mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +00:00
no message
This commit is contained in:
parent
a437e3cbd3
commit
a0579318bd
@ -126,6 +126,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
appInter: null,
|
appInter: null,
|
||||||
|
appActivated: true,
|
||||||
|
|
||||||
countDown: Math.min(30, 60 - $A.daytz().second()),
|
countDown: Math.min(30, 60 - $A.daytz().second()),
|
||||||
lastCheckUpgradeYmd: $A.daytz().format('YYYY-MM-DD'),
|
lastCheckUpgradeYmd: $A.daytz().format('YYYY-MM-DD'),
|
||||||
}
|
}
|
||||||
@ -615,6 +617,7 @@ export default {
|
|||||||
$A.eeuiAppHideWebviewSnapshot()
|
$A.eeuiAppHideWebviewSnapshot()
|
||||||
// APP进入前台
|
// APP进入前台
|
||||||
window.__onAppActive = () => {
|
window.__onAppActive = () => {
|
||||||
|
this.appActivated = true
|
||||||
this.autoTheme()
|
this.autoTheme()
|
||||||
$A.updateTimezone()
|
$A.updateTimezone()
|
||||||
$A.IDBTest()
|
$A.IDBTest()
|
||||||
@ -628,7 +631,20 @@ export default {
|
|||||||
}
|
}
|
||||||
// APP进入后台
|
// APP进入后台
|
||||||
window.__onAppDeactive = () => {
|
window.__onAppDeactive = () => {
|
||||||
$A.eeuiAppGetWebviewSnapshot(ok => ok && $A.eeuiAppShowWebviewSnapshot());
|
this.appActivated = false
|
||||||
|
setTimeout(() => {
|
||||||
|
if (this.appActivated) {
|
||||||
|
// 如果APP处于激活状态,则不显示快照
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$A.eeuiAppGetWebviewSnapshot(ok => {
|
||||||
|
if (!ok || this.appActivated) {
|
||||||
|
// 如果获取快照失败,或者APP处于激活状态,则不显示快照
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$A.eeuiAppShowWebviewSnapshot()
|
||||||
|
});
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
// 页面失活
|
// 页面失活
|
||||||
window.__onPagePause = () => {
|
window.__onPagePause = () => {
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 494233074d001a8049b6b2cab9006fd517cd3ed4
|
Subproject commit cbb7f4208aee524f27a178655a261796ab39f94a
|
||||||
Loading…
x
Reference in New Issue
Block a user