672 lines
		
	
	
		
			21 KiB
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			672 lines
		
	
	
		
			21 KiB
		
	
	
	
		
			HTML
		
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="zh-CN">
 | |
| <head>
 | |
|     <meta charset="UTF-8">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
 | |
|     <title>创建菜市场</title>
 | |
|     <style>
 | |
|         * {
 | |
|             margin: 0;
 | |
|             padding: 0;
 | |
|             box-sizing: border-box;
 | |
|         }
 | |
| 
 | |
|         body {
 | |
|             font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 | |
|             background-color: #f5f7fa;
 | |
|             padding: 0;
 | |
|             font-size: 14px;
 | |
|             line-height: 1.5;
 | |
|         }
 | |
| 
 | |
|         /* 头部样式 */
 | |
|         .header {
 | |
|             background: #409eff;
 | |
|             color: white;
 | |
|             padding: 12px 15px;
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|             justify-content: space-between;
 | |
|             box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 | |
|         }
 | |
| 
 | |
|         .header h1 {
 | |
|             font-size: 18px;
 | |
|             font-weight: 500;
 | |
|         }
 | |
| 
 | |
|         .header-back {
 | |
|             font-size: 20px;
 | |
|             cursor: pointer;
 | |
|             padding: 5px;
 | |
|         }
 | |
| 
 | |
|         /* 内容区域 */
 | |
|         .container {
 | |
|             padding: 0;
 | |
|             margin: 0;
 | |
|             background: white;
 | |
|         }
 | |
| 
 | |
|         /* 表单样式 */
 | |
|         .form-section {
 | |
|             margin-bottom: 10px;
 | |
|             background: white;
 | |
|         }
 | |
| 
 | |
|         .form-section-title {
 | |
|             font-size: 15px;
 | |
|             color: #303133;
 | |
|             font-weight: 500;
 | |
|             padding: 15px;
 | |
|             background-color: #f5f7fa;
 | |
|             border-left: 3px solid #409eff;
 | |
|         }
 | |
| 
 | |
|         .form-group {
 | |
|             padding: 15px;
 | |
|             border-bottom: 1px solid #f0f0f0;
 | |
|         }
 | |
| 
 | |
|         .form-group:last-child {
 | |
|             border-bottom: none;
 | |
|         }
 | |
| 
 | |
|         .form-label {
 | |
|             color: #606266;
 | |
|             font-size: 14px;
 | |
|             margin-bottom: 8px;
 | |
|             display: block;
 | |
|         }
 | |
| 
 | |
|         .form-label.required::before {
 | |
|             content: "*";
 | |
|             color: #f56c6c;
 | |
|             margin-right: 4px;
 | |
|         }
 | |
| 
 | |
|         .form-input,
 | |
|         .form-select,
 | |
|         .form-textarea {
 | |
|             width: 100%;
 | |
|             padding: 10px 12px;
 | |
|             border: 1px solid #dcdfe6;
 | |
|             border-radius: 4px;
 | |
|             font-size: 14px;
 | |
|             outline: none;
 | |
|             transition: border-color 0.3s;
 | |
|             -webkit-appearance: none;
 | |
|         }
 | |
| 
 | |
|         .form-input:focus,
 | |
|         .form-select:focus,
 | |
|         .form-textarea:focus {
 | |
|             border-color: #409eff;
 | |
|         }
 | |
| 
 | |
|         .form-input::placeholder,
 | |
|         .form-textarea::placeholder {
 | |
|             color: #c0c4cc;
 | |
|         }
 | |
| 
 | |
|         .form-textarea {
 | |
|             resize: vertical;
 | |
|             min-height: 80px;
 | |
|         }
 | |
| 
 | |
|         /* 图片上传样式 */
 | |
|         .upload-box {
 | |
|             width: 100%;
 | |
|             height: 120px;
 | |
|             border: 1px dashed #dcdfe6;
 | |
|             border-radius: 4px;
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|             justify-content: center;
 | |
|             cursor: pointer;
 | |
|             background-color: #fafafa;
 | |
|             transition: border-color 0.3s;
 | |
|         }
 | |
