|
@@ -46,18 +46,18 @@ class PublicController
|
|
$site_name = sys_config('site_name');
|
|
$site_name = sys_config('site_name');
|
|
$routine_index_page = sys_data('routine_index_page');
|
|
$routine_index_page = sys_data('routine_index_page');
|
|
$info['fastInfo'] = $routine_index_page[0]['fast_info'] ?? '';//sys_config('fast_info');//TODO 快速选择简介
|
|
$info['fastInfo'] = $routine_index_page[0]['fast_info'] ?? '';//sys_config('fast_info');//TODO 快速选择简介
|
|
- $info['bastInfo'] = $routine_index_page[0]['bast_info'] ?? '';//sys_config('bast_info');//TODO 精品推荐简介
|
|
|
|
|
|
+ $info['bastInfo'] = $routine_index_page[0]['bast_info'] ?? '';//sys_config('bast_info');//TODO 会员商品简介
|
|
$info['firstInfo'] = $routine_index_page[0]['first_info'] ?? '';//sys_config('first_info');//TODO 首发新品简介
|
|
$info['firstInfo'] = $routine_index_page[0]['first_info'] ?? '';//sys_config('first_info');//TODO 首发新品简介
|
|
$info['salesInfo'] = $routine_index_page[0]['sales_info'] ?? '';//sys_config('sales_info');//TODO 促销单品简介
|
|
$info['salesInfo'] = $routine_index_page[0]['sales_info'] ?? '';//sys_config('sales_info');//TODO 促销单品简介
|
|
$logoUrl = sys_config('routine_index_logo');//TODO 促销单品简介
|
|
$logoUrl = sys_config('routine_index_logo');//TODO 促销单品简介
|
|
if (strstr($logoUrl, 'http') === false && $logoUrl) $logoUrl = sys_config('site_url') . $logoUrl;
|
|
if (strstr($logoUrl, 'http') === false && $logoUrl) $logoUrl = sys_config('site_url') . $logoUrl;
|
|
$logoUrl = str_replace('\\', '/', $logoUrl);
|
|
$logoUrl = str_replace('\\', '/', $logoUrl);
|
|
$fastNumber = sys_config('fast_number', 0);//TODO 快速选择分类个数
|
|
$fastNumber = sys_config('fast_number', 0);//TODO 快速选择分类个数
|
|
- $bastNumber = sys_config('bast_number', 0);//TODO 精品推荐个数
|
|
|
|
|
|
+ $bastNumber = sys_config('bast_number', 0);//TODO 会员商品个数
|
|
$firstNumber = sys_config('first_number', 0);//TODO 首发新品个数
|
|
$firstNumber = sys_config('first_number', 0);//TODO 首发新品个数
|
|
$promotionNumber = sys_config('promotion_number', 0);//TODO 首发新品个数
|
|
$promotionNumber = sys_config('promotion_number', 0);//TODO 首发新品个数
|
|
$info['fastList'] = StoreCategory::byIndexList((int)$fastNumber, false);//TODO 快速选择分类个数
|
|
$info['fastList'] = StoreCategory::byIndexList((int)$fastNumber, false);//TODO 快速选择分类个数
|
|
- $info['bastList'] = StoreProduct::getBestProduct('id,image,store_name,cate_id,price,ot_price,IFNULL(sales,0) + IFNULL(ficti,0) as sales,unit_name', (int)$bastNumber, $request->uid(), false);//TODO 精品推荐个数
|
|
|
|
|
|
+ $info['bastList'] = StoreProduct::getBestProduct('id,image,store_name,cate_id,price,ot_price,IFNULL(sales,0) + IFNULL(ficti,0) as sales,unit_name', (int)$bastNumber, $request->uid(), false);//TODO 会员商品个数
|
|
//$info['firstList'] = StoreProduct::getNewProduct('id,image,store_name,cate_id,price,unit_name,IFNULL(sales,0) + IFNULL(ficti,0) as sales', (int)$firstNumber, $request->uid(), false);//TODO 首发新品个数
|
|
//$info['firstList'] = StoreProduct::getNewProduct('id,image,store_name,cate_id,price,unit_name,IFNULL(sales,0) + IFNULL(ficti,0) as sales', (int)$firstNumber, $request->uid(), false);//TODO 首发新品个数
|
|
$info['firstList'] = storeproduct::getnewproduct('id,image,store_name,cate_id,price,unit_name,IFNULL(sales,0) + IFNULL(ficti,0) as sales', 1000, $request->uid(), false);
|
|
$info['firstList'] = storeproduct::getnewproduct('id,image,store_name,cate_id,price,unit_name,IFNULL(sales,0) + IFNULL(ficti,0) as sales', 1000, $request->uid(), false);
|
|
$info['bastBanner'] = sys_data('routine_home_bast_banner') ?? [];//TODO 首页精品推荐图片
|
|
$info['bastBanner'] = sys_data('routine_home_bast_banner') ?? [];//TODO 首页精品推荐图片
|