<image mode="windthFix" animation='{{animationData}}' src="../data/icon/cur_i.png"></image>
 onLoad: function (options) {
        wx.setNavigationBarTitle({
            title: '个人中心'
          })
          //动画 签到图标 放大缩小
          var animation = wx.createAnimation({
            duration: 500,
            timingFunction: 'ease',
          })
          this.animation = animation
          var next = true;
          //连续动画关键步骤
          setInterval(function () {
            if (next{
              this.animation.scale(1).step()   
              next = !next;
            } else {
              this.animation.scale(1.1).step()
              next = !next;
            }
            this.setData({
              animationData: animation.export()
            })
          }.bind(this), 500)
    },


今日吐槽

让烦恼与风去远行;让痛苦陪云去流浪。哼一曲好歌,也许心情,就会轻松许多

Contact ME

TAG Link