|
@@ -398,8 +398,8 @@ class SearchModel |
|
@@ -398,8 +398,8 @@ class SearchModel |
398
|
}
|
398
|
}
|
399
|
$product['url'] = Helpers::getUrlBySkc($productVal['product_id'], $product['default_goods'], $productVal['cn_alphabet']);
|
399
|
$product['url'] = Helpers::getUrlBySkc($productVal['product_id'], $product['default_goods'], $productVal['cn_alphabet']);
|
400
|
$product['pic_url'] = Images::getImageUrl($product['default_image'], 150, 200);
|
400
|
$product['pic_url'] = Images::getImageUrl($product['default_image'], 150, 200);
|
401
|
- $product['market_price'] = $productVal['market_price'] != $productVal['sales_price'] ? $productVal['market_price'] : '';
|
|
|
402
|
- $product['price'] = $productVal['sales_price'];
|
401
|
+ $product['market_price'] = $productVal['market_price'] != $productVal['sales_price'] ? '¥'.$productVal['market_price'] : '';
|
|
|
402
|
+ $product['price'] = '¥'.$productVal['sales_price'];
|
403
|
$product['product_name'] = $productVal['product_name'];
|
403
|
$product['product_name'] = $productVal['product_name'];
|
404
|
unset($product['default_goods']);
|
404
|
unset($product['default_goods']);
|
405
|
unset($product['default_image']);
|
405
|
unset($product['default_image']);
|
|
@@ -408,6 +408,7 @@ class SearchModel |
|
@@ -408,6 +408,7 @@ class SearchModel |
408
|
}
|
408
|
}
|
409
|
}
|
409
|
}
|
410
|
ksort($result);
|
410
|
ksort($result);
|
|
|
411
|
+ $result = array_values($result);
|
411
|
return $result;
|
412
|
return $result;
|
412
|
}
|
413
|
}
|
413
|
|
414
|
|