From 6b82fc28be4eb1068a259dfaa5da73cf0fa6d099 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Thu, 25 Oct 2018 11:13:49 +0800 Subject: [PATCH] =?UTF-8?q?[=E9=A2=86=E5=88=B8=E5=BC=B9=E5=87=BA=E9=97=AE?= =?UTF-8?q?=E5=8D=B7=E8=B0=83=E6=9F=A5][=E5=A2=9E=E5=8A=A0]:=E9=A2=86?= =?UTF-8?q?=E5=88=B8=E5=BC=B9=E5=87=BA=E9=97=AE=E5=8D=B7=E8=B0=83=E6=9F=A5?= =?UTF-8?q?=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/questionnaire/questionnaire.js | 23 ++++++++++++++++----- components/questionnaire/questionnaire.wxml | 3 +-- components/questionnaire/questionnaire.wxss | 4 ++-- 3 files changed, 21 insertions(+), 9 deletions(-) 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;