wylyl22 3 years ago
parent fda21127f2
commit 43f3bbd9e0

@ -18,6 +18,8 @@ Page({
Stats2:2,
Stats3:3,
Stats4:4,
num:0,
num1:false,
//弹出框
show: false,
duration: 300,
@ -364,6 +366,8 @@ Page({
all(){
iPageIndex=1
iPageSize = 20
this.data.num++
let dj=this.data.num%2==0
this.setData({
grade_name1: '按级别',
grade_name2: '按价格',
@ -371,7 +375,7 @@ Page({
sSpec: '',
sPriceType: '',
sEnergyType: '',
boxSize:dj?'noall':'all1'
})
this.getTrend()
},
@ -391,8 +395,10 @@ Page({
})
},
bindDateChange: function(e) {
this.data.num1=true
this.setData({
date: e.detail.value,
boxSize1:!this.data.num1?'noall':'all1'
})
this.getTrend()
},

@ -4,14 +4,16 @@
<view class="vehicletype" wx:if="{{active === 0}}">
<scroll-view scroll-x="{{true}}" style="white-space: nowrap;height: 80rpx; width: 100%;background: #ffffff;">
<view class="top" bindtap="all">
<view class="box_title1">全部</view>
<view class="box_title">
<view class="{{boxSize}}">全部</view>
</view>
</view>
<view class="top">
<view class="box_title">
<picker mode="date" header-text="选择时间" fields="month" value="{{date}}" bindchange="bindDateChange">
<view class="font30">
<view class="{{boxSize1}}">
<!-- <text class="color3">填报时间:</text> -->
<text class="color6">{{date}}</text>
<text>{{date}}</text>
<text class="timeIcon">▼</text>
</view>
</picker>

@ -250,6 +250,33 @@
margin: 0 16rpx;
align-items: baseline;
}
.all1{
width: 150rpx;
height: 60rpx;
/* display: flex; */
/* float: right; */
/* align-items: center; */
/* justify-content:space-between; */
border: 1px solid #027AFF ;
padding: 0 10rpx;
background-color: #027AFF;
font-size: 24rpx;
text-align: center;
color: #FFFFFF;
}
.noall{
width: 150rpx;
height: 60rpx;
text-align: center;
/* display: flex; */
/* align-items: center;
justify-content: space-between; */
border: 1px solid #f9f9f9;
padding: 0 10rpx;
background-color: #ffffff;
font-size: 24rpx;
color: #333333;
}
/* 下拉框 */
/* 没选中 */
.top-noselected{

Loading…
Cancel
Save