Browse Source

修改日期语言问题

master
liaoxinyu 8 months ago
parent
commit
555d4dde0b
  1. 12
      assets/scss/app.scss
  2. 3
      pages/auth/primary.vue
  3. 1
      uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue

12
assets/scss/app.scss

@ -592,12 +592,12 @@ navigator {
.lb-picker-content {
background-color: $panel-4 !important;
}
.uni-picker-view-mask {
background: var(--picker-mask);
background-position: top, bottom;
background-size: 100% 102px;
background-repeat: no-repeat;
}
// .uni-picker-view-mask {
// background: var(--picker-mask);
// background-position: top, bottom;
// background-size: 100% 102px;
// background-repeat: no-repeat;
// }
.lb-picker-action-confirm-text {
color: $green !important;
}

3
pages/auth/primary.vue

@ -25,8 +25,9 @@
<view class="form-item border-b p-md m-b-md">
<view class="label m-b-xs">{{$t('auth.d0')}}</view>
<view class="input color-light">
<uni-datetime-picker type="date" :placeholder="$t('common.c8')" start="1873-1-01" :end="new Date().toLocaleDateString()"
<uni-datetime-picker type="date" :placeholder="$t('common.c8')" start="1873-1-01" :end="new Date()"
:clear-icon="false" v-model="form.birthday" />
<!-- .toLocaleDateString() -->
</view>
</view>
<!-- 证件号类型 -->

1
uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue

@ -384,6 +384,7 @@
},
},
created() {
uni.setLocale('en');
//
this.cale = new Calendar({
selected: this.selected,

Loading…
Cancel
Save