Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
ea445d38
ShopXO
项目概览
jamesyang1999
/
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,发现更多精彩内容 >>
提交
ea445d38
编写于
9月 28, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
c8906037
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
45 addition
and
15 deletion
+45
-15
application/admin/controller/Admin.php
application/admin/controller/Admin.php
+21
-0
application/admin/view/default/admin/login_info.html
application/admin/view/default/admin/login_info.html
+5
-5
application/admin/view/default/config/index.html
application/admin/view/default/config/index.html
+2
-1
application/service/NavigationService.php
application/service/NavigationService.php
+2
-2
application/tags.php
application/tags.php
+4
-5
changelog.txt
changelog.txt
+2
-0
config/app.php
config/app.php
+1
-1
public/static/admin/default/images/login/15.jpg
public/static/admin/default/images/login/15.jpg
+0
-0
public/static/index/default/css/article.css
public/static/index/default/css/article.css
+4
-1
route/route.config
route/route.config
+4
-0
未找到文件。
application/admin/controller/Admin.php
浏览文件 @
ea445d38
...
...
@@ -250,6 +250,27 @@ class Admin extends Common
return
redirect
(
MyUrl
(
'admin/index/index'
));
}
// 背景图片
$host
=
config
(
'shopxo.attachment_host'
);
$bg_images_list
=
[
$host
.
'/static/admin/default/images/login/1.jpg'
,
$host
.
'/static/admin/default/images/login/2.jpg'
,
$host
.
'/static/admin/default/images/login/3.jpg'
,
$host
.
'/static/admin/default/images/login/4.jpg'
,
$host
.
'/static/admin/default/images/login/5.jpg'
,
$host
.
'/static/admin/default/images/login/6.jpg'
,
$host
.
'/static/admin/default/images/login/7.jpg'
,
$host
.
'/static/admin/default/images/login/8.jpg'
,
$host
.
'/static/admin/default/images/login/9.jpg'
,
$host
.
'/static/admin/default/images/login/10.jpg'
,
$host
.
'/static/admin/default/images/login/11.jpg'
,
$host
.
'/static/admin/default/images/login/12.jpg'
,
$host
.
'/static/admin/default/images/login/13.jpg'
,
$host
.
'/static/admin/default/images/login/14.jpg'
,
$host
.
'/static/admin/default/images/login/15.jpg'
,
];
$this
->
assign
(
'bg_images_list'
,
$bg_images_list
);
// 管理员登录页面钩子
$hook_name
=
'plugins_view_admin_login_info'
;
$this
->
assign
(
$hook_name
.
'_data'
,
Hook
::
listen
(
$hook_name
,
...
...
application/admin/view/default/admin/login_info.html
浏览文件 @
ea445d38
...
...
@@ -32,13 +32,13 @@
<!-- content end -->
<!-- 随机背景图片 -->
{{if MyC('admin_login_info_bg_images_rand') eq 1}}
{{if MyC('admin_login_info_bg_images_rand') eq 1
and !empty($bg_images_list) and is_array($bg_images_list)
}}
<div
class=
"bg-slides"
>
{{for
start="1" end="15"
}}
{{if
file_exists(ROOT.'public/static/admin/default/images/login/'.$i.'.jpg'
)}}
<div
class=
"bg-slides-item"
style=
"background-image:url('{{$
attachment_host}}/static/admin/default/images/login/{{$i}}.jpg');{{if $i neq 1
}}display:none;{{/if}}"
></div>
{{for
each $bg_images_list as $k=>$v
}}
{{if
!empty($v
)}}
<div
class=
"bg-slides-item"
style=
"background-image:url('{{$
v}}');{{if $k neq 0
}}display:none;{{/if}}"
></div>
{{/if}}
{{/for}}
{{/for
each
}}
</div>
{{/if}}
...
...
application/admin/view/default/config/index.html
浏览文件 @
ea445d38
...
...
@@ -22,7 +22,8 @@
{{/foreach}}
</select>
<div
class=
"am-alert am-alert-warning"
data-am-alert
>
<p>
背景图片位置[ public/static/admin/default/images/login ]目录下
</p>
<p>
1. 默认背景图片位于[ public/static/admin/default/images/login ]目录下
</p>
<p>
2. 变更图片后、需要在[ application/admin/controller/Admin.php ]文件中[ LoginInfo ]方法中修改[ bg_images_list ]变量
</p>
</div>
</div>
...
...
application/service/NavigationService.php
浏览文件 @
ea445d38
...
...
@@ -45,14 +45,14 @@ class NavigationService
$footer
=
cache
(
config
(
'shopxo.cache_common_home_nav_footer_key'
));
// 缓存没数据则从数据库重新读取,顶部菜单
if
(
empty
(
$header
))
if
(
empty
(
$header
)
||
config
(
'app_debug'
)
)
{
// 获取导航数据
$header
=
self
::
NavDataAll
(
'header'
);
}
// 底部导航
if
(
empty
(
$footer
))
if
(
empty
(
$footer
)
||
config
(
'app_debug'
)
)
{
// 获取导航数据
$footer
=
self
::
NavDataAll
(
'footer'
);
...
...
application/tags.php
浏览文件 @
ea445d38
...
...
@@ -82,7 +82,6 @@ return array (
'plugins_service_buy_order_insert_end'
=>
array
(
0
=>
'app\\plugins\\distribution\\Hook'
,
1
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_goods_spec_extends_handle'
=>
array
(
...
...
@@ -140,10 +139,6 @@ return array (
array
(
0
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_order_pay_launch_handle'
=>
array
(
0
=>
'app\\plugins\\exchangerate\\Hook'
,
),
'plugins_service_buy_group_goods_handle'
=>
array
(
0
=>
'app\\plugins\\freightfee\\Hook'
,
...
...
@@ -152,5 +147,9 @@ return array (
array
(
0
=>
'app\\plugins\\freightfee\\Hook'
,
),
'plugins_service_navigation_header_handle'
=>
array
(
0
=>
'app\\plugins\\answers\\Hook'
,
),
);
?>
\ No newline at end of file
changelog.txt
浏览文件 @
ea445d38
...
...
@@ -7,10 +7,12 @@
3. 新增商品属性参数
4. 新增附件、css/js静态可配置CDN域名
5. 网站首页可后台控制配置
6. 新增SESSION和数据缓存配置Redis(独立配置)
web端
1. 后台菜单支持自定义url地址、并支持钩子自动添加
2. 后台区块数据统计新增当月、上月维度
3. 新增插件路由短地址规则
小程序
1. QQ小程序支持微信支付
...
...
config/app.php
浏览文件 @
ea445d38
...
...
@@ -101,7 +101,7 @@ return [
// 合并路由规则
'route_rule_merge'
=>
false
,
// 路由是否完全匹配
'route_complete_match'
=>
tru
e
,
'route_complete_match'
=>
fals
e
,
// 使用注解路由
'route_annotation'
=>
false
,
// 域名根,如thinkphp.cn
...
...
public/static/admin/default/images/login/15.jpg
0 → 100644
浏览文件 @
ea445d38
191.1 KB
public/static/index/default/css/article.css
浏览文件 @
ea445d38
...
...
@@ -21,8 +21,11 @@
.article-sidebar
.am-offcanvas-bar
{
position
:
static
;
width
:
auto
;
background
:
none
;
-webkit-transform
:
translate3d
(
0
,
0
,
0
);
-ms-transform
:
translate3d
(
0
,
0
,
0
);
transform
:
translate3d
(
0
,
0
,
0
);}
.article-sidebar
ul
li
:not
(
:last-child
)
{
border-bottom
:
1px
solid
#f5f5f5
;}
.am-accordion-gapped
{
margin
:
0
15px
0
0
;}
.article-sidebar
{
padding-left
:
5px
;
}
}
@media
only
screen
and
(
min-width
:
1025px
)
{
.article-sidebar
{
padding-left
:
0
;
}
}
@media
only
screen
and
(
max-width
:
640px
)
{
.article-right
{
padding
:
0
5px
;}
.article-sidebar
.am-offcanvas-bar
{
background
:
#f9f9f9
;}
...
...
route/route.config
浏览文件 @
ea445d38
...
...
@@ -12,6 +12,7 @@
// +----------------------------------------------------------------------
// | 路由规则
// +----------------------------------------------------------------------
use
think
\
facade
\
Route
;
// 分隔符
$
ds
=
MyC
(
'common_route_separator'
,
'-'
,
true
);
...
...
@@ -48,4 +49,7 @@ Route::get('regster'.$ds.'sms', 'index/user/smsreginfo');
Route
::
get
(
'regster'
.$
ds
.
'email'
,
'index/user/emailreginfo'
);
Route
::
get
(
'forget'
,
'index/user/forgetpwdinfo'
);
Route
::
get
(
'logout'
,
'index/user/logout'
);
// 插件调用
Route
::
rule
(
':pluginsname'
.$
ds
.
':pluginscontrol'
.$
ds
.
':pluginsaction'
.$
ds
.
'[:id]'
,
'index/plugins/index'
);
?>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录