diff --git a/components/questionnaire/questionnaire.js b/components/questionnaire/questionnaire.js index 4835fb5..ade820b 100644 --- a/components/questionnaire/questionnaire.js +++ b/components/questionnaire/questionnaire.js @@ -15,7 +15,8 @@ Component({ alphaData: null, scaleData: null, skewData: null, - matrixData: null + matrixData: null, + zindex:null, }, methods:{ close:function(){ @@ -33,14 +34,26 @@ Component({ this.queueClick(); }, queueClick: function () { + let that = this; var animation = wx.createAnimation({}); - animation.translate((this.data.widthScreen - 0), 0).scale(0).opacity(0.5).step({ duration: 3000 }) - this.setData({ queueData: animation.export() }) + animation.translate((this.data.widthScreen - 0), 0).scale(0).opacity(0.5).step({ duration: 1000 }) + that.setData({ queueData: animation.export()}) + setTimeout(function () { + that.setData({ + flag: true + }) + }, 1000) }, alphaClick: function (even) { + let that = this; var animation = wx.createAnimation({}) - animation.opacity(0).step({ duration: 2000 }) - this.setData({ alphaData: animation.export() }) + animation.opacity(0).step({ duration: 1000 }) + that.setData({ alphaData: animation.export()}); + setTimeout(function(){ + that.setData({ + flag:true + }) + },1000) } }, onLoad(){ diff --git a/components/questionnaire/questionnaire.wxml b/components/questionnaire/questionnaire.wxml index a2ba26f..dc83d12 100644 --- a/components/questionnaire/questionnaire.wxml +++ b/components/questionnaire/questionnaire.wxml @@ -1,4 +1,4 @@ - - \ No newline at end of file diff --git a/components/questionnaire/questionnaire.wxss b/components/questionnaire/questionnaire.wxss index 730a22c..d838af7 100644 --- a/components/questionnaire/questionnaire.wxss +++ b/components/questionnaire/questionnaire.wxss @@ -41,8 +41,8 @@ .ques { width: 511rpx; margin: 0 auto; - height: 86rpx; - line-height: 86rpx; + height: 105rpx; + line-height: 105rpx; text-align: center; font-size: 30rpx; color: #333;