Authored by biao

update for channel page. code review by HongFei

... ... @@ -2,6 +2,16 @@
width: 100%;
overflow: hidden;
margin: 0 auto;
#yohood {
background-color: transparent;
background-image: image-url('yohood.png');
background-size: 40%;
background-repeat: no-repeat;
background-position-x: 26%;
background-position-y: 36%;
border: none;
border-bottom: 4px solid #fff;
}
.index-header {
box-sizing: border-box;
padding: 0 20rem / $pxConvertRem;
... ...
... ... @@ -13,14 +13,14 @@ use LibModels\Wap\Index\IndexData;
*
* @author Administrator
*/
class IndexModel
class IndexModel
{
public function getChannel(){
public static function getChannel(){
$result = array();
$result['showYohood'] = true;
$data = IndexData::channelData();
$channelList = array();
if($data['code'] == 200 && isset($data['data']['list'])){
foreach($data['data']['list'] as $key => $value){
... ... @@ -54,8 +54,8 @@ class IndexModel
}
$result['channelList'] = $channelList;
}
return $result;
}
}
... ...