Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
纵之格
ShopXO
提交
9b4ef287
ShopXO
项目概览
纵之格
/
ShopXO
通知
393
Star
16
Fork
11
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
ShopXO
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9b4ef287
编写于
12月 08, 2021
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增web端首页关闭状态+新增电信经营许可证展示+细节优化
上级
03b69cde
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
97 addition
and
22 deletion
+97
-22
app/admin/view/default/site/base/index.html
app/admin/view/default/site/base/index.html
+13
-0
app/api/controller/Common.php
app/api/controller/Common.php
+1
-1
app/index/controller/Common.php
app/index/controller/Common.php
+55
-12
app/index/controller/Index.php
app/index/controller/Index.php
+7
-3
app/index/view/default/public/footer_nav.html
app/index/view/default/public/footer_nav.html
+8
-0
app/service/AppService.php
app/service/AppService.php
+0
-5
extend/payment/CashPayment.php
extend/payment/CashPayment.php
+1
-1
public/static/index/default/css/common.css
public/static/index/default/css/common.css
+12
-0
未找到文件。
app/admin/view/default/site/base/index.html
浏览文件 @
9b4ef287
...
...
@@ -83,6 +83,14 @@
{{/foreach}}
</select>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.home_site_web_state.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.home_site_web_state.describe}}
</span></label>
<select
name=
"{{$data.home_site_web_state.only_tag}}"
class=
"am-radius chosen-select"
data-validation-message=
"{{$data.home_site_web_state.error_tips}}"
required
>
{{foreach $common_close_open_list as $v}}
<option
value=
"{{$v.value}}"
{{
if
isset
($
data
['
home_site_web_state
']['
value
'])
and
$
data
['
home_site_web_state
']['
value
']
eq
$
v
['
value
']}}
selected
{{/
if
}}
>
{{$v.name}}
</option>
{{/foreach}}
</select>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.home_site_close_reason.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.home_site_close_reason.describe}}
</span></label>
<textarea
rows=
"3"
name=
"{{$data.home_site_close_reason.only_tag}}"
class=
"am-radius"
placeholder=
"{{$data.home_site_close_reason.name}}"
data-validation-message=
"{{$data.home_site_close_reason.error_tips}}"
>
{{if !empty($data)}}{{$data.home_site_close_reason.value}}{{/if}}
</textarea>
...
...
@@ -109,6 +117,11 @@
<label>
{{$data.home_site_security_record_url.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.home_site_security_record_url.describe}}
</span></label>
<input
type=
"text"
name=
"{{$data.home_site_security_record_url.only_tag}}"
placeholder=
"{{$data.home_site_security_record_url.describe}}"
data-validation-message=
"{{$data.home_site_security_record_url.error_tips}}"
class=
"am-radius"
{{
if
!
empty
($
data
)}}
value=
"{{$data.home_site_security_record_url.value}}"
{{/
if
}}
/>
</div>
<div
class=
"am-form-group"
>
<label>
{{$data.home_site_telecom_license.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.home_site_telecom_license.describe}}
</span></label>
<input
type=
"text"
name=
"{{$data.home_site_telecom_license.only_tag}}"
placeholder=
"{{$data.home_site_telecom_license.describe}}"
data-validation-message=
"{{$data.home_site_telecom_license.error_tips}}"
class=
"am-radius"
{{
if
!
empty
($
data
)}}
value=
"{{$data.home_site_telecom_license.value}}"
{{/
if
}}
/>
</div>
</div>
</div>
...
...
app/api/controller/Common.php
浏览文件 @
9b4ef287
...
...
@@ -125,7 +125,7 @@ class Common extends BaseController
{
if
(
MyC
(
'home_site_state'
)
!=
1
)
{
exit
(
json_encode
(
DataReturn
(
MyC
(
'home_site_close_reason'
,
'
网站维护
中...'
),
-
10000
)));
exit
(
json_encode
(
DataReturn
(
MyC
(
'home_site_close_reason'
,
'
升级
中...'
),
-
10000
)));
}
}
...
...
app/index/controller/Common.php
浏览文件 @
9b4ef287
...
...
@@ -299,6 +299,7 @@ class Common extends BaseController
MyViewAssign
(
'home_site_icp'
,
MyC
(
'home_site_icp'
));
MyViewAssign
(
'home_site_security_record_name'
,
MyC
(
'home_site_security_record_name'
));
MyViewAssign
(
'home_site_security_record_url'
,
MyC
(
'home_site_security_record_url'
));
MyViewAssign
(
'home_site_telecom_license'
,
MyC
(
'home_site_telecom_license'
));
// 布局样式+管理
MyViewAssign
(
'is_load_layout'
,
0
);
...
...
@@ -370,11 +371,12 @@ class Common extends BaseController
}
/**
* [NavInit 导航初始化]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2016-12-19T22:41:20+0800
* 导航初始化
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2021-12-08
* @desc description
*/
private
function
NavInit
()
{
...
...
@@ -388,22 +390,63 @@ class Common extends BaseController
}
/**
* [SiteStstusCheck 站点状态校验]
* @author Devil
* @blog http://gong.gg/
* @version 0.0.1
* @datetime 2017-02-25T21:43:07+0800
* 站点状态校验
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2021-12-08
* @desc description
*/
private
function
SiteStstusCheck
()
{
if
(
MyC
(
'home_site_state'
)
!=
1
)
{
// 提示信息
$reason
=
MyC
(
'home_site_close_reason'
,
'升级中...'
,
true
);
// 是否ajax请求
if
(
IS_AJAX
)
{
exit
(
json_encode
(
DataReturn
(
$reason
,
-
10000
)));
}
else
{
// 默认提示信息增加样式,则使用用户自定义信息展示
if
(
$reason
==
'升级中...'
)
{
exit
(
'<!DOCTYPE html><html><head><meta charset="utf-8" /><title>'
.
MyC
(
'home_site_name'
)
.
'</title><body><div style="text-align: center;margin-top: 15%;font-size: 18px;color: #f00;">'
.
$reason
.
'</div></body></html>'
);
}
else
{
exit
(
$reason
);
}
}
}
}
/**
* 站点状态校验 - web端
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2021-12-08
* @desc description
*/
public
function
SiteWebStstusCheck
()
{
if
(
MyC
(
'home_site_web_state'
)
!=
1
)
{
// 提示信息
$reason
=
MyC
(
'home_site_close_reason'
,
'升级中...'
,
true
);
// 是否ajax请求
if
(
IS_AJAX
)
{
exit
(
json_encode
(
DataReturn
(
MyC
(
'home_site_close_reason'
,
'网站维护中...'
)
,
-
10000
)));
exit
(
json_encode
(
DataReturn
(
$reason
,
-
10000
)));
}
else
{
exit
(
'<div style="text-align: center;margin-top: 15%;font-size: 18px;color: #f00;">'
.
MyC
(
'home_site_close_reason'
,
'网站维护中...'
,
true
)
.
'</div>'
);
// 默认提示信息增加样式,则使用用户自定义信息展示
if
(
$reason
==
'升级中...'
)
{
exit
(
'<!DOCTYPE html><html><head><meta charset="utf-8" /><title>'
.
MyC
(
'home_site_name'
)
.
'</title><body><div style="text-align: center;margin-top: 15%;font-size: 18px;color: #f00;">'
.
$reason
.
'</div></body></html>'
);
}
else
{
exit
(
$reason
);
}
}
}
}
...
...
app/index/controller/Index.php
浏览文件 @
9b4ef287
...
...
@@ -42,6 +42,9 @@ class Index extends Common
public
function
__construct
()
{
parent
::
__construct
();
// web端首页状态
$this
->
SiteWebStstusCheck
();
}
/**
...
...
@@ -57,8 +60,9 @@ class Index extends Common
$banner
=
BannerService
::
Banner
();
MyViewAssign
(
'banner_list'
,
$banner
);
// H5导航
MyViewAssign
(
'navigation'
,
AppHomeNavService
::
AppHomeNav
());
// 手机默认下导航
$navigation
=
IsMobile
()
?
AppHomeNavService
::
AppHomeNav
()
:
[];
MyViewAssign
(
'navigation'
,
$navigation
);
// 用户订单状态
$user_order_status
=
OrderService
::
OrderStatusStepTotal
([
'user_type'
=>
'user'
,
'user'
=>
$this
->
user
,
'is_comments'
=>
1
]);
...
...
@@ -139,7 +143,7 @@ class Index extends Common
// 加载百度地图api
// 存在地图事件则载入
if
(
in_array
(
3
,
array_column
(
$banner
,
'event_type'
)))
if
(
(
!
empty
(
$banner
)
&&
in_array
(
3
,
array_column
(
$banner
,
'event_type'
)))
||
(
!
empty
(
$navigation
)
&&
in_array
(
3
,
array_column
(
$navigation
,
'event_type'
)
)))
{
MyViewAssign
(
'is_load_baidu_map_api'
,
1
);
}
...
...
app/index/view/default/public/footer_nav.html
浏览文件 @
9b4ef287
...
...
@@ -87,6 +87,7 @@
{{$home_theme_footer_bottom_powered|raw}} {{$Think.APPLICATION_VERSION}}
</p>
{{if !empty($home_site_icp)}}
<b>
|
</b>
<p
class=
"footer-icp"
>
<a
href=
"https://beian.miit.gov.cn/"
target=
"_blank"
>
<img
src=
"{{$attachment_host}}/static/common/images/beian-icp-icon.png"
alt=
"ICP备案"
/>
...
...
@@ -95,6 +96,7 @@
</p>
{{/if}}
{{if !empty($home_site_security_record_name)}}
<b>
|
</b>
<p
class=
"footer-icp"
>
<a
{{
if
empty
($
home_site_security_record_url
)}}
href=
"javascript:;"
{{
else
/}}
href=
"{{$home_site_security_record_url}}"
target=
"_blank"
{{/
if
}}
>
<img
src=
"{{$attachment_host}}/static/common/images/beian-gongan-icon.png"
alt=
"公安备案"
/>
...
...
@@ -102,6 +104,12 @@
</a>
</p>
{{/if}}
{{if !empty($home_site_telecom_license)}}
<b>
|
</b>
<p
class=
"footer-icp"
>
<a
href=
"javascript:;"
>
{{$home_site_telecom_license}}
</a>
</p>
{{/if}}
</div>
</div>
</footer>
...
...
app/service/AppService.php
浏览文件 @
9b4ef287
...
...
@@ -92,11 +92,6 @@ class AppService
// icon 图标(必填、参考uniapp扩展图标文档)
// url 访问地址(可选)
$data
=
[
[
'name'
=>
'所有店铺'
,
'icon'
=>
'shop'
,
'url'
=>
'/pages/plugins/shop/index/index'
,
],
[
'name'
=>
'我的收藏'
,
'icon'
=>
'heart'
,
...
...
extend/payment/CashPayment.php
浏览文件 @
9b4ef287
...
...
@@ -136,7 +136,7 @@ class CashPayment
$padding
=
'10px;'
;
$radius
=
'10px;'
;
}
$html
=
'<h1 style="text-align:center;margin-top:'
.
$h1_margin
.
'
;">按照以下支付
信息进行打款</h1>
$html
=
'<h1 style="text-align:center;margin-top:'
.
$h1_margin
.
'
">按照以下
信息进行打款</h1>
<div style="text-align: left;margin:0 auto;max-width:800px;height:auto;border: 1px solid #e5e5e5;padding: '
.
$padding
.
';background:#fff;margin-top:'
.
$margin
.
'border-radius:'
.
$radius
.
'">'
;
// 文本信息
...
...
public/static/index/default/css/common.css
浏览文件 @
9b4ef287
...
...
@@ -275,9 +275,18 @@ input.add,input.min{width:15px}
.am-footer-default
p
.am-text-truncate
{
line-height
:
24px
;
}
.am-footer-default
b
{
margin
:
0
3px
;
font-weight
:
400
;
color
:
#585858
;
}
.am-footer-default
a
{
font-size
:
12px
;
color
:
#b1b1b1
;
text-decoration
:
none
;
}
.am-footer-default
a
:hover
{
color
:
#d1d1d1
;
}
.footer-nav-list
{
padding
:
0
;
...
...
@@ -347,6 +356,9 @@ input.add,input.min{width:15px}
padding-top
:
10px
;
margin-top
:
10px
;
}
.am-footer-default
b
{
display
:
none
;
}
}
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录