Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞鱼0526
ShopXO
提交
93263707
ShopXO
项目概览
飞鱼0526
/
ShopXO
与 Fork 源项目一致
Fork自
纵之格 / ShopXO
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
93263707
编写于
8月 11, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
轮播优化
上级
43ffaa4c
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
56 addition
and
6 deletion
+56
-6
application/index/controller/Index.php
application/index/controller/Index.php
+9
-1
application/index/view/default/public/home_banner.html
application/index/view/default/public/home_banner.html
+13
-1
application/index/view/default/search/index.html
application/index/view/default/search/index.html
+12
-0
application/service/BannerService.php
application/service/BannerService.php
+14
-1
changelog.txt
changelog.txt
+7
-1
public/static/index/default/css/index.css
public/static/index/default/css/index.css
+0
-1
public/static/index/default/css/search.css
public/static/index/default/css/search.css
+1
-1
未找到文件。
application/index/controller/Index.php
浏览文件 @
93263707
...
...
@@ -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
();
...
...
application/index/view/default/public/home_banner.html
浏览文件 @
93263707
...
...
@@ -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}}
...
...
application/index/view/default/search/index.html
浏览文件 @
93263707
...
...
@@ -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)}}
...
...
application/service/BannerService.php
浏览文件 @
93263707
...
...
@@ -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
;
}
}
}
...
...
changelog.txt
浏览文件 @
93263707
...
...
@@ -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. 运费插件支持单独每一个仓库独立配置
...
...
public/static/index/default/css/index.css
浏览文件 @
93263707
...
...
@@ -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
;}
/*手机导航*/
...
...
public/static/index/default/css/search.css
浏览文件 @
93263707
...
...
@@ -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
;}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录