PHP 前后端一体:首页咨询师列表、预约表单、管理后台、二维码准入与邮件通知;敏感配置与提交数据通过 .gitignore 排除。 Co-authored-by: Cursor <cursoragent@cursor.com>
87 lines
4.0 KiB
PHP
87 lines
4.0 KiB
PHP
<?php
|
||
declare(strict_types=1);
|
||
require __DIR__ . '/api/bootstrap.php';
|
||
sendHtmlNoCacheHeaders();
|
||
$v = getAssetVersion();
|
||
?><!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
|
||
<meta name="format-detection" content="telephone=no">
|
||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
|
||
<meta http-equiv="Pragma" content="no-cache">
|
||
<meta http-equiv="Expires" content="0">
|
||
<title>心理咨询 - 预约</title>
|
||
<link rel="stylesheet" href="<?= asset('css/base.css') ?>">
|
||
<link rel="stylesheet" href="<?= asset('css/form.css') ?>">
|
||
<script>window.__ASSET_V__="<?= htmlspecialchars($v, ENT_QUOTES) ?>";</script>
|
||
</head>
|
||
<body>
|
||
<div class="page page--fade-in form-page">
|
||
<header class="header">
|
||
<button type="button" class="header__back" id="back-btn" aria-label="返回">←</button>
|
||
<h1 class="header__title">心理咨询</h1>
|
||
</header>
|
||
|
||
<div id="doctor-banner" class="doctor-banner" style="display:none"></div>
|
||
|
||
<div class="form-body">
|
||
<div class="form-card">
|
||
<h2 class="form-card__title">基本信息</h2>
|
||
|
||
<div class="form-field">
|
||
<label class="form-field__label" for="nickname">昵称<span class="required">*</span></label>
|
||
<input type="text" id="nickname" class="form-field__input" placeholder="请输入昵称" maxlength="20" aria-required="true">
|
||
</div>
|
||
|
||
<div class="form-field">
|
||
<span class="form-field__label">性别<span class="required">*</span></span>
|
||
<div class="gender-group" role="radiogroup" aria-label="性别">
|
||
<label class="gender-option">
|
||
<input type="radio" name="gender" value="男">
|
||
<span class="gender-option__text">男</span>
|
||
</label>
|
||
<label class="gender-option">
|
||
<input type="radio" name="gender" value="女">
|
||
<span class="gender-option__text">女</span>
|
||
</label>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-field">
|
||
<label class="form-field__label" for="contact">联系电话<span class="required">*</span></label>
|
||
<input type="tel" id="contact" class="form-field__input" placeholder="请输入手机号码" maxlength="11" inputmode="numeric" aria-required="true">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-card">
|
||
<label class="form-field__label" for="description">需求简述<span class="required">*</span></label>
|
||
<div class="textarea-wrap">
|
||
<textarea id="description" class="form-field__textarea" placeholder="请简要描述您的咨询需求" maxlength="200" aria-required="true"></textarea>
|
||
</div>
|
||
<div class="textarea-wrap__footer">
|
||
<span class="char-count" id="char-count">(0/200字)</span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<section class="service-info">
|
||
<h3 class="service-info__title">心理咨询服务说明</h3>
|
||
<p class="service-info__item">1. 服务时效:申请后实时响应,我们将在2h内确认您与心理咨询师的沟通时间。请注意接听<strong id="confirm-phone">13122315169</strong>的号码来电。</p>
|
||
<p class="service-info__item">2. 服务旨在为用户提供专业的心理支持和建议,帮助用户理解和管理自己的情绪、行为及人际关系等问题。不涉及心理治疗、药物治疗或其他医疗行为。</p>
|
||
<p class="service-info__phone">客服/投诉专线:<span id="service-hotline">13122315169</span></p>
|
||
</section>
|
||
|
||
<div class="submit-bar">
|
||
<button type="button" class="btn btn--primary btn--block btn--shine" id="submit-btn">提交</button>
|
||
</div>
|
||
</div>
|
||
|
||
<script src="<?= asset('js/api.js') ?>"></script>
|
||
<script src="<?= asset('js/config-loader.js') ?>"></script>
|
||
<script src="<?= asset('js/access.js') ?>"></script>
|
||
<script src="<?= asset('js/consult.js') ?>"></script>
|
||
</body>
|
||
</html>
|