会员等级插件优化
parent
41497d9e88
commit
10518f7a28
|
|
@ -284,11 +284,11 @@
|
||||||
<!-- 首页楼层商品内部底部钩子 -->
|
<!-- 首页楼层商品内部底部钩子 -->
|
||||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
|
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
|
||||||
<div class="plugins-tag">
|
<div class="plugins-tag">
|
||||||
<span>plugins_view_search_goods_inside_bottom</span>
|
<span>plugins_view_home_goods_inside_bottom</span>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{php}}
|
{{php}}
|
||||||
$hook_name = 'plugins_view_search_goods_inside_bottom';
|
$hook_name = 'plugins_view_home_goods_inside_bottom';
|
||||||
$hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'floor_id'=>$key+1, 'goods_id'=>$goods['id'], 'goods'=>$goods]);
|
$hook_data = Hook::listen($hook_name, ['hook_name'=>$hook_name, 'is_backend'=>false, 'floor_id'=>$key+1, 'goods_id'=>$goods['id'], 'goods'=>$goods]);
|
||||||
if(!empty($hook_data) && is_array($hook_data))
|
if(!empty($hook_data) && is_array($hook_data))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,7 @@ class GoodsService
|
||||||
foreach($goods_category as &$v)
|
foreach($goods_category as &$v)
|
||||||
{
|
{
|
||||||
$category_ids = self::GoodsCategoryItemsIds([$v['id']], 1);
|
$category_ids = self::GoodsCategoryItemsIds([$v['id']], 1);
|
||||||
$goods = self::CategoryGoodsList(['where'=>['gci.category_id'=>$category_ids, 'g.is_home_recommended'=>1, 'g.is_shelves'=>1], 'm'=>0, 'n'=>8, 'field'=>'g.id,g.title,g.title_color,g.images,g.home_recommended_images,g.original_price,g.price,g.min_price,g.max_price,g.inventory,g.buy_min_number,g.buy_max_number']);
|
$goods = self::CategoryGoodsList(['where'=>['gci.category_id'=>$category_ids, 'g.is_home_recommended'=>1, 'g.is_shelves'=>1], 'm'=>0, 'n'=>8, 'field'=>'g.*']);
|
||||||
$v['goods'] = $goods['data'];
|
$v['goods'] = $goods['data'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,14 @@ return array (
|
||||||
array (
|
array (
|
||||||
0 => 'app\\plugins\\membershiplevel\\Hook',
|
0 => 'app\\plugins\\membershiplevel\\Hook',
|
||||||
),
|
),
|
||||||
|
'plugins_view_home_goods_inside_bottom' =>
|
||||||
|
array (
|
||||||
|
0 => 'app\\plugins\\membershiplevel\\Hook',
|
||||||
|
),
|
||||||
|
'plugins_view_search_goods_inside_bottom' =>
|
||||||
|
array (
|
||||||
|
0 => 'app\\plugins\\membershiplevel\\Hook',
|
||||||
|
),
|
||||||
'plugins_service_goods_spec_type' =>
|
'plugins_service_goods_spec_type' =>
|
||||||
array (
|
array (
|
||||||
0 => 'app\\plugins\\membershiplevel\\Hook',
|
0 => 'app\\plugins\\membershiplevel\\Hook',
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
// 开发模式
|
// 开发模式
|
||||||
'is_develop' => true,
|
'is_develop' => false,
|
||||||
|
|
||||||
// 默认编码
|
// 默认编码
|
||||||
'default_charset' => 'utf-8',
|
'default_charset' => 'utf-8',
|
||||||
|
|
|
||||||
|
|
@ -177,11 +177,12 @@ ul.progress li.current .title {
|
||||||
.business-item ul { padding: 10px 3px 5px 5px; overflow: hidden; }
|
.business-item ul { padding: 10px 3px 5px 5px; overflow: hidden; }
|
||||||
.business-item ul li { border:1px solid transparent ;overflow: hidden; float: left; cursor: pointer; padding: 5px; border: 1px solid #eee; margin: 0 10px 10px 0; }
|
.business-item ul li { border:1px solid transparent ;overflow: hidden; float: left; cursor: pointer; padding: 5px; border: 1px solid #eee; margin: 0 10px 10px 0; }
|
||||||
.business-item ul li img { width: 36px; height: 36px; }
|
.business-item ul li img { width: 36px; height: 36px; }
|
||||||
.business-item ul li.selected { border-color: #d2364c ; position: relative; }
|
.business-item ul li.selected { border-color: #d2364c ; position: relative; box-shadow: 0px 0 0px 1px #d2364c; }
|
||||||
.business-item ul li.selected i.icon-active { position: absolute; width: 10px; height: 10px; font-size: 0; line-height: 0; right: 0px; bottom: 0px; background: url(../images/sys-item-selected.gif) no-repeat right bottom; }
|
.business-item ul li.selected i.icon-active { position: absolute; width: 10px; height: 10px; font-size: 0; line-height: 0; right: 0px; bottom: 0px; background: url(../images/sys-item-selected.gif) no-repeat right bottom; }
|
||||||
@media only screen and (min-width:640px) {
|
@media only screen and (min-width:640px) {
|
||||||
.business-item ul li {width:calc(33% - 5px); }
|
.business-item ul li {width:calc(33% - 5px); }
|
||||||
.business-item ul li:nth-child(3n) { margin-right: 0; }
|
.business-item ul li:nth-child(3n) { margin-right: 0; }
|
||||||
|
.business-item ul li:hover { border: 1px solid #d2364c; box-shadow: 0px 0 0px 1px #d2364c; }
|
||||||
}
|
}
|
||||||
@media only screen and (max-width:640px) {
|
@media only screen and (max-width:640px) {
|
||||||
.business-item ul li { width: calc(50% - 5px); }
|
.business-item ul li { width: calc(50% - 5px); }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue