作者 王智

xiugai

@@ -68,42 +68,42 @@ class FourBaogao extends Model @@ -68,42 +68,42 @@ class FourBaogao extends Model
68 return isset($list[$value]) ? $list[$value] : ''; 68 return isset($list[$value]) ? $list[$value] : '';
69 } 69 }
70 70
71 -// public function getSportTypeTextAttr($value, $data)  
72 -// {  
73 -// $value = $value ? $value : (isset($data['sport_type']) ? $data['sport_type'] : '');  
74 -// $list = $this->getTypeList();  
75 -// return isset($list[$value]) ? $list[$value] : '';  
76 -// }  
77 -// public function getEatTypeTextAttr($value, $data)  
78 -// {  
79 -// $value = $value ? $value : (isset($data['eat_type']) ? $data['eat_type'] : '');  
80 -// $list = $this->getTypeList();  
81 -// return isset($list[$value]) ? $list[$value] : '';  
82 -// }  
83 -// public function getBodyTypeTextAttr($value, $data)  
84 -// {  
85 -// $value = $value ? $value : (isset($data['bdoy_type']) ? $data['bdoy_type'] : '');  
86 -// $list = $this->getTypeList();  
87 -// return isset($list[$value]) ? $list[$value] : '';  
88 -// }  
89 -// public function getSeasonTypeTextAttr($value, $data)  
90 -// {  
91 -// $value = $value ? $value : (isset($data['season_type']) ? $data['season_type'] : '');  
92 -// $list = $this->getTypeList();  
93 -// return isset($list[$value]) ? $list[$value] : '';  
94 -// }  
95 -// public function getWorkTypeTextAttr($value, $data)  
96 -// {  
97 -// $value = $value ? $value : (isset($data['work_type']) ? $data['work_type'] : '');  
98 -// $list = $this->getTypeList();  
99 -// return isset($list[$value]) ? $list[$value] : '';  
100 -// }  
101 -// public function getFaceTypeTextAttr($value, $data)  
102 -// {  
103 -// $value = $value ? $value : (isset($data['face_type']) ? $data['face_type'] : '');  
104 -// $list = $this->getTypeList();  
105 -// return isset($list[$value]) ? $list[$value] : '';  
106 -// } 71 + public function getSportTypeTextAttr($value, $data)
  72 + {
  73 + $value = $value ? $value : (isset($data['sport_type']) ? $data['sport_type'] : '');
  74 + $list = $this->getSportTypeList();
  75 + return isset($list[$value]) ? $list[$value] : '';
  76 + }
  77 + public function getEatTypeTextAttr($value, $data)
  78 + {
  79 + $value = $value ? $value : (isset($data['eat_type']) ? $data['eat_type'] : '');
  80 + $list = $this->getEatTypeList();
  81 + return isset($list[$value]) ? $list[$value] : '';
  82 + }
  83 + public function getBodyTypeTextAttr($value, $data)
  84 + {
  85 + $value = $value ? $value : (isset($data['bdoy_type']) ? $data['bdoy_type'] : '');
  86 + $list = $this->getBodyTypeList();
  87 + return isset($list[$value]) ? $list[$value] : '';
  88 + }
  89 + public function getSeasonTypeTextAttr($value, $data)
  90 + {
  91 + $value = $value ? $value : (isset($data['season_type']) ? $data['season_type'] : '');
  92 + $list = $this->getSeasonTypeList();
  93 + return isset($list[$value]) ? $list[$value] : '';
  94 + }
  95 + public function getWorkTypeTextAttr($value, $data)
  96 + {
  97 + $value = $value ? $value : (isset($data['work_type']) ? $data['work_type'] : '');
  98 + $list = $this->getWorkTypeList();
  99 + return isset($list[$value]) ? $list[$value] : '';
  100 + }
  101 + public function getFaceTypeTextAttr($value, $data)
  102 + {
  103 + $value = $value ? $value : (isset($data['face_type']) ? $data['face_type'] : '');
  104 + $list = $this->getFaceTypeList();
  105 + return isset($list[$value]) ? $list[$value] : '';
  106 + }
107 107
108 108
109 109