| 
 | |
|         .upload-box:active {
 | |
|             background-color: #f0f0f0;
 | |
|         }
 | |
| 
 | |
|         .upload-box-text {
 | |
|             color: #909399;
 | |
|             font-size: 14px;
 | |
|             text-align: center;
 | |
|         }
 | |
| 
 | |
|         .upload-icon {
 | |
|             font-size: 32px;
 | |
|             color: #c0c4cc;
 | |
|             margin-bottom: 8px;
 | |
|         }
 | |
| 
 | |
|         /* 开关样式 */
 | |
|         .switch-group {
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|             justify-content: space-between;
 | |
|         }
 | |
| 
 | |
|         .switch-labels {
 | |
|             display: flex;
 | |
|             gap: 15px;
 | |
|         }
 | |
| 
 | |
|         .switch {
 | |
|             position: relative;
 | |
|             display: inline-block;
 | |
|             width: 50px;
 | |
|             height: 28px;
 | |
|             flex-shrink: 0;
 | |
|         }
 | |
| 
 | |
|         .switch input {
 | |
|             opacity: 0;
 | |
|             width: 0;
 | |
|             height: 0;
 | |
|         }
 | |
| 
 | |
|         .switch-slider {
 | |
|             position: absolute;
 | |
|             cursor: pointer;
 | |
|             top: 0;
 | |
|             left: 0;
 | |
|             right: 0;
 | |
|             bottom: 0;
 | |
|             background-color: #dcdfe6;
 | |
|             transition: 0.3s;
 | |
|             border-radius: 28px;
 | |
|         }
 | |
| 
 | |
|         .switch-slider:before {
 | |
|             position: absolute;
 | |
|             content: "";
 | |
|             height: 22px;
 | |
|             width: 22px;
 | |
|             left: 3px;
 | |
|             bottom: 3px;
 | |
|             background-color: white;
 | |
|             transition: 0.3s;
 | |
|             border-radius: 50%;
 | |
|         }
 | |
| 
 | |
|         .switch input:checked + .switch-slider {
 | |
|             background-color: #409eff;
 | |
|         }
 | |
| 
 | |
|         .switch input:checked + .switch-slider:before {
 | |
|             transform: translateX(22px);
 | |
|         }
 | |
| 
 | |
|         .switch-label {
 | |
|             color: #606266;
 | |
|             font-size: 14px;
 | |
|         }
 | |
| 
 | |
|         .switch-label.active {
 | |
|             color: #409eff;
 | |
|             font-weight: 500;
 | |
|         }
 | |
| 
 | |
|         /* 复选框组样式 */
 | |
|         .checkbox-group {
 | |
|             display: flex;
 | |
|             gap: 20px;
 | |
|             margin-top: 12px;
 | |
|             flex-wrap: wrap;
 | |
|         }
 | |
| 
 | |
|         .checkbox-option {
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|             gap: 6px;
 | |
|         }
 | |
| 
 | |
|         .checkbox-option input[type="checkbox"] {
 | |
|             width: 18px;
 | |
|             height: 18px;
 | |
|             margin: 0;
 | |
|         }
 | |
| 
 | |
|         .checkbox-option label {
 | |
|             color: #606266;
 | |
|             font-size: 14px;
 | |
|             cursor: pointer;
 | |
|         }
 | |
| 
 | |
|         /* 时间输入样式 */
 | |
|         .time-group {
 | |
|             display: flex;
 | |
|             gap: 10px;
 | |
|             align-items: center;
 | |
|             margin-top: 12px;
 | |
|         }
 | |
| 
 | |
|         .time-input {
 | |
|             flex: 1;
 | |
|         }
 | |
| 
 | |
|         /* 说明文字样式 */
 | |
|         .form-hint {
 | |
|             color: #909399;
 | |
|             font-size: 12px;
 | |
|             margin-top: 8px;
 | |
|             line-height: 1.5;
 | |
|         }
 | |
| 
 | |
|         .form-hint-icon {
 | |
|             margin-right: 4px;
 | |
|         }
 | |
| 
 | |
