{include file="header" /} {php} $feedbackContactPhone = ''; $feedbackContactTel = ''; foreach (['cooperation_phone', 'contact_phone', 'service_phone', 'phone', 'tel'] as $phoneConfigKey) { $phoneConfigValue = trim((string)config('site.' . $phoneConfigKey)); if ($phoneConfigValue === '') { continue; } $phoneDigits = ''; $phoneAllowed = true; $phoneTel = ''; foreach (preg_split('//u', $phoneConfigValue, -1, PREG_SPLIT_NO_EMPTY) as $phoneChar) { if (ctype_digit($phoneChar)) { $phoneDigits .= $phoneChar; $phoneTel .= $phoneChar; continue; } if ($phoneChar === '+') { $phoneTel .= $phoneChar; continue; } if (!in_array($phoneChar, ['(', ')', '-', ' '], true)) { $phoneAllowed = false; break; } } if ($phoneAllowed && strlen($phoneDigits) >= 6 && mb_strlen($phoneConfigValue, 'UTF-8') <= 40) { $feedbackContactPhone = $phoneConfigValue; $feedbackContactTel = $phoneTel; break; } } {/php} {$title|default=cms_t('feedback_message_title','意见反馈')} {$title|default=cms_t('feedback_message_title','意见反馈')} {if getCategory($catid,'description')}{:getCategory($catid,'description')}{elseif !empty($category.description) /}{$category.description}{else /}{:cms_t('feedback_message_intro','欢迎提出您的意见、建议或问题反馈,我们会认真阅读并持续优化服务体验。')}{/if} {:cms_t('feedback_message_form_title','填写反馈')} {:cms_t('feedback_message_form_desc','请留下您的联系方式和反馈内容,便于我们进一步沟通处理。')} {:cms_t('feedback_message_type_placeholder','反馈类型 *')} {:cms_t('feedback_message_type_suggestion','意见建议')} {:cms_t('feedback_message_type_problem','问题反馈')} {:cms_t('feedback_message_type_complaint','投诉建议')} {:cms_t('feedback_message_type_other','其他')} 0/500 {:cms_t('cooperation_captcha_label','验证码 *')} {:cms_t('cooperation_privacy_prefix','已阅读并同意')}{:cms_t('cooperation_privacy_link','《隐私政策》')} {:cms_t('cooperation_submit','提交信息')} {if condition="$feedbackContactPhone neq ''"} {$feedbackContactPhone} {/if} {if condition="!empty($content)"} {$content|raw} {/if} {include file="footer-links" /} {include file="footer" /}
{if getCategory($catid,'description')}{:getCategory($catid,'description')}{elseif !empty($category.description) /}{$category.description}{else /}{:cms_t('feedback_message_intro','欢迎提出您的意见、建议或问题反馈,我们会认真阅读并持续优化服务体验。')}{/if}
{:cms_t('feedback_message_form_desc','请留下您的联系方式和反馈内容,便于我们进一步沟通处理。')}