Authored by ccbikai

为您优选 模板

framework @ 75bbc3b0
Subproject commit 4216b36673d37eecf297c5cc8b7634a32c09dc51
Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
... ...
... ... @@ -5,10 +5,10 @@
<div class="swiper-wrapper">
{{#recommendList}}
<div class="swiper-slider">
<img class="img-box" src="http://temp.im/156x206">
<img class="img-box" src="{{img}}">
<div class="price">
<span class="sale-price"199</span>
<span class="old-price"233</span>
<span class="sale-price"{{salePrice}}</span>
<span class="old-price"{{oldPrice}}</span>
</div>
</div>
{{/recommendList}}
... ...
... ... @@ -20,9 +20,11 @@ class HomeController extends AbstractAction
*/
public function indexAction()
{
// 设置网站标题
$this->setTitle('个人中心');
// $uid = $this->getUid();
$uid = 967016;
$data = \Index\UserModel::getUserProfileData($uid);
// print_r($data);
... ... @@ -34,28 +36,55 @@ class HomeController extends AbstractAction
$data['recommendForYou'] = array(
'recommendList' => array(
array(
'img' => ''
'img' => '',
'salePrice' => '567.44',
'oldPrice' => '876.44'
),
array(
'img' => '',
'salePrice' => '567.44',
'oldPrice' => ''
),
array(
'img' => '',
'salePrice' => '567.44',
'oldPrice' => '876.44'
),
array(
'img' => ''
'img' => '',
'salePrice' => '567.44',
'oldPrice' => '876.44'
),
array(
'img' => ''
'img' => '',
'salePrice' => '567.44',
'oldPrice' => '876.44'
),
array(
'img' => ''
'img' => '',
'salePrice' => '567.44',
'oldPrice' => '876.44'
),
array(
'img' => ''
'img' => '',
'salePrice' => '567.44',
'oldPrice' => '876.44'
),
array(
'img' => '',
'salePrice' => '567.44',
'oldPrice' => '876.44'
),
array(
'img' => '',
'salePrice' => '567.44',
'oldPrice' => '876.44'
)
)
);
$data['myIndexPage'] = true;
$data['pageFooter'] = true;
// 设置网站标题
$this->setTitle('个人中心');
$this->_view->display('index', $data);
}
... ...