123456789101112131415161718192021222324252627282930 |
- import CustomPage from '../../../base/CustomPage'
- CustomPage({
- onShareAppMessage() {
- return {
- title: 'loading',
- path: 'packageExtend/pages/base/loading/loading'
- }
- },
- data: {
- tips: '请稍后',
- show: true,
- animated: true
- },
- onShow() {
- this.timer = setInterval(() => {
- this.setData({
- show: !this.data.show
- })
- }, 2000)
- },
- close() {
- this.setData({
- animated: !this.data.animated
- })
- },
- onUnload() {
- clearInterval(this.timer)
- }
- })
|