Showing
1 changed file
with
16 additions
and
1 deletions
@@ -71,7 +71,6 @@ class NewsaleController extends AbstractAction | @@ -71,7 +71,6 @@ class NewsaleController extends AbstractAction | ||
71 | 'gender' => $this->getCookie('_Channel', 'boys'), | 71 | 'gender' => $this->getCookie('_Channel', 'boys'), |
72 | 'price' => 0, | 72 | 'price' => 0, |
73 | 'size' => 0, | 73 | 'size' => 0, |
74 | - 'dayLimit' => 1, | ||
75 | 'discount' => '0.1,0.9' | 74 | 'discount' => '0.1,0.9' |
76 | ); | 75 | ); |
77 | 76 | ||
@@ -112,6 +111,22 @@ class NewsaleController extends AbstractAction | @@ -112,6 +111,22 @@ class NewsaleController extends AbstractAction | ||
112 | $gender = '1,2,3'; | 111 | $gender = '1,2,3'; |
113 | } | 112 | } |
114 | 113 | ||
114 | + // 转换排序方式 | ||
115 | + $order = $this->get('order', null); | ||
116 | + $type = $this->get('type', ''); | ||
117 | + switch ($type) { | ||
118 | + case 'price': | ||
119 | + $order = ($order == 0) ? 's_p_desc' : 's_p_asc'; | ||
120 | + break; | ||
121 | + case 'discount': | ||
122 | + $order = ($order == 0) ? 'p_d_desc' : 'p_d_asc'; | ||
123 | + break; | ||
124 | + case 'newest': | ||
125 | + default: | ||
126 | + $order = ($order == 0) ? 's_t_desc' : 's_t_asc'; | ||
127 | + break; | ||
128 | + } | ||
129 | + | ||
115 | // 转换频道 | 130 | // 转换频道 |
116 | $this->channelTrans($channel); | 131 | $this->channelTrans($channel); |
117 | 132 |
-
Please register or login to post a comment