{if $profile.profile_photo}
{else}
{/if}
{$profile.profile_name}
{$profile.user.username|default='未知用户'}
{$profile.relation|default='未设置'}
创建于 {$profile.createtime|date='Y-m-d H:i'}
基础信息
性别
{$profile.gender_text}
年龄
{$profile.age|default='未设置'} {if $profile.age}岁{/if}
身高
{$profile.height|default='未测量'} {if $profile.height}cm{/if}
体重
{$profile.weight|default='未测量'} {if $profile.weight}kg{/if}
BMI指数
{if $profile.height && $profile.weight} {php} $bmi = round($profile['weight'] / pow($profile['height']/100, 2), 1); $bmiLevel = ''; $bmiClass = ''; if ($bmi < 18.5) { $bmiLevel = '偏瘦'; $bmiClass = 'bmi-thin'; } elseif ($bmi < 24) { $bmiLevel = '正常'; $bmiClass = 'bmi-normal'; } elseif ($bmi < 28) { $bmiLevel = '超重'; $bmiClass = 'bmi-overweight'; } else { $bmiLevel = '肥胖'; $bmiClass = 'bmi-obese'; } echo $bmi; {/php}
{$bmiLevel}
{else} 未计算 {/if}
档案类型
{$profile.is_own_text}
健康评估
{if $profile.ai_report}
{$profile.ai_report.health_score}
{$profile.ai_report.health_level_text}
身体年龄: {$profile.ai_report.body_age}岁
更新时间: {$profile.ai_report.generated_time_text}
{else}
暂无AI分析报告
生成报告
{/if}
身体照片
{if $profile.body_photos_array.front}
{else}
暂无正面照
{/if}
正面照
{if $profile.body_photos_array.side}
{else}
暂无侧面照
{/if}
侧面照
{if $profile.body_photos_array.back}
{else}
暂无背面照
{/if}
背面照
{if $profile.measurements}
最新测量数据
测量日期: {$profile.measurements.measurement_date_text}
测量部位
数值(cm)
测量部位
数值(cm)
{php} $measurements = $profile['measurements']; $fields = [ 'chest' => '胸围', 'waist' => '腰围', 'hip' => '臀围', 'thigh' => '大腿围', 'calf' => '小腿围', 'upper_arm' => '上臂围', 'shoulder_width' => '肩宽', 'neck' => '颈围' ]; if ($profile['gender'] == 2) { $fields['bust'] = '胸围/乳围'; $fields['underbust'] = '下胸围'; } $fieldsArray = array_chunk($fields, 2, true); {/php} {foreach $fieldsArray as $rowFields}
{foreach $rowFields as $field => $label}
{$label}
{$measurements[$field]|default='-'}
{/foreach} {if count($rowFields) == 1}
{/if}
{/foreach}
{/if} {if $profile.body_types}
体型选择
{foreach $profile.body_types as $category => $bodyType}
{if $bodyType.type_image}
{else}
{/if}
{php} $categoryNames = [ 'shoulder' => '肩型', 'chest' => '胸型', 'bust' => '胸型', 'waist' => '腰型', 'hip' => '臀型', 'leg' => '腿型' ]; echo $categoryNames[$category] ?? $category; {/php}
{$bodyType.type_name}
{/foreach}
{/if}
编辑档案
测量数据
AI测量
体型选择
{if $profile.ai_report}
查看报告
{else}
生成报告
{/if}