|
@@ -57,14 +57,21 @@ class BodyTypeConfig extends Backend
|
|
|
parent::_initialize();
|
|
|
$this->model = new BodyTypeConfigModel;
|
|
|
|
|
|
- // 分类选项
|
|
|
+ // 分类选项 - 根据性别区分
|
|
|
$categories = [
|
|
|
+ // 通用分类(男女都有)
|
|
|
'shoulder' => '肩型',
|
|
|
+ 'leg' => '腿型',
|
|
|
+ 'back' => '背型',
|
|
|
+
|
|
|
+ // 男性特有分类
|
|
|
'chest' => '胸型(男)',
|
|
|
+
|
|
|
+ // 女性特有分类
|
|
|
'bust' => '胸型(女)',
|
|
|
'waist' => '腰型',
|
|
|
'hip' => '臀型',
|
|
|
- 'leg' => '腿型'
|
|
|
+ 'abdomen' => '腹型'
|
|
|
];
|
|
|
|
|
|
$this->view->assign('categories', $categories);
|
|
@@ -370,36 +377,49 @@ class BodyTypeConfig extends Backend
|
|
|
private function importInitialData()
|
|
|
{
|
|
|
$data = [
|
|
|
- // 肩型
|
|
|
- ['type_category' => 'shoulder', 'type_name' => '平肩', 'gender' => 0, 'description' => '肩部线条平直,无明显斜度', 'sort' => 1],
|
|
|
- ['type_category' => 'shoulder', 'type_name' => '溜肩', 'gender' => 0, 'description' => '肩部向下倾斜,线条柔和', 'sort' => 2],
|
|
|
- ['type_category' => 'shoulder', 'type_name' => '削肩', 'gender' => 0, 'description' => '肩部窄小,线条削瘦', 'sort' => 3],
|
|
|
+ // 肩型(通用)
|
|
|
+ ['type_category' => 'shoulder', 'type_name' => '平肩', 'gender' => 0, 'description' => '稳稳挂住单肩包', 'sort' => 1],
|
|
|
+ ['type_category' => 'shoulder', 'type_name' => '常规', 'gender' => 0, 'description' => '偶尔挂住单肩包', 'sort' => 2],
|
|
|
+ ['type_category' => 'shoulder', 'type_name' => '溜肩', 'gender' => 0, 'description' => '完全挂不住单肩包', 'sort' => 3],
|
|
|
|
|
|
// 男性胸型
|
|
|
- ['type_category' => 'chest', 'type_name' => '平胸', 'gender' => 1, 'description' => '胸部平坦,肌肉不明显', 'sort' => 1],
|
|
|
- ['type_category' => 'chest', 'type_name' => '肌肉', 'gender' => 1, 'description' => '胸肌发达,线条明显', 'sort' => 2],
|
|
|
- ['type_category' => 'chest', 'type_name' => '圆胸', 'gender' => 1, 'description' => '胸部丰满圆润', 'sort' => 3],
|
|
|
+ ['type_category' => 'chest', 'type_name' => '平坦', 'gender' => 1, 'description' => '少量肌肉或脂肪', 'sort' => 1],
|
|
|
+ ['type_category' => 'chest', 'type_name' => '肌肉', 'gender' => 1, 'description' => '胸部有明显肌肉轮廓', 'sort' => 2],
|
|
|
+ ['type_category' => 'chest', 'type_name' => '肥大', 'gender' => 1, 'description' => '有明显脂肪堆积', 'sort' => 3],
|
|
|
|
|
|
// 女性胸型
|
|
|
- ['type_category' => 'bust', 'type_name' => '小巧', 'gender' => 2, 'description' => '胸部小巧精致', 'sort' => 1],
|
|
|
- ['type_category' => 'bust', 'type_name' => '正常', 'gender' => 2, 'description' => '胸部大小适中', 'sort' => 2],
|
|
|
- ['type_category' => 'bust', 'type_name' => '丰满', 'gender' => 2, 'description' => '胸部丰满饱满', 'sort' => 3],
|
|
|
- ['type_category' => 'bust', 'type_name' => '胖', 'gender' => 2, 'description' => '胸部较大', 'sort' => 4],
|
|
|
-
|
|
|
- // 腰型
|
|
|
- ['type_category' => 'waist', 'type_name' => '细腰', 'gender' => 0, 'description' => '腰部纤细,曲线明显', 'sort' => 1],
|
|
|
- ['type_category' => 'waist', 'type_name' => '正常', 'gender' => 0, 'description' => '腰部比例正常', 'sort' => 2],
|
|
|
- ['type_category' => 'waist', 'type_name' => '圆腰', 'gender' => 0, 'description' => '腰部较粗,线条圆润', 'sort' => 3],
|
|
|
-
|
|
|
- // 臀型
|
|
|
- ['type_category' => 'hip', 'type_name' => '平臀', 'gender' => 0, 'description' => '臀部较平,缺乏曲线', 'sort' => 1],
|
|
|
- ['type_category' => 'hip', 'type_name' => '正常', 'gender' => 0, 'description' => '臀部曲线正常', 'sort' => 2],
|
|
|
- ['type_category' => 'hip', 'type_name' => '翘臀', 'gender' => 0, 'description' => '臀部翘挺,曲线优美', 'sort' => 3],
|
|
|
-
|
|
|
- // 腿型
|
|
|
- ['type_category' => 'leg', 'type_name' => '直腿', 'gender' => 0, 'description' => '腿部笔直,线条流畅', 'sort' => 1],
|
|
|
- ['type_category' => 'leg', 'type_name' => 'O型腿', 'gender' => 0, 'description' => '膝盖外弯,呈O型', 'sort' => 2],
|
|
|
- ['type_category' => 'leg', 'type_name' => 'X型腿', 'gender' => 0, 'description' => '膝盖内弯,呈X型', 'sort' => 3],
|
|
|
+ ['type_category' => 'bust', 'type_name' => '平坦', 'gender' => 2, 'description' => '日常穿A以下的内衣', 'sort' => 1],
|
|
|
+ ['type_category' => 'bust', 'type_name' => '小巧', 'gender' => 2, 'description' => '日常穿A或B的内衣', 'sort' => 2],
|
|
|
+ ['type_category' => 'bust', 'type_name' => '标准', 'gender' => 2, 'description' => '日常穿B或C的内衣', 'sort' => 3],
|
|
|
+ ['type_category' => 'bust', 'type_name' => '饱满', 'gender' => 2, 'description' => '日常穿C或D的内衣', 'sort' => 4],
|
|
|
+ ['type_category' => 'bust', 'type_name' => '丰满', 'gender' => 2, 'description' => '日常穿D以上的内衣', 'sort' => 5],
|
|
|
+
|
|
|
+ // 背型(通用)
|
|
|
+ ['type_category' => 'back', 'type_name' => '挺腰', 'gender' => 0, 'description' => '平时走路昂首挺胸', 'sort' => 1],
|
|
|
+ ['type_category' => 'back', 'type_name' => '直背', 'gender' => 0, 'description' => '正常体态或微驼', 'sort' => 2],
|
|
|
+ ['type_category' => 'back', 'type_name' => '驼背', 'gender' => 0, 'description' => '背部有明显驼背', 'sort' => 3],
|
|
|
+
|
|
|
+ // 腿型(通用)
|
|
|
+ ['type_category' => 'leg', 'type_name' => '粗壮', 'gender' => 0, 'description' => '腿部肌肉明显突出', 'sort' => 1],
|
|
|
+ ['type_category' => 'leg', 'type_name' => '正常', 'gender' => 0, 'description' => '腿部肌肉整体匀称', 'sort' => 2],
|
|
|
+ ['type_category' => 'leg', 'type_name' => '纤细', 'gender' => 0, 'description' => '腿部较为纤细', 'sort' => 3],
|
|
|
+
|
|
|
+ // 女性腰型
|
|
|
+ ['type_category' => 'waist', 'type_name' => '纤细', 'gender' => 2, 'description' => '小腹平坦腰线清晰', 'sort' => 1],
|
|
|
+ ['type_category' => 'waist', 'type_name' => '正常', 'gender' => 2, 'description' => '小腹无明显脂肪堆积', 'sort' => 2],
|
|
|
+ ['type_category' => 'waist', 'type_name' => '微胖', 'gender' => 2, 'description' => '腹部有小肚腩', 'sort' => 3],
|
|
|
+ ['type_category' => 'waist', 'type_name' => '胖', 'gender' => 2, 'description' => '腹部脂肪堆积明显', 'sort' => 4],
|
|
|
+
|
|
|
+ // 女性臀型
|
|
|
+ ['type_category' => 'hip', 'type_name' => '平臀', 'gender' => 2, 'description' => '背部无空隙放入手掌', 'sort' => 1],
|
|
|
+ ['type_category' => 'hip', 'type_name' => '正常', 'gender' => 2, 'description' => '背部空隙可放下手掌', 'sort' => 2],
|
|
|
+ ['type_category' => 'hip', 'type_name' => '翘臀', 'gender' => 2, 'description' => '背部空隙可放入拳头', 'sort' => 3],
|
|
|
+
|
|
|
+ // 女性腹型
|
|
|
+ ['type_category' => 'abdomen', 'type_name' => '纤细', 'gender' => 2, 'description' => '小腹平坦腰线清晰', 'sort' => 1],
|
|
|
+ ['type_category' => 'abdomen', 'type_name' => '正常', 'gender' => 2, 'description' => '小腹无明显脂肪堆积', 'sort' => 2],
|
|
|
+ ['type_category' => 'abdomen', 'type_name' => '微胖', 'gender' => 2, 'description' => '腹部有小肚腩', 'sort' => 3],
|
|
|
+ ['type_category' => 'abdomen', 'type_name' => '胖', 'gender' => 2, 'description' => '腹部脂肪堆积明显', 'sort' => 4],
|
|
|
];
|
|
|
|
|
|
foreach ($data as $item) {
|