refactor: 多页面门店重构 — CPT + 页面模板 + README 更新
- CPT: service(服务项目) + case(案例作品集) + case_type 分类 - 页面: 关于门店/常见问题/预约联系 + archive/single 模板 - 首页精简为 hero+trust+service-teaser+case-teaser+cta - 主题激活自动迁移 Customizer 产品数据为 service 文章 - 预约表单: nonce+honeypot+rate-limit, URL 参数预填服务 - 联系页: 门店地址/电话/营业时间/百度地图导航 - Customizer 面板改为门店语境(13 板块) - header CTA 改为预约, helpers 更新为门店口径 - README.md 全面更新为门店多页面架构文档
This commit is contained in:
+950
-503
File diff suppressed because it is too large
Load Diff
@@ -37,21 +37,10 @@
|
||||
});
|
||||
}
|
||||
|
||||
function initRfqPrefill() {
|
||||
var field = document.querySelector('[data-rfq-product-field]');
|
||||
if (!field) return;
|
||||
document.querySelectorAll('[data-rfq-product]').forEach(function (trigger) {
|
||||
trigger.addEventListener('click', function () {
|
||||
field.value = trigger.dataset.rfqProduct || '';
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
$(function () {
|
||||
initStickyHeader();
|
||||
initAnimations();
|
||||
initVideoLightbox();
|
||||
initNavigation();
|
||||
initRfqPrefill();
|
||||
});
|
||||
})(jQuery);
|
||||
|
||||
Reference in New Issue
Block a user