Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jamesyang1999
ShopXO
提交
d8a47c2e
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,发现更多精彩内容 >>
提交
d8a47c2e
编写于
11月 29, 2018
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
logo
上级
c4fb81b1
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
23 addition
and
7 deletion
+23
-7
Application/Admin/Controller/SiteController.class.php
Application/Admin/Controller/SiteController.class.php
+1
-0
Application/Admin/View/Default/Site/Index.html
Application/Admin/View/Default/Site/Index.html
+14
-0
Application/Home/View/Default/Public/Header.html
Application/Home/View/Default/Public/Header.html
+2
-2
Install/shopxo.sql
Install/shopxo.sql
+4
-4
Public/Admin/Default/Css/Site.css
Public/Admin/Default/Css/Site.css
+2
-1
Public/Upload/common/2018/11/29/2018112915181269253.jpg
Public/Upload/common/2018/11/29/2018112915181269253.jpg
+0
-0
未找到文件。
Application/Admin/Controller/SiteController.class.php
浏览文件 @
d8a47c2e
...
...
@@ -74,6 +74,7 @@ class SiteController extends CommonController
// logo存储
$this
->
FileSave
(
'home_site_logo'
,
'home_site_logo_img'
);
$this
->
FileSave
(
'home_site_logo_wap'
,
'home_site_logo_wap_img'
);
$this
->
FileSave
(
'home_site_desktop_icon'
,
'home_site_desktop_icon_img'
);
// 站点状态值处理
if
(
!
isset
(
$_POST
[
'home_user_reg_state'
]))
...
...
Application/Admin/View/Default/Site/Index.html
浏览文件 @
d8a47c2e
...
...
@@ -19,6 +19,7 @@
<img
src=
"{{$image_host}}{{$data.home_site_logo.value}}"
class=
"form-img-logo-view"
/>
<div
id=
"form-file-logo-tips"
></div>
</div>
<div
class=
"am-form-group am-form-file"
>
<label
class=
"block"
>
{{$data.home_site_logo_wap.name}}
<span
class=
"fs-12 fw-100 cr-999"
>
({{$data.home_site_logo_wap.describe}})
</span></label>
<button
type=
"button"
class=
"am-btn am-btn-default am-btn-sm am-radius"
>
...
...
@@ -30,6 +31,19 @@
</if>
<div
id=
"form-file-logo-wap-tips"
></div>
</div>
<div
class=
"am-form-group am-form-file"
>
<label
class=
"block"
>
{{$data.home_site_desktop_icon.name}}
<span
class=
"fs-12 fw-100 cr-999"
>
({{$data.home_site_desktop_icon.describe}})
</span></label>
<button
type=
"button"
class=
"am-btn am-btn-default am-btn-sm am-radius"
>
<i
class=
"am-icon-cloud-upload"
></i>
{{:L('common_select_images_text')}}
</button>
<input
type=
"file"
class=
"site-logo"
data-tils-tag=
"#form-file-logo-wap-tips"
name=
"{{$data.home_site_desktop_icon.only_tag}}_img"
multiple
data-validation-message=
"{{$data.home_site_desktop_icon.error_tips}}"
accept=
"image/gif,image/jpeg,image/jpg,image/png"
<
present
name=
"data"
>
value="{{$data.home_site_desktop_icon.value}}"
</present>
/>
<input
type=
"hidden"
name=
"{{$data.home_site_desktop_icon.only_tag}}"
<
present
name=
"data"
>
value="{{$data.home_site_desktop_icon.value}}"
</present>
/>
<if
condition=
"!empty($data['home_site_desktop_icon']['value'])"
>
<img
src=
"{{$image_host}}{{$data.home_site_desktop_icon.value}}"
class=
"form-img-icon-view"
/>
</if>
<div
id=
"form-file-logo-wap-tips"
></div>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.common_timezone.name}}
<span
class=
"fs-12 fw-100 cr-999"
>
({{$data.common_timezone.describe}})
</span></label>
<select
name=
"{{$data.common_timezone.only_tag}}"
class=
"am-radius chosen-select c-p"
data-placeholder=
"{{$data.common_timezone.name}}"
data-validation-message=
"{{$data.common_timezone.error_tips}}"
required
>
...
...
Application/Home/View/Default/Public/Header.html
浏览文件 @
d8a47c2e
...
...
@@ -14,8 +14,8 @@
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-title"
content=
"{{:MyC('home_site_name')}}"
>
<link
rel=
"apple-touch-icon"
href=
"{{$image_host}}{{:MyC('home_site_
logo_wap
')}}"
>
<link
rel=
"apple-touch-icon-precomposed"
href=
"{{$image_host}}{{:MyC('home_site_
logo_wap
')}}"
>
<link
rel=
"apple-touch-icon"
href=
"{{$image_host}}{{:MyC('home_site_
desktop_icon
')}}"
>
<link
rel=
"apple-touch-icon-precomposed"
href=
"{{$image_host}}{{:MyC('home_site_
desktop_icon
')}}"
>
<css
href=
"__PUBLIC__/Common/Lib/assets/css/amazeui.css?v={{:MyC('home_static_cache_version')}}"
/>
<css
href=
"__PUBLIC__/Common/Lib/amazeui-switch/amazeui.switch.css?v={{:MyC('home_static_cache_version')}}"
/>
...
...
Install/shopxo.sql
浏览文件 @
d8a47c2e
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
Public/Admin/Default/Css/Site.css
浏览文件 @
d8a47c2e
.form-img-logo-view
{
max-width
:
180px
;
max-height
:
38px
;
}
.form-img-icon-view
{
max-width
:
100px
;
max-height
:
100px
;
}
\ No newline at end of file
Public/Upload/common/2018/11/29/2018112915181269253.jpg
0 → 100644
浏览文件 @
d8a47c2e
42.5 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录