轮播优化
parent
43ffaa4c17
commit
93263707c7
|
|
@ -49,7 +49,8 @@ class Index extends Common
|
|||
public function Index()
|
||||
{
|
||||
// 首页轮播
|
||||
$this->assign('banner_list', BannerService::Banner());
|
||||
$banner = BannerService::Banner();
|
||||
$this->assign('banner_list', $banner);
|
||||
|
||||
// H5导航
|
||||
$this->assign('navigation', AppHomeNavService::AppHomeNav());
|
||||
|
|
@ -71,6 +72,13 @@ class Index extends Common
|
|||
$user_order_status = OrderService::OrderStatusStepTotal(['user_type'=>'user', 'user'=>$this->user, 'is_comments'=>1]);
|
||||
$this->assign('user_order_status', $user_order_status['data']);
|
||||
|
||||
// 加载百度地图api
|
||||
// 存在地图事件则载入
|
||||
if(in_array(3, array_column($banner, 'event_type')))
|
||||
{
|
||||
$this->assign('is_load_baidu_map_api', 1);
|
||||
}
|
||||
|
||||
// 钩子
|
||||
$this->PluginsHook();
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,19 @@
|
|||
{{foreach $banner_list as $banner}}
|
||||
{{if !empty($banner['images_url'])}}
|
||||
<li {{if !empty($banner['bg_color'])}}style="background: {{$banner.bg_color}};"{{/if}} title="{{$banner.name}}">
|
||||
<a href="{{if isset($banner['event_type']) and $banner['event_type'] eq 0}}{{$banner.event_value}}{{else /}}javascript:;{{/if}}" target="_blank"><img src="{{$banner.images_url}}" /></a>
|
||||
{{switch banner.event_type}}
|
||||
{{case 3}}
|
||||
<!-- 地图 -->
|
||||
<a href="javascript:;" {{if !empty($banner['event_value_data']) and !empty($banner['event_value_data'][2]) and !empty($banner['event_value_data'][3])}}class="submit-map-popup" data-lng="{{$banner['event_value_data'][2]}}" data-lat="{{$banner['event_value_data'][3]}}"{{/if}}><img src="{{$banner.images_url}}" /></a>
|
||||
{{/case}}
|
||||
{{case 4}}
|
||||
<!-- 电话 -->
|
||||
<a {{if !empty($banner['event_value'])}}href="tel:{{$banner.event_value}}"{{else /}}href="javascript:;"{{/if}}><img src="{{$banner.images_url}}" /></a>
|
||||
{{/case}}
|
||||
{{default /}}
|
||||
<!-- 默认url地址 -->
|
||||
<a {{if !empty($banner['event_value'])}}href="{{$banner.event_value}}" target="_blank"{{else /}}href="javascript:;"{{/if}}><img src="{{$banner.images_url}}" /></a>
|
||||
{{/switch}}
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
|
|
|
|||
|
|
@ -160,12 +160,24 @@
|
|||
<i class="am-icon-long-arrow-down"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li data-field="access_count" data-type="desc">
|
||||
<a href="javascript:;" title="热度">
|
||||
<span>热度</span>
|
||||
<i class="am-icon-long-arrow-down"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li data-field="min_price" data-type="desc">
|
||||
<a href="javascript:;" title="价格">
|
||||
<span>价格</span>
|
||||
<i class="am-icon-long-arrow-down"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li data-field="id" data-type="desc">
|
||||
<a href="javascript:;" title="最新">
|
||||
<span>最新</span>
|
||||
<i class="am-icon-long-arrow-down"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<!-- 搜索页面搜索导航条内尾部钩子 -->
|
||||
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
|
||||
|
|
|
|||
|
|
@ -56,9 +56,22 @@ class BannerService
|
|||
{
|
||||
foreach($data as &$v)
|
||||
{
|
||||
// 图片地址
|
||||
$v['images_url_old'] = $v['images_url'];
|
||||
$v['images_url'] = ResourcesService::AttachmentPathViewHandle($v['images_url']);
|
||||
$v['event_value'] = empty($v['event_value']) ? null : $v['event_value'];
|
||||
|
||||
// 事件值
|
||||
if(!empty($v['event_value']))
|
||||
{
|
||||
// 地图
|
||||
if($v['event_type'] == 3)
|
||||
{
|
||||
$v['event_value_data'] = explode('|', $v['event_value']);
|
||||
}
|
||||
$v['event_value'] = $v['event_value'];
|
||||
} else {
|
||||
$v['event_value'] = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
6. 新增 Ipay88 支付方式
|
||||
7. 订单新增批量合并支付
|
||||
8. 支付日志、退款日志、用户消息优化
|
||||
9. 商品封面图片优化
|
||||
10. 搜索支持空格多个关键字
|
||||
|
||||
web端
|
||||
1. 所有条件、数据列表、新增、编辑、删除 新增钩子(公共 form 表单封装)
|
||||
|
|
@ -25,12 +27,16 @@ web端
|
|||
11. 后台新增商品复制功能
|
||||
12. 后台小程序配置集中管理
|
||||
13. 品牌支持关联多个分类
|
||||
14. 首页轮播支持电话、地图事件方式
|
||||
|
||||
|
||||
小程序端
|
||||
1. 支持商品自定义销售类型模式
|
||||
|
||||
插件
|
||||
1. 分销插件新增返积分模块
|
||||
1. 分销插件新增返积分模块、海报高清
|
||||
2. 会员等级推广海报高清
|
||||
3. 运费插件支持单独每一个仓库独立配置
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ ul, li, ol {list-style: none;}
|
|||
[class*="am-u-"] {padding-left:0rem;padding-right:0rem;}
|
||||
.am-container {padding-left:0px;padding-right:0px ;}
|
||||
.am-container > .am-g {margin-left: 0px;margin-right:0px ;}
|
||||
img{max-width:100%;}
|
||||
.small-nav img,.small-nav a,.am-g.small-nav {border:none;}
|
||||
|
||||
/*手机导航*/
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ li.select-result dt {left:-26px; top:0;font-weight:bold;width:50px;}
|
|||
|
||||
/*排序*/
|
||||
.sort-nav { width:100%; background: #fff; overflow: hidden; height: 30px; }
|
||||
.sort-nav li{ float:left;width:33.33%;height:30px; line-height:30px; text-align:center; padding:0px 0px;cursor: pointer;}
|
||||
.sort-nav li{ float:left;width:20%;height:30px; line-height:30px; text-align:center; padding:0px 0px;cursor: pointer;}
|
||||
.sort-nav li a{font-size:14px; text-decoration: none;}
|
||||
.sort-nav li.first {color: #F03726;}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue