793 lines
21 KiB
Vue
793 lines
21 KiB
Vue
<template>
|
||
<view class="meeting-room-detail">
|
||
<!-- 顶部轮播图 -->
|
||
<u-swiper class="room-swiper" :list="list1" height="420" indicator indicatorMode="dot"
|
||
indicatorActiveColor="#2979ff" bgColor="#f8faff">
|
||
</u-swiper>
|
||
|
||
<!-- 会议室基本信息卡片 -->
|
||
<view class="info-card">
|
||
<view class="room-info">
|
||
<text class="room-name">{{detail.title}}</text>
|
||
<view class="meta-info">
|
||
<text class="room-capacity"> 可容纳 {{detail.maxNum}} 人</text>
|
||
</view>
|
||
<text class="room-desc" v-if="detail.description">{{detail.description}}</text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 预订信息卡片 -->
|
||
<view class="booking-card">
|
||
<view class="card-header">
|
||
<text class="card-title">预订信息</text>
|
||
</view>
|
||
|
||
<!-- 日期选择 -->
|
||
<view class="date-section">
|
||
<view class="section-header">
|
||
<u-icon name="calendar" size="38" color="#2979ff"></u-icon>
|
||
<text class="section-title">申请时间</text>
|
||
</view>
|
||
<view class="date-display" @click="showCalendar = true">
|
||
<text>{{ formattedSelectedDate }}</text>
|
||
<u-icon name="arrow-right" color="#999"></u-icon>
|
||
</view>
|
||
</view>
|
||
<view class="date-section">
|
||
<view class="section-header">
|
||
<u-icon name="tags" size="38" color="#2979ff"></u-icon>
|
||
<text class="section-title">事由主题</text>
|
||
</view>
|
||
<view>
|
||
<radio-group @change="thingCheckboxChange">
|
||
<label v-for="item in thingThemes">
|
||
<radio :value="item.value" style="transform:scale(0.7)"
|
||
:checked="item.value === applyTheme" />
|
||
<text style="font-size: 12px;color: #333333;">{{item.name}}</text>
|
||
</label>
|
||
</radio-group>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="date-section">
|
||
<view class="section-header">
|
||
<u-icon name="man-add" size="38" color="#2979ff"></u-icon>
|
||
<text class="section-title">申请人类型</text>
|
||
</view>
|
||
<view class="date-display" @click="showApplyTypeClick()">
|
||
<view class="">{{applyName}}</view>
|
||
<u-icon slot="right" name="arrow-right"></u-icon>
|
||
</view>
|
||
<view v-show="applyName=='单位申请'">
|
||
<view style="margin-top: 10px;background-color: #f8f9fa;">
|
||
<u--input placeholder="请输入单位全称" border="null" v-model="companyName"></u--input>
|
||
</view>
|
||
<view class="" style="margin-top: 10px;background-color: #f8f9fa;">
|
||
<u--input placeholder="请输入负责人姓名" border="null" v-model="concatName"></u--input>
|
||
</view>
|
||
<view class="" style="margin-top: 10px;background-color: #f8f9fa;">
|
||
<u--input placeholder="请输入负责人电话" border="null" type='tel' v-model="concatPhone"></u--input>
|
||
</view>
|
||
</view>
|
||
|
||
<view v-show="applyName=='个人申请'">
|
||
<view class="" style="margin-top: 10px;background-color: #f8f9fa;">
|
||
<u--input placeholder="请输入姓名" border="null" v-model="userName"></u--input>
|
||
</view>
|
||
<view class="" style="margin-top: 10px;background-color: #f8f9fa;">
|
||
<u--input placeholder="请输入手机号" border="null" type="tel" v-model="userPhone"></u--input>
|
||
</view>
|
||
<view class="" style="margin-top: 10px;background-color: #f8f9fa;">
|
||
<u--input placeholder="请输入身份证号" border="null" type="idcard" v-model="userCardId"></u--input>
|
||
</view>
|
||
<view class="" style="margin-top: 10px;background-color: #f8f9fa;">
|
||
<u--input placeholder="请输入申请人地址" border="null" v-model="userAddress"></u--input>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="date-section">
|
||
<view class="section-header">
|
||
<u-icon name="pushpin" size="38" color="#2979ff"></u-icon>
|
||
<text class="section-title">申请场次及人数(选填)</text>
|
||
</view>
|
||
|
||
<view>
|
||
<view class="" style="margin-top: 10px;background-color: #f8f9fa;">
|
||
<u--input placeholder="请输入场次" border="null" v-model="counter"></u--input>
|
||
</view>
|
||
<view class="" style="margin-top: 10px;background-color: #f8f9fa;">
|
||
<u--input placeholder="请输入人数" border="null" v-model="num"></u--input>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!-- 时间选择 -->
|
||
<view class="time-section">
|
||
<view class="section-header">
|
||
<u-icon name="clock" size="30" color="#2979ff"></u-icon>
|
||
<text class="section-title">借用时间</text>
|
||
</view>
|
||
<view class="time-picker">
|
||
<view class="time-selector" @click="showStartTimePicker = true">
|
||
<text class="time-label">开始</text>
|
||
<view class="time-display">
|
||
{{ startTime }}
|
||
</view>
|
||
</view>
|
||
<view class="time-separator">—</view>
|
||
<view class="time-selector" @click="showEndTimePicker = true">
|
||
<text class="time-label">结束</text>
|
||
<view class="time-display">
|
||
{{ endTime }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!-- <view class="date-section">
|
||
<view class="section-header">
|
||
<u-icon name="list-dot" size="38" color="#2979ff"></u-icon>
|
||
<text class="section-title">使用情况</text>
|
||
</view>
|
||
<view>
|
||
<checkbox-group @change="usagesCheckboxChange" v-model="usage">
|
||
<label v-for="item in usages">
|
||
<checkbox :value="item.value" style="transform:scale(0.7)" /><text
|
||
style="font-size: 12px;color: #333333;">{{item.name}}</text>
|
||
</label>
|
||
</checkbox-group>
|
||
</view>
|
||
</view> -->
|
||
<view class="date-section">
|
||
<view class="section-header">
|
||
<u-icon name="list-dot" size="38" color="#2979ff"></u-icon>
|
||
<text class="section-title">申请理由</text>
|
||
</view>
|
||
<view>
|
||
<u--input placeholder="请输入申请理由" border="null" v-model="reason"></u--input>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<!-- 底部固定操作栏 -->
|
||
<view class="action-bar">
|
||
<u-button type="primary" shape="circle" @click="handleBook">立即预订</u-button>
|
||
</view>
|
||
|
||
<!-- 日历组件 -->
|
||
<u-calendar :key="calendarKey" :show="showCalendar" mode="single" :min-date="minDate" :max-date="maxDate"
|
||
@confirm="handleDateConfirm" @close="showCalendar = false" :mask-close-able="true"></u-calendar>
|
||
|
||
<!-- 时间选择器 -->
|
||
<u-datetime-picker :show="showStartTimePicker" v-model="startTimePickerValue" :min-date="Date.now()"
|
||
:mode="mode" @confirm="handleStartTimeConfirm" @cancel="showStartTimePicker = false"
|
||
ref="startTimePicker"></u-datetime-picker>
|
||
|
||
<u-datetime-picker :show="showEndTimePicker" v-model="endTimePickerValue" :min-date="Date.now()" :mode="mode"
|
||
@confirm="handleEndTimeConfirm" @cancel="showEndTimePicker = false" ref="endTimePicker"></u-datetime-picker>
|
||
<u-picker :show="showApplyType" :columns="applyTypeColumns" @confirm="applyConfirm"
|
||
@cancel="showApplyType=false"></u-picker>
|
||
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import {
|
||
get,
|
||
post
|
||
} from '@/utils/request';
|
||
import {
|
||
IMAGE_BASE_URL,
|
||
BASE_URL
|
||
} from '@/utils/config';
|
||
import {
|
||
formatTime,
|
||
formatRelativeTime
|
||
} from '@/utils/timeFormat';
|
||
import {
|
||
applyType,
|
||
usages,
|
||
thingThemes
|
||
} from '@/utils/dict.js'
|
||
// import signature from '../sign/sign.vue';
|
||
export default {
|
||
|
||
data() {
|
||
const now = new Date();
|
||
const year = now.getFullYear();
|
||
const month = (now.getMonth() + 1).toString().padStart(2, '0');
|
||
const day = now.getDate().toString().padStart(2, '0');
|
||
|
||
// 计算默认开始/结束时间
|
||
let startHours = now.getHours();
|
||
let startMinutes = now.getMinutes() < 30 ? 30 : 0;
|
||
if (now.getMinutes() >= 30) startHours += 1;
|
||
if (startHours >= 24) startHours = 0;
|
||
|
||
let endHours = startHours + 1;
|
||
let endMinutes = startMinutes;
|
||
if (endHours >= 24) endHours = 0;
|
||
|
||
return {
|
||
companyName: '',
|
||
applyRules: {
|
||
userPhone: '申请人手机号',
|
||
userName: '申请人姓名',
|
||
userCardId: '申请人身份证号',
|
||
userAddress: '申请人地址',
|
||
concatName: '负责人姓名',
|
||
concatPhone: '负责人电话',
|
||
companyName: '公司名称',
|
||
startTime: '开始时间',
|
||
endTime: '结束时间'
|
||
},
|
||
userName: '',
|
||
userPhone: "",
|
||
userCardId: '',
|
||
userAddress: '',
|
||
counter: '',
|
||
num: '',
|
||
// 会议室图片数组
|
||
applyTheme: 1,
|
||
applyArea:1,
|
||
thingThemes: thingThemes.getAll(),
|
||
usage: [],
|
||
usages: usages.getAll(),
|
||
list1: [],
|
||
detail: {},
|
||
signatureShow: false,
|
||
isSelfStudy: true, //dateTime,yearmonth
|
||
mode: 'datetime',
|
||
precision: null,
|
||
concatPhone: '',
|
||
reason: '',
|
||
applySign: '', //签名地址
|
||
// 日历控制(默认隐藏)
|
||
showCalendar: false,
|
||
calendarKey: 0,
|
||
showApplyType: false,
|
||
applyTypeColumns: [
|
||
['个人申请', '单位申请']
|
||
],
|
||
applyType: 1, //个人1 企业2
|
||
applyName: '个人申请',
|
||
concatName: '', //联系人姓名
|
||
concatPhone: '', //联系人电话
|
||
// 时间选择器控制
|
||
showStartTimePicker: false,
|
||
showEndTimePicker: false,
|
||
|
||
// 使用字符串格式的时间
|
||
startTimePickerValue: `${year}-${month}-${day}`,
|
||
endTimePickerValue: ``,
|
||
|
||
// 日期相关
|
||
selectedDate: `${year}-${month}-${day}`,
|
||
minDate: `${year}-${month}-${day}`,
|
||
maxDate: `${year + 1}-12-31`,
|
||
|
||
// 时间相关
|
||
startTime: ``,
|
||
endTime: ``,
|
||
startTimeValue: `${startHours.toString().padStart(2, '0')}:${startMinutes.toString().padStart(2, '0')}`,
|
||
endTimeValue: `${endHours.toString().padStart(2, '0')}:${endMinutes.toString().padStart(2, '0')}`,
|
||
|
||
// 新增备注字段
|
||
remark: '',
|
||
|
||
noticeList: [
|
||
'',
|
||
'使用优惠券支付,取消预订后优惠券会自动退还。',
|
||
'使用微信、支付宝支付,取消订单后需要转社区运营人员进行退款。',
|
||
'系统不支持自动退款。',
|
||
'场地搭建,则需在活动开始48小时前支付相应保证金,具体费用可与运营人员进行确认。'
|
||
],
|
||
Id: '',
|
||
};
|
||
},
|
||
onLoad(options) {
|
||
if (options && options.Id) {
|
||
this.Id = options.Id;
|
||
this.isSelfStudy=JSON.parse(options.isSelfStudy)
|
||
this.mode = options.isSelfStudy === 'true' ? 'year-month' : 'datetime'
|
||
}
|
||
},
|
||
computed: {
|
||
formattedSelectedDate() {
|
||
if (!this.selectedDate) return '请选择日期';
|
||
console.log(this.selectedDate)
|
||
// const date = new Date(this.selectedDate);
|
||
// const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
|
||
// const month = date.getMonth() + 1;
|
||
// const day = date.getDate();
|
||
// const weekday = weekdays[date.getDay()];
|
||
|
||
// return `${month}月${day}日 ${weekday}`;
|
||
return this.selectedDate
|
||
}
|
||
},
|
||
mounted() {
|
||
this.getDetail();
|
||
},
|
||
methods: {
|
||
showApplyTypeClick(){
|
||
if(this.isSelfStudy) return
|
||
this.showApplyType=true
|
||
},
|
||
// 获取详情页面
|
||
async getDetail() {
|
||
try {
|
||
const res = await get(`/api/v1/apps/home/metting-room/${this.Id}`);
|
||
if (!res || !res.success) {
|
||
throw new Error('获取详情失败');
|
||
}
|
||
console.log("======res", res)
|
||
// 如果有返回的图片数据,可以这样处理
|
||
if (res.data.imgs && res.data.imgs.length > 0) {
|
||
this.list1 = res.data.imgs.map(img => {
|
||
return img.startsWith('http') ? img : IMAGE_BASE_URL + img;
|
||
});
|
||
}
|
||
this.detail = {
|
||
...res.data
|
||
};
|
||
} catch (err) {
|
||
console.error('获取详情失败:', err);
|
||
}
|
||
},
|
||
thingCheckboxChange(e) {
|
||
this.applyTheme = JSON.parse(e.detail.value)
|
||
},
|
||
areaCheckboxChange(e) {
|
||
this.applyArea = JSON.parse(e.detail.value)
|
||
},
|
||
usagesCheckboxChange(e) {
|
||
console.log(e);
|
||
},
|
||
applyConfirm(e) {
|
||
console.log(e.value[0])
|
||
const list=['个人申请','单位申请']
|
||
this.applyName = e.value[0]
|
||
const index = list.findIndex((item) => item === e.value[0])
|
||
console.log(index)
|
||
if(index!=-1){
|
||
this.applyType = parseInt(index + 1)
|
||
this.showApplyType = false
|
||
}else{
|
||
console.log('未找到');
|
||
}
|
||
|
||
},
|
||
handleDateConfirm(e) {
|
||
let selectedDate;
|
||
|
||
// 处理不同格式的返回值
|
||
if (Array.isArray(e)) {
|
||
selectedDate = e[0];
|
||
} else if (e.result && Array.isArray(e.result)) {
|
||
selectedDate = e.result[0];
|
||
} else if (typeof e === 'string') {
|
||
selectedDate = e;
|
||
} else {
|
||
selectedDate = e.date;
|
||
}
|
||
|
||
this.selectedDate = selectedDate;
|
||
this.showCalendar = false;
|
||
|
||
// 强制更新视图
|
||
this.$nextTick(() => {
|
||
this.calendarKey += 1;
|
||
});
|
||
},
|
||
|
||
handleStartTimeConfirm(e) {
|
||
const date = new Date(e.value);
|
||
|
||
// 补零函数:确保数字是两位数
|
||
const padZero = num => num.toString().padStart(2, '0');
|
||
|
||
const year = date.getFullYear();
|
||
const month = padZero(date.getMonth() + 1); // 月份补零
|
||
const day = padZero(date.getDate()); // 日期补零
|
||
const hours = padZero(date.getHours()); // 小时补零
|
||
|
||
const dateString = this.mode === 'year-month' ?
|
||
`${year}-${month}` // 年月模式:2023-01
|
||
:
|
||
`${year}-${month}-${day} ${hours}:00`; // 完整模式:2023-01-02 09:00
|
||
|
||
this.startTime = dateString;
|
||
this.startTimePickerValue = dateString;
|
||
this.showStartTimePicker = false;
|
||
},
|
||
|
||
handleEndTimeConfirm(e) {
|
||
const date = new Date(e.value);
|
||
|
||
// 补零函数:确保数字是两位数
|
||
const padZero = num => num.toString().padStart(2, '0');
|
||
|
||
const year = date.getFullYear();
|
||
const month = padZero(date.getMonth() + 1); // 月份补零
|
||
const day = padZero(date.getDate()); // 日期补零
|
||
const hours = padZero(date.getHours()); // 小时补零
|
||
|
||
const dateString = this.mode === 'year-month' ?
|
||
`${year}-${month}` // 年月模式:2023-01
|
||
:
|
||
`${year}-${month}-${day} ${hours}:00`; // 完整模式:2023-01-02 09:00
|
||
|
||
this.endTime = dateString;
|
||
this.endTimePickerValue = dateString;
|
||
this.showEndTimePicker = false;
|
||
|
||
console.log('格式化后的结束时间:', this.endTime);
|
||
// this.validateTime(); // 如果需要验证时间范围,取消注释
|
||
},
|
||
|
||
adjustEndTime() {
|
||
console.log(this.startTime)
|
||
const [startH, startM] = this.startTime.split(':').map(Number);
|
||
let [endH, endM] = this.endTime.split(':').map(Number);
|
||
|
||
const startTotal = startH * 60 + startM;
|
||
let endTotal = endH * 60 + endM;
|
||
|
||
if (endTotal <= startTotal) {
|
||
endTotal = startTotal + 60;
|
||
endH = Math.floor(endTotal / 60);
|
||
endM = endTotal % 60;
|
||
this.endTime = `${endH.toString().padStart(2, '0')}:${endM.toString().padStart(2, '0')}`;
|
||
this.endTimeValue = `${endH}:${endM}`;
|
||
this.endTimePickerValue = this.endTime;
|
||
}
|
||
},
|
||
|
||
validateTime() {
|
||
const [startH, startM] = this.startTime.split(':').map(Number);
|
||
const [endH, endM] = this.endTime.split(':').map(Number);
|
||
|
||
const duration = (endH * 60 + endM) - (startH * 60 + startM);
|
||
if (duration < 30) {
|
||
uni.showToast({
|
||
title: '最少预订30分钟',
|
||
icon: 'none'
|
||
});
|
||
this.adjustEndTime();
|
||
}
|
||
},
|
||
/**
|
||
* 验证对象属性是否为空(Promise版)
|
||
* @param {Object} obj - 要验证的对象
|
||
* @param {Object} applyRules - 验证规则对象
|
||
* @returns {Promise} 返回Promise,resolve通过验证,reject失败信息
|
||
*/
|
||
validateObject(obj, applyRules = {}) {
|
||
return new Promise((resolve, reject) => {
|
||
// 参数校验
|
||
if (!obj || typeof obj !== 'object') {
|
||
return reject(new Error('参数必须是一个对象'));
|
||
}
|
||
|
||
const keys = Object.keys(obj);
|
||
let firstInvalidKey = null;
|
||
console.log(keys);
|
||
// 遍历检查每个属性
|
||
for (const item of keys) {
|
||
console.log(item)
|
||
const value = obj[item];
|
||
console.log(value);
|
||
// 检查空值且该属性在验证规则中
|
||
if ((value === '' || value === null) && applyRules.hasOwnProperty(item)) {
|
||
firstInvalidKey = item;
|
||
break;
|
||
}
|
||
}
|
||
console.log(firstInvalidKey)
|
||
if (firstInvalidKey) {
|
||
// 返回具体的错误信息
|
||
const errorMsg = `${applyRules[firstInvalidKey]}不能为空`;
|
||
reject(new Error(errorMsg));
|
||
} else {
|
||
resolve('所有属性验证通过');
|
||
}
|
||
});
|
||
},
|
||
async handleBook() {
|
||
try {
|
||
console.log(this.applyType);
|
||
let bookingInfo = {
|
||
roomId: this.Id,
|
||
applyType: this.applyType,
|
||
reason: this.reason,
|
||
applyTheme: this.applyTheme
|
||
};
|
||
if (this.applyType === 1) {
|
||
const userApplyInfo = {
|
||
userName: this.userName,
|
||
userPhone: this.userPhone,
|
||
userAddress: this.userAddress,
|
||
userCardId: this.userCardId,
|
||
startTime: this.startTime,
|
||
endTime: this.endTime,
|
||
counter: this.counter,
|
||
num: this.num
|
||
}
|
||
await this.validateObject(userApplyInfo, this.applyRules)
|
||
const applyInfo = Object.assign(bookingInfo, userApplyInfo)
|
||
// 页面A设置参数
|
||
const app = getApp()
|
||
app.globalData.applyInfo = applyInfo
|
||
uni.navigateTo({
|
||
url: `/pages/sign/sign?isSelfStudy=${this.isSelfStudy}`
|
||
})
|
||
}
|
||
if (this.applyType === 2) {
|
||
const userApplyInfo = {
|
||
concatName: this.concatName,
|
||
concatPhone: this.concatPhone,
|
||
companyName: this.companyName,
|
||
startTime: this.startTime,
|
||
endTime: this.endTime,
|
||
counter: this.counter,
|
||
num: this.num
|
||
}
|
||
await this.validateObject(userApplyInfo, this.applyRules)
|
||
const applyInfo = Object.assign(bookingInfo, userApplyInfo)
|
||
// 这里可以添加实际的API调用
|
||
const res = await post('/api/v1/app_auth/metting-room/order/register', applyInfo)
|
||
if (!res || !res.success) {
|
||
throw new Error('会议室预定失败');
|
||
}
|
||
uni.showToast({
|
||
title: '会议室预定成功!',
|
||
icon: 'success'
|
||
});
|
||
if(res.success==true){
|
||
uni.navigateTo({
|
||
url:`/pages/docList/index?files=${JSON.stringify(res.data)}&&isSelfStudy=${this.isSelfStudy}`
|
||
})
|
||
}
|
||
}
|
||
} catch (error) {
|
||
uni.showToast({
|
||
title: error.message,
|
||
icon: 'none'
|
||
})
|
||
}
|
||
|
||
},
|
||
|
||
}
|
||
};
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.meeting-room-detail {
|
||
padding: 20rpx;
|
||
padding-bottom: 140rpx;
|
||
/* 增大底部空间 */
|
||
background-color: #f5f7fa;
|
||
}
|
||
|
||
/* 轮播图优化 */
|
||
.room-swiper {
|
||
width: 100%;
|
||
height: 420rpx;
|
||
border-radius: 16rpx;
|
||
overflow: hidden;
|
||
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
|
||
}
|
||
|
||
/* 卡片通用样式 */
|
||
.info-card,
|
||
.booking-card,
|
||
.notice-card {
|
||
background: #fff;
|
||
border-radius: 16rpx;
|
||
padding: 24rpx;
|
||
margin-bottom: 24rpx;
|
||
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
|
||
}
|
||
|
||
/* 会议室信息卡片 */
|
||
.room-info {
|
||
.room-name {
|
||
font-size: 36rpx;
|
||
font-weight: 600;
|
||
color: #333;
|
||
margin-bottom: 16rpx;
|
||
display: block;
|
||
}
|
||
|
||
.meta-info {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 20rpx;
|
||
margin-bottom: 16rpx;
|
||
|
||
text {
|
||
font-size: 26rpx;
|
||
color: #666;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
}
|
||
|
||
.room-desc {
|
||
font-size: 28rpx;
|
||
color: #666;
|
||
line-height: 1.6;
|
||
}
|
||
}
|
||
|
||
/* 卡片标题 */
|
||
.card-header {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 24rpx;
|
||
padding-bottom: 16rpx;
|
||
border-bottom: 1rpx solid #f0f0f0;
|
||
|
||
.card-title {
|
||
font-size: 30rpx;
|
||
font-weight: 600;
|
||
color: #333;
|
||
margin-left: 10rpx;
|
||
}
|
||
}
|
||
|
||
/* 日期选择区域 */
|
||
.date-section {
|
||
margin-bottom: 32rpx;
|
||
|
||
.section-header {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 16rpx;
|
||
}
|
||
|
||
.section-title {
|
||
font-size: 28rpx;
|
||
color: #333;
|
||
margin-left: 8rpx;
|
||
}
|
||
|
||
.date-display {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 20rpx 24rpx;
|
||
background: #f8f9fa;
|
||
border-radius: 12rpx;
|
||
font-size: 28rpx;
|
||
color: #333;
|
||
}
|
||
}
|
||
|
||
/* 时间选择区域 */
|
||
|
||
|
||
.time-section {
|
||
flex: 1;
|
||
margin-bottom: 32rpx;
|
||
|
||
.time-selector {
|
||
flex: 1
|
||
}
|
||
|
||
.time-label {
|
||
font-size: 26rpx;
|
||
color: #666;
|
||
margin-bottom: 8rpx;
|
||
display: block;
|
||
}
|
||
|
||
.time-display {
|
||
padding: 20rpx;
|
||
background: #f8f9fa;
|
||
border-radius: 12rpx;
|
||
text-align: center;
|
||
font-size: 28rpx;
|
||
color: #333;
|
||
height: 15px;
|
||
}
|
||
|
||
.section-header {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 16rpx;
|
||
font-size: 28rpx;
|
||
}
|
||
|
||
.section-title {
|
||
font-size: 28rpx;
|
||
color: #333;
|
||
margin-left: 8rpx;
|
||
}
|
||
|
||
.time-picker {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16rpx;
|
||
}
|
||
|
||
.time-separator {
|
||
color: #999;
|
||
font-size: 28rpx;
|
||
padding-top: 28rpx;
|
||
}
|
||
|
||
}
|
||
|
||
|
||
|
||
/* 新增备注区域 */
|
||
.remark-section {
|
||
margin-top: 24rpx;
|
||
|
||
.section-header {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 16rpx;
|
||
}
|
||
|
||
.section-title {
|
||
font-size: 28rpx;
|
||
color: #333;
|
||
margin-left: 8rpx;
|
||
}
|
||
}
|
||
|
||
/* 预订须知 */
|
||
.notice-card {
|
||
.notice-list {
|
||
.notice-item {
|
||
display: flex;
|
||
margin-bottom: 16rpx;
|
||
line-height: 1.6;
|
||
|
||
.notice-index {
|
||
color: #2979ff;
|
||
font-weight: bold;
|
||
margin-right: 8rpx;
|
||
}
|
||
|
||
.notice-content {
|
||
font-size: 26rpx;
|
||
color: #666;
|
||
flex: 1;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
/* 底部操作栏 */
|
||
.action-bar {
|
||
position: fixed;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
padding: 20rpx;
|
||
background: #fff;
|
||
box-shadow: 0 -2rpx 12rpx rgba(0, 0, 0, 0.08);
|
||
z-index: 999;
|
||
|
||
.u-button {
|
||
height: 88rpx;
|
||
/* 增大高度 */
|
||
font-size: 32rpx;
|
||
font-weight: 500;
|
||
}
|
||
}
|
||
|
||
/* 动画效果 */
|
||
.time-display,
|
||
.date-display {
|
||
transition: all 0.2s;
|
||
|
||
&:active {
|
||
background: #eef2f7;
|
||
transform: scale(0.98);
|
||
}
|
||
}
|
||
</style> |