|
|
@@ -15,12 +15,15 @@ class ItemClass extends BaseClass
|
|
|
|
|
|
public static $baseFile = '\bizGhs\item\models\Item';
|
|
|
|
|
|
- public static function getSimpleList($where)
|
|
|
+ public static function getSimpleList($where, $num)
|
|
|
{
|
|
|
$data = self::getList('id,name,price,stock,frontHide,cover', $where);
|
|
|
if (isset($data['list']) && !empty($data['list'])) {
|
|
|
foreach ($data['list'] as $key => $val) {
|
|
|
$data['list'][$key]['bigCount'] = '';
|
|
|
+ if ($num > 0) {
|
|
|
+ $data['list'][$key]['bigCount'] = $num;
|
|
|
+ }
|
|
|
$data['list'][$key]['smallCount'] = '';
|
|
|
$shortCover = $val['cover'] ?? '';
|
|
|
$smallCover = imgUtil::groupImg($shortCover) . "?x-oss-process=image/resize,m_fill,h_130,w_130";
|