fix:常开模式起止时间校验逻辑与移动端保持一致
This commit is contained in:
parent
47c363f824
commit
2267e0724d
@ -24,8 +24,8 @@
|
|||||||
:class="[weekDays.includes(index + 1) ? 'bg-#5eb7ac text-white' : '']"
|
:class="[weekDays.includes(index + 1) ? 'bg-#5eb7ac text-white' : '']"
|
||||||
@click="changeSelect(index)"
|
@click="changeSelect(index)"
|
||||||
class="rounded-50% border-solid border-3 border-gray-400 flex items-center justify-center w-70 h-70"
|
class="rounded-50% border-solid border-3 border-gray-400 flex items-center justify-center w-70 h-70"
|
||||||
>{{ item }}</view
|
>{{ item }}
|
||||||
>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -116,8 +116,8 @@
|
|||||||
const defaultStartTime = ref('')
|
const defaultStartTime = ref('')
|
||||||
const defaultEndTime = ref('')
|
const defaultEndTime = ref('')
|
||||||
|
|
||||||
const startTimeText = ref(null)
|
const startTimeText = ref('00:00')
|
||||||
const endTimeText = ref(null)
|
const endTimeText = ref('00:00')
|
||||||
|
|
||||||
const check = ref(false)
|
const check = ref(false)
|
||||||
const weekDays = ref([])
|
const weekDays = ref([])
|
||||||
@ -201,7 +201,7 @@
|
|||||||
autoUnlock: autoUnlock.value
|
autoUnlock: autoUnlock.value
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!data.isAllDay && check.value && data.startDate >= data.endDate) {
|
if (check.value && data.startDate > data.endDate) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '开始时间不能大于结束时间',
|
title: '开始时间不能大于结束时间',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user