Authored by Lynnic

Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop

1 .my-page { 1 .my-page {
  2 + color: #444;
2 background: #f0f0f0; 3 background: #f0f0f0;
3 4
  5 + a {
  6 + color: #444;
  7 + }
  8 +
4 .user-info { 9 .user-info {
5 display: block; 10 display: block;
6 position: relative; 11 position: relative;
@@ -136,7 +141,7 @@ @@ -136,7 +141,7 @@
136 } 141 }
137 142
138 .iconfont { 143 .iconfont {
139 - font-size: pxToRem(60px); 144 + font-size: pxToRem(40px);
140 } 145 }
141 } 146 }
142 } 147 }
@@ -58,6 +58,7 @@ @@ -58,6 +58,7 @@
58 float: right; 58 float: right;
59 margin-right: rem(30); 59 margin-right: rem(30);
60 color: #ccc; 60 color: #ccc;
  61 + font-size: rem(32);
61 } 62 }
62 63
63 &:last-child { 64 &:last-child {
@@ -87,6 +88,7 @@ @@ -87,6 +88,7 @@
87 .icon-yoho-enter { 88 .icon-yoho-enter {
88 color: #ccc; 89 color: #ccc;
89 float: right; 90 float: right;
  91 + font-size: rem(32);
90 } 92 }
91 93
92 .connect-item { 94 .connect-item {
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 <p class="good-tag sale-tag">SALE</p> 12 <p class="good-tag sale-tag">SALE</p>
13 {{/ is_discount}} 13 {{/ is_discount}}
14 {{# is_yohoood}} 14 {{# is_yohoood}}
15 - <div class="good-tag yohood-tag"></div> 15 + <p class="good-tag new-festival-tag">新品节</p>
16 {{/ is_yohoood}} 16 {{/ is_yohoood}}
17 {{# is_limited}} 17 {{# is_limited}}
18 <p class="good-tag limit-tag">限量商品</p> 18 <p class="good-tag limit-tag">限量商品</p>
@@ -51,18 +51,35 @@ class HomeController extends AbstractAction @@ -51,18 +51,35 @@ class HomeController extends AbstractAction
51 ); 51 );
52 $uid = $this->getUid(); 52 $uid = $this->getUid();
53 if ($uid) { 53 if ($uid) {
54 - // 优选新品数据  
55 - $channel = Helpers::getChannelByCookie();  
56 - 54 +
57 $data['isLogin'] = true; 55 $data['isLogin'] = true;
58 $data += UserModel::getUserProfileData($uid); 56 $data += UserModel::getUserProfileData($uid);
59 $data += UserModel::getInfoNumData($uid); 57 $data += UserModel::getInfoNumData($uid);
60 - $data['recommendForYou'] = UserModel::getPreferenceData($channel);  
61 } 58 }
62 59
63 $this->_view->display('index', $data); 60 $this->_view->display('index', $data);
64 } 61 }
65 62
  63 + /**
  64 + * 为您优选
  65 + */
  66 + public function preferenceAction()
  67 + {
  68 + $result = array();
  69 +
  70 + if ($this->isAjax()) {
  71 + // 优选新品数据
  72 + $channel = Helpers::getChannelByCookie();
  73 + $result = UserModel::getPreferenceData($channel);
  74 + }
  75 +
  76 + if (empty($result)) {
  77 + echo ' ';
  78 + } else {
  79 + $this->_view->display('recommend-content', $result);
  80 + }
  81 + }
  82 +
66 /** 83 /**
67 * 用户收藏的商品 84 * 用户收藏的商品
68 */ 85 */