修改时间格式
This commit is contained in:
1 parent
4c7aae4e6a
commit
f4f1508e39
1 file changed
+4
-4
@@ -18,7 +18,7 @@
|
||||
:key="index"
|
||||
@click="selectTimePoint(item, index)"
|
||||
>
|
||||
{{ item }}
|
||||
{{ item.slice(0, 5) }}
|
||||
</button>
|
||||
</view>
|
||||
<view class="px-20rpx py-2 flex justify-between">
|
||||
@@ -58,10 +58,10 @@ const getLast7DaysWeek = (): { week: string; date: string; fullDate: string }[]
|
||||
const dayTimePointList = computed(() => {
|
||||
const times: string[] = []
|
||||
for (let i = 8; i < 18; i++) {
|
||||
times.push(`${i.toString().padStart(2, "0")}:00`)
|
||||
times.push(`${i.toString().padStart(2, "0")}:30`)
|
||||
times.push(`${i.toString().padStart(2, "0")}:00:00`)
|
||||
times.push(`${i.toString().padStart(2, "0")}:30:00`)
|
||||
}
|
||||
times.push("18:00") // 添加18:00作为结束时间
|
||||
times.push("18:00:00") // 添加18:00作为结束时间
|
||||
return times
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user