|         /* 地图位置选择 */
 | |
|         .map-placeholder {
 | |
|             width: 100%;
 | |
|             height: 200px;
 | |
|             border: 1px solid #dcdfe6;
 | |
|             border-radius: 4px;
 | |
|             background-color: #f5f7fa;
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|             justify-content: center;
 | |
|             cursor: pointer;
 | |
|             transition: background-color 0.3s;
 | |
|         }
 | |
| 
 | |
|         .map-placeholder:active {
 | |
|             background-color: #e8ebf0;
 | |
|         }
 | |
| 
 | |
|         .map-placeholder-content {
 | |
|             text-align: center;
 | |
|         }
 | |
| 
 | |
|         .map-icon {
 | |
|             font-size: 48px;
 | |
|             margin-bottom: 10px;
 | |
|         }
 | |
| 
 | |
|         .map-text {
 | |
|             color: #909399;
 | |
|             font-size: 14px;
 | |
|         }
 | |
| 
 | |
|         .location-text {
 | |
|             font-size: 12px;
 | |
|             margin-top: 5px;
 | |
|             color: #f56c6c;
 | |
|         }
 | |
| 
 | |
|         .location-text.selected {
 | |
|             color: #67c23a;
 | |
|         }
 | |
| 
 | |
|         /* 发送验证码按钮组 */
 | |
|         .code-group {
 | |
|             display: flex;
 | |
|             gap: 10px;
 | |
|         }
 | |
| 
 | |
|         .code-input {
 | |
|             flex: 1;
 | |
|         }
 | |
| 
 | |
|         /* 按钮样式 */
 | |
|         .btn {
 | |
|             padding: 10px 20px;
 | |
|             border: none;
 | |
|             border-radius: 4px;
 | |
|             font-size: 14px;
 | |
|             cursor: pointer;
 | |
|             transition: all 0.3s;
 | |
|             white-space: nowrap;
 | |
|         }
 | |
| 
 | |
|         .btn:active {
 | |
|             opacity: 0.8;
 | |
|         }
 | |
| 
 | |
|         .btn-primary {
 | |
|             background-color: #409eff;
 | |
|             color: white;
 | |
|         }
 | |
| 
 | |
|         .btn-primary:disabled {
 | |
|             background-color: #a0cfff;
 | |
|             cursor: not-allowed;
 | |
|         }
 | |
| 
 | |
|         .btn-code {
 | |
|             min-width: 100px;
 | |
|         }
 | |
| 
 | |
|         /* 底部按钮区 */
 | |
|         .footer-buttons {
 | |
|             padding: 15px;
 | |
|             background: white;
 | |
|             border-top: 1px solid #ebeef5;
 | |
|             box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
 | |
|             display: flex;
 | |
|             gap: 10px;
 | |
|             margin-top: 20px;
 | |
|         }
 | |
| 
 | |
|         .btn-cancel {
 | |
|             flex: 1;
 | |
|             background-color: white;
 | |
|             color: #606266;
 | |
|             border: 1px solid #dcdfe6;
 | |
|             padding: 12px;
 | |
|             font-size: 15px;
 | |
|         }
 | |
| 
 | |
|         .btn-submit {
 | |
|             flex: 2;
 | |
|             background-color: #409eff;
 | |
|             color: white;
 | |
|             padding: 12px;
 | |
|             font-size: 15px;
 | |
|         }
 | |
| 
 | |
|         /* 隐藏元素 */
 | |
|         .hidden {
 | |
|             display: none !important;
 | |
|         }
 | |
| 
 | |
|         /* 页面内间距调整 */
 | |
|         .spacer {
 | |
|             height: 10px;
 | |
|             background-color: #f5f7fa;
 | |
|         }
 | |
|     </style>
 | |
| </head>
 | |
| <body>
 | |
|     <!-- 头部 -->
 | |
|     <div class="header">
 | |
|         <span class="header-back" onclick="goBack()">←</span>
 | |
|         <h1>创建菜市场</h1>
 | |
|         <span style="width: 30px;"></span>
 | |
|     </div>
 | |
| 
 | |
