Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞鱼0526
ShopXO
提交
966cb859
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 搜索 >>
提交
966cb859
编写于
10月 23, 2021
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增页面导航更多列表
上级
24d865c6
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
69 addition
and
10 deletion
+69
-10
app/admin/view/default/site/base/index.html
app/admin/view/default/site/base/index.html
+6
-6
app/api/controller/Goods.php
app/api/controller/Goods.php
+5
-0
app/index/view/default/public/header.html
app/index/view/default/public/header.html
+2
-2
app/service/ConfigService.php
app/service/ConfigService.php
+1
-1
app/service/NavigationService.php
app/service/NavigationService.php
+54
-0
app/service/SystemBaseService.php
app/service/SystemBaseService.php
+1
-1
未找到文件。
app/admin/view/default/site/base/index.html
浏览文件 @
966cb859
...
...
@@ -46,16 +46,16 @@
</div>
<div
class=
"am-form-group"
>
<label
class=
"block"
>
{{$data.home_site_
desktop_icon.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.home_site_desktop_icon
.describe}}
</span></label>
<ul
class=
"plug-file-upload-view home_site_
desktop_icon-images-view"
data-form-name=
"home_site_desktop_icon
"
data-max-number=
"1"
data-delete=
"0"
data-dialog-type=
"images"
>
{{if !empty($data['home_site_
desktop_icon
']['value'])}}
<label
class=
"block"
>
{{$data.home_site_
logo_square.name}}
<span
class=
"am-form-group-label-tips"
>
{{$data.home_site_logo_square
.describe}}
</span></label>
<ul
class=
"plug-file-upload-view home_site_
logo_square-images-view"
data-form-name=
"home_site_logo_square
"
data-max-number=
"1"
data-delete=
"0"
data-dialog-type=
"images"
>
{{if !empty($data['home_site_
logo_square
']['value'])}}
<li>
<input
type=
"text"
name=
"home_site_
desktop_icon"
value=
"{{$data.home_site_desktop_icon
.value}}"
/>
<img
src=
"{{:AttachmentPathViewHandle($data.home_site_
desktop_icon
.value)}}"
/>
<input
type=
"text"
name=
"home_site_
logo_square"
value=
"{{$data.home_site_logo_square
.value}}"
/>
<img
src=
"{{:AttachmentPathViewHandle($data.home_site_
logo_square
.value)}}"
/>
</li>
{{/if}}
</ul>
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.home_site_
desktop_icon
-images-view"
>
+选择logo
</div>
<div
class=
"plug-file-upload-submit"
data-view-tag=
"ul.home_site_
logo_square
-images-view"
>
+选择logo
</div>
</div>
<div
class=
"am-form-group"
>
...
...
app/api/controller/Goods.php
浏览文件 @
966cb859
...
...
@@ -18,6 +18,7 @@ use app\service\GoodsCommentsService;
use
app\service\ResourcesService
;
use
app\service\GoodsFavorService
;
use
app\service\GoodsBrowseService
;
use
app\service\NavigationService
;
/**
* 商品
...
...
@@ -112,6 +113,9 @@ class Goods extends Common
// 中间tabs导航
$middle_tabs_nav
=
GoodsService
::
GoodsDetailMiddleTabsNavList
(
$goods
);
// 导航更多列表
$nav_more_list
=
NavigationService
::
PageNavMoreList
([
'page'
=>
'goods'
]);
// 商品购买按钮列表
$buy_button
=
GoodsService
::
GoodsBuyButtonList
(
$goods
);
...
...
@@ -121,6 +125,7 @@ class Goods extends Common
'common_cart_total'
=>
BuyService
::
UserCartTotal
([
'user'
=>
$this
->
user
]),
'buy_button'
=>
$buy_button
,
'middle_tabs_nav'
=>
$middle_tabs_nav
,
'nav_more_list'
=>
$nav_more_list
,
];
$ret
=
SystemBaseService
::
DataReturn
(
$result
);
}
...
...
app/index/view/default/public/header.html
浏览文件 @
966cb859
...
...
@@ -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=
"{{:AttachmentPathViewHandle(MyC('home_site_
desktop_icon
'))}}"
>
<link
rel=
"apple-touch-icon-precomposed"
href=
"{{:AttachmentPathViewHandle(MyC('home_site_
desktop_icon
'))}}"
>
<link
rel=
"apple-touch-icon"
href=
"{{:AttachmentPathViewHandle(MyC('home_site_
logo_square
'))}}"
>
<link
rel=
"apple-touch-icon-precomposed"
href=
"{{:AttachmentPathViewHandle(MyC('home_site_
logo_square
'))}}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{$public_host}}static/common/lib/assets/css/amazeui.css?v={{:MyC('home_static_cache_version')}}"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{$public_host}}static/common/lib/amazeui-switch/amazeui.switch.css?v={{:MyC('home_static_cache_version')}}"
/>
...
...
app/service/ConfigService.php
浏览文件 @
966cb859
...
...
@@ -51,7 +51,7 @@ class ConfigService
public
static
$attachment_field_list
=
[
'home_site_logo'
,
'home_site_logo_wap'
,
'home_site_
desktop_icon
'
,
'home_site_
logo_square
'
,
'common_customer_store_qrcode'
,
'home_site_user_register_bg_images'
,
'home_site_user_login_ad1_images'
,
...
...
app/service/NavigationService.php
浏览文件 @
966cb859
...
...
@@ -1085,5 +1085,59 @@ class NavigationService
return
$data
;
}
/**
* 导航更多列表
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2019-03-15
* @desc description
* @param [array] $params [输入信息]
*/
public
static
function
PageNavMoreList
(
$params
=
[])
{
$data
=
[];
if
(
!
empty
(
$params
[
'page'
]))
{
switch
(
$params
[
'page'
])
{
// 商品页面
// icon 参考各终端
// web http://amazeui.shopxo.net/css/icon
// uniapp https://hellouniapp.dcloud.net.cn/pages/extUI/icons/icons
case
'goods'
:
$data
=
[
[
'name'
=>
'我的收藏'
,
'url'
=>
'/pages/user-favor/user-favor'
,
'icon'
=>
'heart'
],
[
'name'
=>
'我浏览过'
,
'url'
=>
'/pages/user-goods-browse/user-goods-browse'
,
'icon'
=>
'eye'
],
[
'name'
=>
'回到首页'
,
'url'
=>
'/pages/index/index'
,
'icon'
=>
'home'
]
];
break
;
}
}
// 导航更多信息钩子
$hook_name
=
'plugins_service_page_navigation_more_list_handle'
;
MyEventTrigger
(
$hook_name
,
[
'hook_name'
=>
$hook_name
,
'is_backend'
=>
true
,
'params'
=>
&
$params
,
'data'
=>
&
$data
,
]);
return
$data
;
}
}
?>
\ No newline at end of file
app/service/SystemBaseService.php
浏览文件 @
966cb859
...
...
@@ -96,7 +96,7 @@ class SystemBaseService
'home_site_name'
=>
MyC
(
'home_site_name'
,
null
,
true
),
'home_site_logo'
=>
ResourcesService
::
AttachmentPathViewHandle
(
MyC
(
'home_site_logo'
)),
'home_site_logo_wap'
=>
ResourcesService
::
AttachmentPathViewHandle
(
MyC
(
'home_site_logo_wap'
)),
'home_site_
desktop_icon'
=>
ResourcesService
::
AttachmentPathViewHandle
(
MyC
(
'home_site_desktop_icon
'
)),
'home_site_
logo_square'
=>
ResourcesService
::
AttachmentPathViewHandle
(
MyC
(
'home_site_logo_square
'
)),
'home_site_state'
=>
(
int
)
MyC
(
'home_site_state'
,
0
,
true
),
'home_site_close_reason'
=>
MyC
(
'home_site_close_reason'
,
null
,
true
),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录