From 35ee8ea96c54c95c59bda6643084f9486ba91ff9 Mon Sep 17 00:00:00 2001 From: zpc Date: Sat, 13 Sep 2025 10:43:32 +0800 Subject: [PATCH] 33 --- components.d.ts | 2 + components/com/appointment/label-field.vue | 45 +++++++++ .../com/appointment/time-select-cell.vue | 78 +++++++++++++++ pages/appointment/appointment-page.vue | 95 ++++++------------- 4 files changed, 153 insertions(+), 67 deletions(-) create mode 100644 components/com/appointment/label-field.vue create mode 100644 components/com/appointment/time-select-cell.vue diff --git a/components.d.ts b/components.d.ts index e0bd056..faa0764 100644 --- a/components.d.ts +++ b/components.d.ts @@ -10,6 +10,7 @@ declare module 'vue' { export interface GlobalComponents { Container: typeof import('./components/com/page/container.vue')['default'] ContainerBase: typeof import('./components/com/page/container-base.vue')['default'] + LabelField: typeof import('./components/com/appointment/label-field.vue')['default'] MahjongCard: typeof import('./components/index/MahjongCard.vue')['default'] NoData: typeof import('./components/com/page/no-data.vue')['default'] NoEmpty: typeof import('./components/com/index/NoEmpty.vue')['default'] @@ -18,6 +19,7 @@ declare module 'vue' { ReservationPopup: typeof import('./components/com/index/ReservationPopup.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + TimeSelectCell: typeof import('./components/com/appointment/time-select-cell.vue')['default'] UniNavBar: typeof import('./components/uni-nav-bar/uni-nav-bar.vue')['default'] UniStatusBar: typeof import('./components/uni-nav-bar/uni-status-bar.vue')['default'] } diff --git a/components/com/appointment/label-field.vue b/components/com/appointment/label-field.vue new file mode 100644 index 0000000..c3a1b49 --- /dev/null +++ b/components/com/appointment/label-field.vue @@ -0,0 +1,45 @@ + + + + + diff --git a/components/com/appointment/time-select-cell.vue b/components/com/appointment/time-select-cell.vue new file mode 100644 index 0000000..20ae530 --- /dev/null +++ b/components/com/appointment/time-select-cell.vue @@ -0,0 +1,78 @@ + + + + + diff --git a/pages/appointment/appointment-page.vue b/pages/appointment/appointment-page.vue index b0ed083..7948313 100644 --- a/pages/appointment/appointment-page.vue +++ b/pages/appointment/appointment-page.vue @@ -7,46 +7,13 @@ - - - - - 开始时间 - - - - - {{ getDayDescription(startTimeStr) }} - - - - - - - - + + {{ getDayDescription(startTimeStr) }} + - - - - 结束时间 - - - - {{ getDayDescription(endTimeStr) }} - - - - - - - + + {{ getDayDescription(endTimeStr) }} + @@ -54,43 +21,34 @@ - 组局名称 - - - + + + + + - 房间 + + + - - - - - 人数 - - + - + - 玩法类型 - - + - + - 具体规则 - - + - + - 其他补充 - - - + + + + + @@ -204,6 +162,9 @@ import { ref } from 'vue'; import { getDayDescription } from '@/common/system/timeUtile'; import { union } from 'lodash'; +import TimeSelectCell from '@/components/com/appointment/time-select-cell.vue' +import LabelField from '@/components/com/appointment/label-field.vue' + const _containerBase = ref(null) const startTimeStr = ref(0) const endTimeStr = ref(0)