|     <!-- 内容区域 -->
 | |
|     <div class="container">
 | |
|         <form id="createMarketForm">
 | |
|             <!-- 基础配置 -->
 | |
|             <div class="form-section">
 | |
|                 <div class="form-section-title">基础配置</div>
 | |
| 
 | |
|                 <div class="form-group">
 | |
|                     <label class="form-label required">菜市场名称</label>
 | |
|                     <input type="text" class="form-input" id="marketName" placeholder="请输入菜市场名称25字符内" maxlength="25">
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="form-group">
 | |
|                     <label class="form-label required">商品类目类型</label>
 | |
|                     <select class="form-select" id="categoryType">
 | |
|                         <option value="">请选择商品类目类型</option>
 | |
|                         <option value="offline">线下菜市场</option>
 | |
|                         <option value="cloud">云店</option>
 | |
|                     </select>
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="form-group">
 | |
|                     <label class="form-label required">菜市场背景图</label>
 | |
|                     <div class="upload-box" onclick="uploadImage('background')">
 | |
|                         <div class="upload-box-text">
 | |
|                             <div class="upload-icon">📷</div>
 | |
|                             <div>点击上传图片</div>
 | |
|                         </div>
 | |
|                     </div>
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="form-group">
 | |
|                     <label class="form-label required">菜市场营业执照</label>
 | |
|                     <div class="upload-box" onclick="uploadImage('license')">
 | |
|                         <div class="upload-box-text">
 | |
|                             <div class="upload-icon">📷</div>
 | |
|                             <div>点击上传营业执照</div>
 | |
|                         </div>
 | |
|                     </div>
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="form-group">
 | |
|                     <label class="form-label required">菜市场实拍图</label>
 | |
|                     <div class="upload-box" onclick="uploadImage('photo')">
 | |
|                         <div class="upload-box-text">
 | |
|                             <div class="upload-icon">📷</div>
 | |
|                             <div>点击上传实拍图</div>
 | |
|                         </div>
 | |
|                     </div>
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="form-group">
 | |
|                     <label class="form-label required">菜市场地址</label>
 | |
|                     <select class="form-select" id="regionSelect">
 | |
|                         <option value="">请选择省市区</option>
 | |
|                         <option value="shanghai">上海市</option>
 | |
|                         <option value="beijing">北京市</option>
 | |
|                         <option value="fujian">福建省</option>
 | |
|                     </select>
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="form-group">
 | |
|                     <label class="form-label required">详细地址</label>
 | |
|                     <input type="text" class="form-input" id="detailAddress" placeholder="请输入具体地址">
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="form-group">
 | |
|                     <label class="form-label required">菜市场定位</label>
 | |
|                     <div class="map-placeholder" onclick="selectLocation()">
 | |
|                         <div class="map-placeholder-content">
 | |
|                             <div class="map-icon">📍</div>
 | |
|                             <div class="map-text">点击选择地图定位</div>
 | |
|                             <div class="location-text" id="selectedLocationText">请选择定位</div>
 | |
|                         </div>
 | |
|                     </div>
 | |
|                     <input type="hidden" id="locationLat" value="">
 | |
|                     <input type="hidden" id="locationLng" value="">
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="form-group">
 | |
|                     <label class="form-label required">菜市场营业时间</label>
 | |
|                     <div class="switch-group">
 | |
|                         <div class="switch-labels">
 | |
|                             <span class="switch-label">手动营业</span>
 | |
|                             <span class="switch-label active" id="autoLabel">自动营业</span>
 | |
|                         </div>
 | |
|                         <label class="switch">
 | |
|                             <input type="checkbox" id="autoBusinessTime" checked onchange="toggleBusinessTimeOptions()">
 | |
|                             <span class="switch-slider"></span>
 | |
|                         </label>
 | |
|                     </div>
 | |
|                     <div class="checkbox-group" id="businessDayOptions">
 | |
|                         <div class="checkbox-option">
 | |
|                             <input type="checkbox" id="everyday">
 | |
|                             <label for="everyday">每天</label>
 | |
|                         </div>
 | |
