提交 7800c23d 作者: 方治民

feat: 优化应用维护全屏通知交互示例

上级 8baa9d56
......@@ -47,9 +47,19 @@
animationType: 'fade-in',
before() {
if (getApp().globalData.notice) {
// 重置
getApp().globalData.notice.id = Date.now()
getApp().globalData.notice.confirmed = false
getApp().globalData.notice.buttons = ['confirm', 'exit']
} else {
// 默认示例
getApp().globalData.notice = {
id: Date.now(),
confirmed: false,
buttons: ['confirm', 'exit'],
content:
'<p style="text-indent: 2em; padding: 10px 0;">系统正在维护中,暂时无法使用,不便之处,敬请谅解。</p>',
title: '通知公告',
}
}
},
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论