diff --git a/components/gameentry/gentry.js b/components/gameentry/gentry.js index 118878b..44a10ad 100644 --- a/components/gameentry/gentry.js +++ b/components/gameentry/gentry.js @@ -10,6 +10,7 @@ Component({ }, data: { flag: false, + alphaData: null, gameUrl: '' }, methods:{ @@ -63,7 +64,14 @@ Component({ this.setData({ flag: false }) }, closeGame: function () { - this.setData({ flag: true }) + let that = this; + var animation = wx.createAnimation({}) + // animation.opacity(0).step({ duration: 1000 }) + animation.rotateZ(180).scale(0).opacity(0.5).step({ duration: 1000 }) + that.setData({ alphaData: animation.export() }); + setTimeout(function () { + that.setData({ flag: true }) + }, 1000) }, }, onReady: function () { diff --git a/components/gameentry/gentry.wxml b/components/gameentry/gentry.wxml index 767b98e..597bb10 100644 --- a/components/gameentry/gentry.wxml +++ b/components/gameentry/gentry.wxml @@ -1,7 +1,7 @@