Authored by whb

修改搜索

@@ -235,6 +235,15 @@ class HomeModel @@ -235,6 +235,15 @@ class HomeModel
235 if ($val['price'] == false) { 235 if ($val['price'] == false) {
236 $val['price'] = $val['salePrice']; 236 $val['price'] = $val['salePrice'];
237 } 237 }
  238 + //TODO 字段要调整
  239 + $val['tags']['isFew'] = $val['is_soon_sold_out'];
  240 + $val['tags']['isLimit'] = $val['tags']['is_discount'];
  241 + $val['tags']['is_discount'] = $val['is_soon_sold_out'];
  242 + $val['tags']['isNew'] = $val['tags']['is_new'];
  243 + $val['tags']['isYearMidPromotion'] = $val['tags']['midYear'];
  244 + $val['tags']['isYearEndPromotion'] = $val['tags']['yearEnd'];
  245 + unset($val['tags']['is_advance'], $val['tags']['is_discount'], $val['tags']['is_limited'], $val['tags']['is_new'],
  246 + $val['tags']['is_yohood'], $val['tags']['midYear'], $val['tags']['yearEnd']);
238 if (! empty($val)) { 247 if (! empty($val)) {
239 $result[] = $val; 248 $result[] = $val;
240 } 249 }
@@ -154,11 +154,11 @@ class RegisterController extends WebAction @@ -154,11 +154,11 @@ class RegisterController extends WebAction
154 */ 154 */
155 public function mobileregisterAction() 155 public function mobileregisterAction()
156 { 156 {
157 - $mobile = trim($this->post('phoneNum'), ' ');//mobile  
158 - $area = intval(trim($this->post('region'), ' '));//area 157 + $mobile = trim($this->post('mobile'), ' ');//mobile
  158 + $area = intval(trim($this->post('area'), ' '));//area
159 $verifyCode = strtolower(trim($this->post('captcha'),' '));//captcha 159 $verifyCode = strtolower(trim($this->post('captcha'),' '));//captcha
160 - $code = trim($this->post('msgCaptcha'),'');//code  
161 - $password = $this->post('pwd'); 160 + $code = trim($this->post('code'),'');//code
  161 + $password = $this->post('password');
162 $url = '/passport/register/index'; 162 $url = '/passport/register/index';
163 $refer = $this->getCookie('refer'); 163 $refer = $this->getCookie('refer');
164 $data = array('code' => 400, 'message' => '', 'data' => ''); 164 $data = array('code' => 400, 'message' => '', 'data' => '');