Page({
  data: {
    tips: '请稍后',
    show: true,
    animated: true,
  },
  onShow() {
    this.timer = setInterval(() => {
      this.setData({
        show: !this.data.show,
      })
    }, 3000)
  },
  close() {
    this.setData({
      animated: !this.data.animated,
    })
  },
  onUnload() {
    clearInterval(this.timer)
  },
})
