diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js index 6c49cce..397192e 100644 --- a/pages/coupon/detail/index.js +++ b/pages/coupon/detail/index.js @@ -33,9 +33,7 @@ Page({ scaleData: null, skewData: null, matrixData: null, - // flag: false, - scale01:0, - opacity01:0, + opacity:0, queueData:null, zIndex:11, display:null @@ -96,13 +94,16 @@ Page({ closeQuestion: function () { let that = this; - that.setData({ - display:"none", - zIndex: 11, - }) + setTimeout(function(){ + that.setData({ + display: "none", + zIndex: 11, + opacity: 0 + }) + },500) setTimeout(function () { that.orderFunc(); - }, 300) + }, 500) }, /** * gotopay @@ -128,7 +129,7 @@ Page({ } else if (res.data) { var animation = wx.createAnimation({}); animation.translate((that.data.widthScreen - that.data.widthScreen), 0).scale(1).opacity(1).step({ - duration: 1000 + duration: 500 }) that.setData({ diff --git a/pages/coupon/detail/index.wxml b/pages/coupon/detail/index.wxml index da13fd6..8201cc1 100644 --- a/pages/coupon/detail/index.wxml +++ b/pages/coupon/detail/index.wxml @@ -4,7 +4,7 @@ - +