修改时间选择器的内容显示

master
于肖磊 2025-07-04 18:48:01 +08:00
parent 3b9d404b46
commit 09419fb4a9
2 changed files with 6 additions and 7 deletions

View File

@ -2,15 +2,15 @@
<view>
<uni-popup ref="popup" type="bottom" background-color="#fff" :animation="true">
<view class="popup-content">
<view>
<view class="headBox">
<view >
<view class="headBox padding-main">
<view @tap="close"><text class="text-size-sm">取消</text></view>
<!-- <view class="uni-page-head-title" v-if="titleShow">{{timeTitle}}</view> -->
<view><text class="text-size-sm cr-blue" @tap="submit_event"></text></view>
</view>
<picker-view :indicator-style="indicatorStyle" :value="value" @change="bindChange">
<picker-view-column v-for="(arr, n) in dateTimeArr" :key="n">
<view class="item" v-for="(obj, index) in arr" :key="index">{{obj}}{{ dataType == 'date' ? dateUnitArr[n] || '' : timeUnitArr[n] || '' }}</view>
<view class="item flex-row align-c jc-c" v-for="(obj, index) in arr" :key="index">{{obj}}{{ dataType == 'date' ? dateUnitArr[n] || '' : timeUnitArr[n] || '' }}</view>
</picker-view-column>
</picker-view>
</view>
@ -234,7 +234,6 @@
.headBox{
display: flex;
justify-content: space-between;
border-bottom: 1px solid #e5e5e5;
}
picker-view {
width: 100%;
@ -242,9 +241,9 @@
margin-top:20rpx;
}
.item {
line-height: 100rpx;
/* line-height: 100rpx; */
height: 100rpx;
text-align: center;
text-align: center;
font-size: 30rpx;
}
</style>

View File

@ -1,6 +1,6 @@
<template>
<view>
<view :class="'flex-col' + (propDirection == 'row' ? '' : 'gap-10')">
<view :class="'flex-col' + (propDirection == 'row' ? '' : ' gap-10')">
<view class="flex-row align-c gap-5" :style="com_data.common_style + propStyle">
<iconfont name="icon-phone" size="24rpx" color="#666" propContainerDisplay="flex" ></iconfont>
<input :value="form_value" class="uni-input flex-1" :style="propStyle" type="text" :placeholder="placeholder" @blur="data_check" @input="input_value_event" />