feat(sxbh-compliance): 新增隐私政策/服务条款页 + 全站页脚挂链 + 咨询表单同意勾选
白名单只含 158 件:privacy.html、terms.html 新建;156 个页面插入合规页脚链; index.html 咨询弹窗加同意复选框(默认不勾 + JS 拦截)。 他人未提交 hunk(articles/perspective 等)未纳入本提交。
This commit is contained in:
+15
@@ -558,6 +558,12 @@
|
||||
<div style="margin-top:8px;">
|
||||
<a href="https://beian.miit.gov.cn" target="_blank" rel="noopener">陕ICP备2023001969号-3</a>
|
||||
</div>
|
||||
<!-- sxbh-legal-links -->
|
||||
<div style="margin-top:8px;">
|
||||
<a href="/privacy.html" style="color:#9fc7d8;">隐私政策</a>
|
||||
<span style="margin:0 10px;color:rgba(255,255,255,.35);">|</span>
|
||||
<a href="/terms.html" style="color:#9fc7d8;">服务条款</a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!-- FLOAT CONSULT - 电话 + 微信 + 在线咨询 -->
|
||||
@@ -596,6 +602,10 @@
|
||||
<label for="consultMsg">需求描述</label>
|
||||
<textarea id="consultMsg" name="message" rows="3" placeholder="请简要描述您的需求(如:需要购买联想电脑、办公设备采购等)"></textarea>
|
||||
</div>
|
||||
<div class="form-group" style="display:flex;align-items:flex-start;gap:8px;">
|
||||
<input type="checkbox" id="consultAgree" required style="width:16px;height:16px;margin-top:3px;flex:none;accent-color:#0e7490;">
|
||||
<label for="consultAgree" style="display:inline-block;font-size:13px;font-weight:400;line-height:1.6;color:#475569;margin:0;cursor:pointer;">我已阅读并同意<a href="/privacy.html" target="_blank" rel="noopener" style="color:#0e7490;">《隐私政策》</a>与<a href="/terms.html" target="_blank" rel="noopener" style="color:#0e7490;">《服务条款》</a></label>
|
||||
</div>
|
||||
<button type="submit" class="consult-submit">提交咨询</button>
|
||||
<p class="consult-tip">或直接拨打 <strong>0912-4223980</strong></p>
|
||||
</form>
|
||||
@@ -621,6 +631,11 @@ function closeConsultModal(e) {
|
||||
}
|
||||
function submitConsult(e) {
|
||||
e.preventDefault();
|
||||
const agree = document.getElementById('consultAgree');
|
||||
if (!agree || !agree.checked) {
|
||||
alert('请先阅读并勾选同意《隐私政策》与《服务条款》后再提交');
|
||||
return;
|
||||
}
|
||||
const btn = document.querySelector('.consult-submit');
|
||||
btn.disabled = true; btn.textContent = '提交中...';
|
||||
const name = document.getElementById('consultName').value.trim();
|
||||
|
||||
Reference in New Issue
Block a user