|                         <div class="checkbox-option">
 | |
|                             <input type="checkbox" id="workday">
 | |
|                             <label for="workday">工作日</label>
 | |
|                         </div>
 | |
|                         <div class="checkbox-option">
 | |
|                             <input type="checkbox" id="custom">
 | |
|                             <label for="custom">自定义</label>
 | |
|                         </div>
 | |
|                     </div>
 | |
|                     <div class="time-group" id="businessTimeRange">
 | |
|                         <input type="time" class="form-input time-input" id="startTime" placeholder="开始营业时间">
 | |
|                         <span>至</span>
 | |
|                         <input type="time" class="form-input time-input" id="endTime" placeholder="结束营业时间">
 | |
|                     </div>
 | |
|                 </div>
 | |
| 
 | |
|                 <div class="form-group">
 | |
|                     <label class="form-label required">菜市场状态</label>
 | |
|                     <div class="switch-group">
 | |
|                         <div class="switch-labels">
 | |
|                             <span class="switch-label">禁用</span>
 | |
|                             <span class="switch-label active" id="statusLabel">启用</span>
 | |
|                         </div>
 | |
|                         <label class="switch">
 | |
|                             <input type="checkbox" id="marketStatus" checked onchange="toggleStatusLabel()">
 | |
|                             <span class="switch-slider"></span>
 | |
|                         </label>
 | |
|                     </div>
 | |
|                     <div class="form-hint">禁用后,用户端不展示该菜市场</div>
 | |
|                 </div>
 | |
|             </div>
 | |
| 
 | |
|         </form>
 | |
|     </div>
 | |
| 
 | |
|     <!-- 底部按钮 -->
 | |
|     <div class="footer-buttons">
 | |
|         <button type="button" class="btn btn-cancel" onclick="goBack()">取消</button>
 | |
|         <button type="button" class="btn btn-submit" onclick="submitForm()">确认创建</button>
 | |
|     </div>
 | |
| 
 | |
|     <script>
 | |
|         // 返回上一页
 | |
