Authored by 周少峰

折扣排序

@@ -841,22 +841,23 @@ class HelperSearch @@ -841,22 +841,23 @@ class HelperSearch
841 $url = self::buildUrl(array_merge($params, array( 841 $url = self::buildUrl(array_merge($params, array(
842 'order' => 'p_d_asc' 842 'order' => 'p_d_asc'
843 ))); 843 )));
844 - $desc = false;  
845 - $active = true; 844 + $active = '';
  845 + $desc = true;
  846 +
846 } 847 }
847 else if (self::$params['order'] == 'p_d_asc') { 848 else if (self::$params['order'] == 'p_d_asc') {
848 $url = self::buildUrl(array_merge($params, array( 849 $url = self::buildUrl(array_merge($params, array(
849 'order' => 'p_d_desc' 850 'order' => 'p_d_desc'
850 ))); 851 )));
851 - $desc = false; 852 + $desc = true;
852 $active = true; 853 $active = true;
853 } 854 }
854 else { 855 else {
855 $url = self::buildUrl(array_merge($params, array( 856 $url = self::buildUrl(array_merge($params, array(
856 'order' => 'p_d_asc' 857 'order' => 'p_d_asc'
857 ))); 858 )));
  859 + $desc = false;
858 $active = true; 860 $active = true;
859 - $desc = true;  
860 } 861 }
861 $result = array( 862 $result = array(
862 'name' => '折扣', 863 'name' => '折扣',