<view class=""> <view class="animation-button" bindtap="translate">篩選</view> <view class="float {{isRuleTrue?'isRuleShow':'isRuleHide'}} "> <view class="animation-element" animation="{{animation}}"> <view class='use'> <view class='iconuse'>用途</view> <ul class="useage"> <li bindtap="tryDriver" style="background:{{background}};">全部</li> <li>經(jīng)濟(jì)實(shí)惠型</li> <li>家用學(xué)習(xí)型</li> </ul> <ul class="useage"> <li bindtap="tryDriver" style="background:{{background}};">豪華發(fā)燒型</li> <li>瘋狂游戲型</li> <li>商務(wù)辦公型</li> </ul> <ul class="useage"> <li>經(jīng)濟(jì)實(shí)惠型</li> <li>家用學(xué)習(xí)型</li> </ul> </view> <!-- 價(jià)格 --> <view class='use'> <view class='iconprice'>價(jià)格</view> <ul class="useage"> <li bindtap="tryDriver" style="background:{{background}};">全部</li> <li>經(jīng)濟(jì)實(shí)惠型</li> <li>家用學(xué)習(xí)型</li> </ul> <ul class="useage"> <li bindtap="tryDriver" style="background:{{background}};">豪華發(fā)燒型</li> <li>瘋狂游戲型</li> <li>商務(wù)辦公型</li> </ul> <ul class="useage"> <li>經(jīng)濟(jì)實(shí)惠型</li> <li>家用學(xué)習(xí)型</li> </ul> </view> <view class='buttom'> <view class="animation-reset" >重置</view> <view class="animation-button" bindtap="success">完成</view> </view> </view> </view> </view> wxss .isRuleShow { display: block; } .isRuleHide { display: none; } .float { height: 100%; width: 100%; position: fixed; background-color: rgba(0, 0, 0, 0.5); z-index: 2; top: 0; left: 0; /* margin-top:80rpx; */ } .iconuse { margin-left: 11rpx; } .iconprice { margin-left: 11rpx; } .animation-element { width: 580rpx; height: 1175rpx; background-color: #ffffff; border: 1px solid #f3f0f0; position: absolute; right: -572rpx; } .useage { height: 40rpx; } .useage li { width: 177rpx; margin: 12rpx 7rpx; height: 70rpx; line-height: 70rpx; display: inline-block; text-align: center; border: 1px solid #f3f0f0; border-radius: 15rpx; font-size: 30rpx; } .buttom{ position: fixed; bottom: 0; } .animation-reset{ float: left; line-height: 2; width: 260rpx; margin: 15rpx 12rpx; border: 1px solid #f3f0f0; text-align: center; } .animation-button{ float: left; line-height: 2; width: 260rpx; margin: 15rpx 12rpx; border: 1px solid #f3f0f0; text-align: center; } js Page({ onReady: function () { this.animation = wx.createAnimation() }, translate: function () { this.setData({ isRuleTrue: true }) this.animation.translate(-245, 0).step() this.setData({ animation: this.animation.export() }) }, success: function () { this.setData({ isRuleTrue: false }) this.animation.translate(0, 0).step() this.setData({ animation: this.animation.export() }) }, tryDriver: function () { this.setData({ background: "#89dcf8" }) } }) |
工作日 8:30-12:00 14:30-18:00
周六及部分節(jié)假日提供值班服務(wù)