|         function goBack() {
 | |
|             if (confirm('确定要放弃创建菜市场吗?')) {
 | |
|                 window.history.back();
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         // 切换营业时间选项的显示/隐藏
 | |
|         function toggleBusinessTimeOptions() {
 | |
|             const autoBusinessTime = document.getElementById('autoBusinessTime');
 | |
|             const businessDayOptions = document.getElementById('businessDayOptions');
 | |
|             const businessTimeRange = document.getElementById('businessTimeRange');
 | |
|             const autoLabel = document.getElementById('autoLabel');
 | |
|             const manualLabel = autoLabel.previousElementSibling;
 | |
| 
 | |
|             if (autoBusinessTime.checked) {
 | |
|                 // 自动营业,显示时间范围和日期选项
 | |
|                 businessDayOptions.classList.remove('hidden');
 | |
|                 businessTimeRange.classList.remove('hidden');
 | |
|                 autoLabel.classList.add('active');
 | |
|                 manualLabel.classList.remove('active');
 | |
|             } else {
 | |
|                 // 手动营业,隐藏时间范围和日期选项
 | |
|                 businessDayOptions.classList.add('hidden');
 | |
|                 businessTimeRange.classList.add('hidden');
 | |
|                 autoLabel.classList.remove('active');
 | |
|                 manualLabel.classList.add('active');
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         // 切换状态标签
 | |
|         function toggleStatusLabel() {
 | |
|             const marketStatus = document.getElementById('marketStatus');
 | |
|             const statusLabel = document.getElementById('statusLabel');
 | |
|             const disabledLabel = statusLabel.previousElementSibling;
 | |
| 
 | |
|             if (marketStatus.checked) {
 | |
|                 statusLabel.classList.add('active');
 | |
|                 disabledLabel.classList.remove('active');
 | |
|             } else {
 | |
|                 statusLabel.classList.remove('active');
 | |
|                 disabledLabel.classList.add('active');
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         // 选择地图定位
 | |
|         function selectLocation() {
 | |
|             // 这里应该打开地图选择器,实际应调用地图API
 | |
|             alert('此处应打开地图选择器,实际开发时需要集成地图API(如高德地图、百度地图等)');
 | |
| 
 | |
|             // 模拟选择了一个位置
 | |
|             const mockLat = 31.230416;
 | |
|             const mockLng = 121.473701;
 | |
| 
 | |
|             document.getElementById('locationLat').value = mockLat;
 | |
|             document.getElementById('locationLng').value = mockLng;
 | |
|             document.getElementById('selectedLocationText').textContent = '已选择: ' + mockLat + ', ' + mockLng;
 | |
|             document.getElementById('selectedLocationText').classList.add('selected');
 | |
|         }
 | |
| 
 | |
|         // 上传图片
 | |
|         function uploadImage(type) {
 | |
|             // 这里应该调用图片上传功能
 | |
|             alert('上传' + type + '图片功能待实现\n实际开发时需要调用相机或相册API');
 | |
|         }
 | |
| 
 | |
|         // 提交表单
 | |
|         function submitForm() {
 | |
|             const marketName = document.getElementById('marketName').value;
 | |
|             const categoryType = document.getElementById('categoryType').value;
 | |
|             const regionSelect = document.getElementById('regionSelect').value;
 | |
|             const detailAddress = document.getElementById('detailAddress').value;
 | |
|             const locationLat = document.getElementById('locationLat').value;
 | |
|             const locationLng = document.getElementById('locationLng').value;
 | |
| 
 | |
|             // 验证必填项
 | |
|             if (!marketName || marketName.trim() === '') {
 | |
|                 alert('请输入菜市场名称');
 | |
|                 return;
 | |
|             }
 | |
| 
 | |
|             if (!categoryType || categoryType === '') {
 | |
|                 alert('请选择商品类目类型');
 | |
|                 return;
 | |
|             }
 | |
| 
 | |
|             if (!regionSelect || regionSelect === '') {
 | |
|                 alert('请选择省市区');
 | |
|                 return;
 | |
|             }
 | |
| 
 | |
|             if (!detailAddress || detailAddress.trim() === '') {
 | |
|                 alert('请输入详细地址');
 | |
|                 return;
 | |
|             }
 | |
| 
 | |
|             if (!locationLat || !locationLng) {
 | |
|                 alert('请选择菜市场定位');
 | |
|                 return;
 | |
|             }
 | |
| 
 | |
|             // 构建提交数据
 | |
|             const formData = {
 | |
|                 marketName: marketName,
 | |
|                 categoryType: categoryType,
 | |
|                 region: regionSelect,
 | |
|                 detailAddress: detailAddress,
 | |
|                 location: {
 | |
|                     lat: locationLat,
 | |
|                     lng: locationLng
 | |
|                 },
 | |
|                 autoBusinessTime: document.getElementById('autoBusinessTime').checked,
 | |
|                 businessDays: {
 | |
|                     everyday: document.getElementById('everyday').checked,
 | |
|                     workday: document.getElementById('workday').checked,
 | |
|                     custom: document.getElementById('custom').checked
 | |
|                 },
 | |
|                 businessTime: {
 | |
|                     start: document.getElementById('startTime').value,
 | |
|                     end: document.getElementById('endTime').value
 | |
|                 },
 | |
|                 marketStatus: document.getElementById('marketStatus').checked
 | |
|             };
 | |
| 
 | |
|             console.log('提交数据:', formData);
 | |
| 
 | |
|             // 这里应该调用后端API提交表单
 | |
|             alert('表单提交功能待实现\n已填写信息:\n' +
 | |
|                 '市场名称: ' + formData.marketName + '\n' +
 | |
|                 '类目类型: ' + (formData.categoryType === 'offline' ? '线下菜市场' : '云店'));
 | |
|         }
 | |
| 
 | |
|         // 页面加载完成后初始化
 | |
|         document.addEventListener('DOMContentLoaded', function() {
 | |
|             // 初始化营业时间选项显示状态
 | |
|             toggleBusinessTimeOptions();
 | |
|         });
 | |
|     </script>
 | |
| </body>
 | |
| </html>
 |