Authored by ccbikai

为您优选 模板

framework @ 75bbc3b0
1 -Subproject commit 4216b36673d37eecf297c5cc8b7634a32c09dc51 1 +Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
@@ -5,10 +5,10 @@ @@ -5,10 +5,10 @@
5 <div class="swiper-wrapper"> 5 <div class="swiper-wrapper">
6 {{#recommendList}} 6 {{#recommendList}}
7 <div class="swiper-slider"> 7 <div class="swiper-slider">
8 - <img class="img-box" src="http://temp.im/156x206"> 8 + <img class="img-box" src="{{img}}">
9 <div class="price"> 9 <div class="price">
10 - <span class="sale-price"199</span>  
11 - <span class="old-price"233</span> 10 + <span class="sale-price"{{salePrice}}</span>
  11 + <span class="old-price"{{oldPrice}}</span>
12 </div> 12 </div>
13 </div> 13 </div>
14 {{/recommendList}} 14 {{/recommendList}}
@@ -20,9 +20,11 @@ class HomeController extends AbstractAction @@ -20,9 +20,11 @@ class HomeController extends AbstractAction
20 */ 20 */
21 public function indexAction() 21 public function indexAction()
22 { 22 {
  23 + // 设置网站标题
  24 + $this->setTitle('个人中心');
  25 +
23 // $uid = $this->getUid(); 26 // $uid = $this->getUid();
24 $uid = 967016; 27 $uid = 967016;
25 -  
26 $data = \Index\UserModel::getUserProfileData($uid); 28 $data = \Index\UserModel::getUserProfileData($uid);
27 29
28 // print_r($data); 30 // print_r($data);
@@ -34,28 +36,55 @@ class HomeController extends AbstractAction @@ -34,28 +36,55 @@ class HomeController extends AbstractAction
34 $data['recommendForYou'] = array( 36 $data['recommendForYou'] = array(
35 'recommendList' => array( 37 'recommendList' => array(
36 array( 38 array(
37 - 'img' => '' 39 + 'img' => '',
  40 + 'salePrice' => '567.44',
  41 + 'oldPrice' => '876.44'
  42 + ),
  43 + array(
  44 + 'img' => '',
  45 + 'salePrice' => '567.44',
  46 + 'oldPrice' => ''
  47 + ),
  48 + array(
  49 + 'img' => '',
  50 + 'salePrice' => '567.44',
  51 + 'oldPrice' => '876.44'
38 ), 52 ),
39 array( 53 array(
40 - 'img' => '' 54 + 'img' => '',
  55 + 'salePrice' => '567.44',
  56 + 'oldPrice' => '876.44'
41 ), 57 ),
42 array( 58 array(
43 - 'img' => '' 59 + 'img' => '',
  60 + 'salePrice' => '567.44',
  61 + 'oldPrice' => '876.44'
44 ), 62 ),
45 array( 63 array(
46 - 'img' => '' 64 + 'img' => '',
  65 + 'salePrice' => '567.44',
  66 + 'oldPrice' => '876.44'
47 ), 67 ),
48 array( 68 array(
49 - 'img' => '' 69 + 'img' => '',
  70 + 'salePrice' => '567.44',
  71 + 'oldPrice' => '876.44'
  72 + ),
  73 + array(
  74 + 'img' => '',
  75 + 'salePrice' => '567.44',
  76 + 'oldPrice' => '876.44'
  77 + ),
  78 + array(
  79 + 'img' => '',
  80 + 'salePrice' => '567.44',
  81 + 'oldPrice' => '876.44'
50 ) 82 )
51 ) 83 )
52 ); 84 );
53 $data['myIndexPage'] = true; 85 $data['myIndexPage'] = true;
54 $data['pageFooter'] = true; 86 $data['pageFooter'] = true;
55 87
56 - // 设置网站标题  
57 - $this->setTitle('个人中心');  
58 -  
59 $this->_view->display('index', $data); 88 $this->_view->display('index', $data);
60 } 89 }
61 90