mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
no message
This commit is contained in:
parent
1b242dc04e
commit
a437e3cbd3
@ -612,11 +612,13 @@ export default {
|
|||||||
if (!this.$isEEUIApp) {
|
if (!this.$isEEUIApp) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$A.eeuiAppHideWebviewSnapshot()
|
||||||
// APP进入前台
|
// APP进入前台
|
||||||
window.__onAppActive = () => {
|
window.__onAppActive = () => {
|
||||||
this.autoTheme()
|
this.autoTheme()
|
||||||
$A.updateTimezone()
|
$A.updateTimezone()
|
||||||
$A.IDBTest()
|
$A.IDBTest()
|
||||||
|
$A.eeuiAppHideWebviewSnapshot()
|
||||||
this.$store.dispatch("safeAreaInsets")
|
this.$store.dispatch("safeAreaInsets")
|
||||||
const nowYmd = $A.daytz().format('YYYY-MM-DD')
|
const nowYmd = $A.daytz().format('YYYY-MM-DD')
|
||||||
if (this.lastCheckUpgradeYmd != nowYmd) {
|
if (this.lastCheckUpgradeYmd != nowYmd) {
|
||||||
@ -624,6 +626,10 @@ export default {
|
|||||||
$A.eeuiAppCheckUpdate();
|
$A.eeuiAppCheckUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// APP进入后台
|
||||||
|
window.__onAppDeactive = () => {
|
||||||
|
$A.eeuiAppGetWebviewSnapshot(ok => ok && $A.eeuiAppShowWebviewSnapshot());
|
||||||
|
}
|
||||||
// 页面失活
|
// 页面失活
|
||||||
window.__onPagePause = () => {
|
window.__onPagePause = () => {
|
||||||
this.$store.state.windowActive = false;
|
this.$store.state.windowActive = false;
|
||||||
|
|||||||
15
resources/assets/js/functions/eeui.js
vendored
15
resources/assets/js/functions/eeui.js
vendored
@ -121,6 +121,21 @@ import {languageName} from "../language";
|
|||||||
$A.eeuiModule("webview")?.setUrl(url);
|
$A.eeuiModule("webview")?.setUrl(url);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 生成webview快照
|
||||||
|
eeuiAppGetWebviewSnapshot(callback) {
|
||||||
|
$A.eeuiModule("webview")?.createSnapshot(callback);
|
||||||
|
},
|
||||||
|
|
||||||
|
// 显示webview快照
|
||||||
|
eeuiAppShowWebviewSnapshot() {
|
||||||
|
$A.eeuiModule("webview")?.showSnapshot();
|
||||||
|
},
|
||||||
|
|
||||||
|
// 隐藏webview快照
|
||||||
|
eeuiAppHideWebviewSnapshot() {
|
||||||
|
$A.eeuiModule("webview")?.hideSnapshot();
|
||||||
|
},
|
||||||
|
|
||||||
// 扫码
|
// 扫码
|
||||||
eeuiAppScan(callback) {
|
eeuiAppScan(callback) {
|
||||||
$A.eeuiModule()?.openScaner({}, (res) => {
|
$A.eeuiModule()?.openScaner({}, (res) => {
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 8fd3893e2f32e0e9e063529d17846dc50cb22d32
|
Subproject commit 494233074d001a8049b6b2cab9006fd517cd3ed4
|
||||||
Loading…
x
Reference in New Issue
Block a user