Commit f7df661b by xiexiaoqin

fix: fix check value and refator

parent aca0556b
...@@ -7,6 +7,9 @@ picker-view .column { ...@@ -7,6 +7,9 @@ picker-view .column {
font-size: 34rpx; font-size: 34rpx;
color: #191F25; color: #191F25;
} }
.pick-column{
border-left: 100vw solid transparent;
}
.column-1 { .column-1 {
flex: 1; flex: 1;
......
...@@ -2,19 +2,19 @@ ...@@ -2,19 +2,19 @@
<view class="tab"> <view class="tab">
<view class="{{currentTab == 'start' ? 'active' : ''}}" id='start' onTap="changeTab"> <view class="{{currentTab == 'start' ? 'active' : ''}}" id='start' onTap="changeTab">
<text>开始时间</text> <text>开始时间</text>
<text>{{startTime}}</text> <text>{{start.showTime}}</text>
<text>{{startWeekDay}}</text> <text>{{start.weekDay}}</text>
</view> </view>
<view class="{{currentTab == 'end' ? 'active' : ''}}" id='end' onTap="changeTab"> <view class="{{currentTab == 'end' ? 'active' : ''}}" id='end' onTap="changeTab">
<block a:if="{{!isEndTimeCustom}}"> <block a:if="{{!isEndTimeCustom}}">
<text>持续时间</text> <text>持续时间</text>
<text>{{duration}}</text> <text>{{duration.label}}</text>
<text>结束至{{durationEndTime}}</text> <text>结束至{{duration.showTime}}</text>
</block> </block>
<block a:else> <block a:else>
<text>结束时间</text> <text>结束时间</text>
<text>{{endTime}}</text> <text>{{end.showTime}}</text>
<text>{{endWeekDay}}</text> <text>{{end.weekDay}}</text>
</block> </block>
</view> </view>
</view> </view>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<text class="error">{{error}}</text> <text class="error">{{error}}</text>
<text onTap="changeWay" a:if="{{!isEndTimeCustom}}">自定义结束时间</text></view> <text onTap="changeWay" a:if="{{!isEndTimeCustom}}">自定义结束时间</text></view>
<view class="picker-area"> <view class="picker-area">
<picker-view style="height: {{ 34 * visibleItemCount }}px" value="{{pickValue}}" onChange="onChange"> <picker-view style="height: {{ 34 * visibleItemCount }}px" indicator-class="pick-column" value="{{pickValue}}" onChange="onChange">
<block a:if="{{currentTab == 'end' && !isEndTimeCustom}}"> <block a:if="{{currentTab == 'end' && !isEndTimeCustom}}">
<picker-view-column> <picker-view-column>
<view class="column" key={"{item.value}}" a:for="{{durationList}}">{{item.label}}</view> <view class="column" key={"{item.value}}" a:for="{{durationList}}">{{item.label}}</view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment