onShow: function () {
var that = this
// 心跳动画
var animation = wx.createAnimation({
duration: 1000,
timingFunction: 'linear',
delay: 1000,
transformOrigin: '50% 50% 0',//放缩位置
});
//that.animation = animation
//that.setData({
// animation: that.animation.export()
//});
that.data.timehandle = setInterval(function () {
that.animation.scale(1.15).step();
that.setData({
animation: that.animation.export()
});
}.bind(that), 1000);
}