Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
7f710915
ShopXO
项目概览
jcy2004x
/
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,发现更多精彩内容 >>
提交
7f710915
编写于
12月 25, 2018
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
d12b59ce
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
11 addition
and
31 deletion
+11
-31
application/admin/controller/Theme.php
application/admin/controller/Theme.php
+1
-1
application/index/config/template.php
application/index/config/template.php
+1
-1
application/index/controller/Common.php
application/index/controller/Common.php
+1
-1
application/service/ConfigService.php
application/service/ConfigService.php
+0
-13
application/service/ThemeService.php
application/service/ThemeService.php
+1
-2
application/service/UserService.php
application/service/UserService.php
+1
-1
config/app.php
config/app.php
+2
-8
public/install/shopxo_tp5.sql
public/install/shopxo_tp5.sql
+3
-3
public/static/admin/default/js/goods.js
public/static/admin/default/js/goods.js
+1
-1
未找到文件。
application/admin/controller/Theme.php
浏览文件 @
7f710915
...
...
@@ -53,7 +53,7 @@ class Theme extends Common
$this
->
assign
(
'data_list'
,
ThemeService
::
ThemeList
());
// 默认主题
$theme
=
cache
(
'cache_common_default_theme_data'
);
$theme
=
MyC
(
'common_default_theme'
,
'default'
,
true
);
$this
->
assign
(
'theme'
,
empty
(
$theme
)
?
'default'
:
$theme
);
return
$this
->
fetch
(
'index'
);
}
else
{
...
...
application/index/config/template.php
浏览文件 @
7f710915
...
...
@@ -19,7 +19,7 @@ return [
// 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写 3 保持操作方法
'auto_rule'
=>
1
,
// 模板路径
'view_path'
=>
APP_PATH
.
'index'
.
DS
.
'view'
.
DS
.
strtolower
(
MyC
(
'c
ache_common_default_theme_data'
,
'default'
))
.
DS
,
'view_path'
=>
APP_PATH
.
'index'
.
DS
.
'view'
.
DS
.
strtolower
(
MyC
(
'c
ommon_default_theme'
,
'default'
,
true
))
.
DS
,
// 模板后缀
'view_suffix'
=>
'html'
,
// 模板文件名分隔符
...
...
application/index/controller/Common.php
浏览文件 @
7f710915
...
...
@@ -122,7 +122,7 @@ class Common extends Controller
public
function
ViewInit
()
{
// 主题
$default_theme
=
strtolower
(
MyC
(
'c
ache_common_default_theme_data'
,
'default'
));
$default_theme
=
strtolower
(
MyC
(
'c
ommon_default_theme'
,
'default'
,
true
));
$this
->
assign
(
'default_theme'
,
$default_theme
);
// 当前操作名称
...
...
application/service/ConfigService.php
浏览文件 @
7f710915
...
...
@@ -109,20 +109,7 @@ class ConfigService
{
$data
[
'home_user_reg_state'
]
=
explode
(
','
,
$data
[
'home_user_reg_state'
]);
}
cache
(
$key
,
$data
);
// 时区
if
(
isset
(
$data
[
'common_timezone'
]))
{
cache
(
'cache_common_timezone_data'
,
$data
[
'common_timezone'
]);
}
// 默认模板
if
(
isset
(
$data
[
'common_default_theme'
]))
{
cache
(
'cache_common_default_theme_data'
,
$data
[
'common_default_theme'
]);
}
}
}
}
...
...
application/service/ThemeService.php
浏览文件 @
7f710915
...
...
@@ -179,8 +179,7 @@ class ThemeService
}
// 默认主题
$theme
=
cache
(
'cache_common_default_theme_data'
);
$theme
=
empty
(
$theme
)
?
'default'
:
$theme
;
$theme
=
MyC
(
'common_default_theme'
,
'default'
,
true
);
// 不能删除正在使用的主题
if
(
$theme
==
$id
)
...
...
application/service/UserService.php
浏览文件 @
7f710915
...
...
@@ -48,7 +48,7 @@ class UserService
$v
[
'avatar'
]
=
config
(
'images_host'
)
.
$v
[
'avatar'
];
}
}
else
{
$v
[
'avatar'
]
=
config
(
'images_host'
)
.
'/static/index/'
.
strtolower
(
MyC
(
'c
ache_common_default_theme_data'
,
'default'
))
.
'/images/default-user-avatar.jpg'
;
$v
[
'avatar'
]
=
config
(
'images_host'
)
.
'/static/index/'
.
strtolower
(
MyC
(
'c
ommon_default_theme'
,
'default'
,
true
))
.
'/images/default-user-avatar.jpg'
;
}
// 注册时间
...
...
config/app.php
浏览文件 @
7f710915
...
...
@@ -37,7 +37,7 @@ return [
// 默认JSONP处理方法
'var_jsonp_handler'
=>
'callback'
,
// 默认时区
'default_timezone'
=>
'Asia/Shanghai'
,
'default_timezone'
=>
MyC
(
'common_timezone'
,
'Asia/Shanghai'
,
true
)
,
// 是否开启多语言
'lang_switch_on'
=>
false
,
// 默认全局过滤方法 用逗号分隔多个
...
...
@@ -157,18 +157,12 @@ return [
// 前台顶部导航
'cache_common_home_nav_footer_key'
=>
'cache_common_home_nav_footer_data'
,
// 时区
'cache_common_timezone_key'
=>
'cache_common_timezone_data'
,
// 默认模板
'cache_common_default_theme_key'
=>
'cache_common_default_theme_data'
,
// 频道缓存 array(id => name)
'cache_home_channel_key'
=>
'cache_home_channel_data'
,
// 图片host, 数据库图片地址以/Public/...开头
'
IMAGE_HOST'
=>
substr
(
__MY_URL__
,
0
,
-
1
),
'
images_host'
=>
substr
(
__MY_URL__
,
0
,
-
1
),
// 开启U带域名
'url_domain_deploy'
=>
true
,
...
...
public/install/shopxo_tp5.sql
浏览文件 @
7f710915
此差异已折叠。
点击以展开。
public/static/admin/default/js/goods.js
浏览文件 @
7f710915
...
...
@@ -110,7 +110,7 @@ $(function()
html
+=
'
<ul class="plug-file-upload-view spec-images-view-
'
+
index
+
'
" data-form-name="spec_images[
'
+
index
+
'
]" data-max-number="1" data-dialog-type="images">
'
;
html
+=
'
<li>
'
;
html
+=
'
<input type="text" name="spec_images[
'
+
index
+
'
]" data-validation-message="请上传规格图片" required />
'
;
html
+=
'
<img src="
'
+
__image_host__
+
'
/static/admin/default/images/default-images.png" />
'
;
html
+=
'
<img src="
'
+
__image
s
_host__
+
'
/static/admin/default/images/default-images.png" />
'
;
html
+=
'
<i>×</i>
'
;
html
+=
'
</li>
'
;
html
+=
'
</ul>
'
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录