...
|
...
|
@@ -191,8 +191,7 @@ class HelperSearch |
|
|
$val['default_images'] = Images::getImageUrl($val['default_images'],$imgSize[0],$imgSize[1]);
|
|
|
}
|
|
|
//搜索关键字高亮
|
|
|
$patten = "/".self::$params['query']."/i";
|
|
|
if (isset(self::$params['query']) && !empty(self::$params['query']) && preg_match($patten, $val['product_name'], $match)) {
|
|
|
if (isset(self::$params['query']) && !empty(self::$params['query']) && preg_match("/".self::$params['query']."/i", $val['product_name'], $match)) {
|
|
|
foreach ($match as $k => &$v) {
|
|
|
$replace[$k] = '<span style="color: #cc0000">'.$v.'</span>';
|
|
|
$v = '/'.$v.'/';
|
...
|
...
|
|