获取开店分类配置项
This commit is contained in:
parent
72724da423
commit
7da55e8c1e
@ -8,6 +8,7 @@ use app\common\enum\ShopEnum;
|
||||
use app\common\model\community\CommunityArticle;
|
||||
use app\common\model\content\Article;
|
||||
use app\common\model\DevRegion;
|
||||
use app\common\model\distribution\DistributionStoreType;
|
||||
use app\common\model\goods\Goods;
|
||||
use app\common\enum\GoodsEnum;
|
||||
use app\common\model\goods\GoodsSubsidy;
|
||||
@ -805,7 +806,7 @@ class IndexLogic extends Logic
|
||||
foreach ($lists as $k => $v) {
|
||||
// 获取返补比例, subsidy_id为0的就传递一个ID为4的固定ID
|
||||
$lists[$k]['subsidy'] = (new GoodsSubsidy())->getSubsidyById($v['subsidy_id'] > 0 ? $v['subsidy_id'] : 4);
|
||||
$lists[$k]['subsidy_txt'] = '最高返' . $lists[$k]['subsidy']['subsidy'];
|
||||
$lists[$k]['subsidy_txt'] = '最高返' . $lists[$k]['subsidy']['subsid y'];
|
||||
}
|
||||
|
||||
return $lists;
|
||||
@ -865,6 +866,9 @@ class IndexLogic extends Logic
|
||||
$center_top_bg = UrlServer::getFileUrl($center_top_bg);
|
||||
}
|
||||
|
||||
// 开店类型
|
||||
$scheme_store_type = DistributionStoreType::where(['is_delete' => 0])->order('sort desc')->field('id, title, money')->select();
|
||||
|
||||
$config = [
|
||||
'shop_hide_goods' => ConfigServer::get('decoration', 'shop_hide_goods', 0), //商品详细是否显示店铺
|
||||
'shop_street_hide' => ConfigServer::get('decoration', 'shop_street_hide', 0), //是否显示店铺街
|
||||
@ -934,6 +938,8 @@ class IndexLogic extends Logic
|
||||
'is_open_nearby' => ConfigServer::get('map', 'is_open_nearby',0),
|
||||
// 种草社区,默认开启
|
||||
'is_open_community' => ConfigServer::get('community', 'status', 1),
|
||||
// 开店类型
|
||||
'scheme_store_type' => $scheme_store_type
|
||||
];
|
||||
return $config;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user