Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
0c7037ca
ShopXO
项目概览
starsw001
/
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,发现更多精彩内容 >>
提交
0c7037ca
编写于
2月 17, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
9b6d919d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
27 addition
and
2 deletion
+27
-2
application/plugins/commonrightnavigation/Hook.php
application/plugins/commonrightnavigation/Hook.php
+1
-1
application/plugins/view/commonrightnavigation/admin/index.html
...ation/plugins/view/commonrightnavigation/admin/index.html
+10
-0
application/plugins/view/commonrightnavigation/admin/saveinfo.html
...on/plugins/view/commonrightnavigation/admin/saveinfo.html
+11
-0
public/static/plugins/css/commonrightnavigation/style.css
public/static/plugins/css/commonrightnavigation/style.css
+5
-1
未找到文件。
application/plugins/commonrightnavigation/Hook.php
浏览文件 @
0c7037ca
...
@@ -147,7 +147,7 @@ class Hook
...
@@ -147,7 +147,7 @@ class Hook
</a>
</a>
<!-- 购物车 -->
<!-- 购物车 -->
<a href="'
.
(
empty
(
$params
[
'user'
])
?
'javascript:;'
:
MyUrl
(
'index/cart/index'
))
.
'" '
.
$is_new_window_open
.
' class="cart-content '
.
$login_event
.
'">
<a href="'
.
(
empty
(
$params
[
'user'
])
?
'javascript:;'
:
MyUrl
(
'index/cart/index'
))
.
'" '
.
$is_new_window_open
.
' class="cart-content '
.
$login_event
.
'
'
.
((
$ret
[
'data'
][
'is_goods_page_show_cart'
]
==
1
&&
$module_name
.
$controller_name
.
$action_name
==
'indexgoodsindex'
?
'cart-show'
:
''
))
.
'
">
<div class="base-nav cart">
<div class="base-nav cart">
<i class="am-icon-opencart"></i>
<i class="am-icon-opencart"></i>
<div class="cart-text">
<div class="cart-text">
...
...
application/plugins/view/commonrightnavigation/admin/index.html
浏览文件 @
0c7037ca
...
@@ -57,6 +57,16 @@
...
@@ -57,6 +57,16 @@
{{/if}}
{{/if}}
</div>
</div>
</div>
</div>
<div
class=
"items"
>
<label>
商品详情页面展示购物车入口
</label>
<div>
{{if isset($data['is_goods_page_show_cart']) and $data['is_goods_page_show_cart'] eq 1}}
是
{{else /}}
否
{{/if}}
</div>
</div>
<a
href=
"{{:PluginsAdminUrl('commonrightnavigation', 'admin', 'saveinfo')}}"
class=
"am-btn am-btn-secondary am-radius btn-loading-example am-btn-sm am-btn-block edit-submit"
>
编辑
</a>
<a
href=
"{{:PluginsAdminUrl('commonrightnavigation', 'admin', 'saveinfo')}}"
class=
"am-btn am-btn-secondary am-radius btn-loading-example am-btn-sm am-btn-block edit-submit"
>
编辑
</a>
</div>
</div>
</div>
</div>
...
...
application/plugins/view/commonrightnavigation/admin/saveinfo.html
浏览文件 @
0c7037ca
...
@@ -88,6 +88,17 @@
...
@@ -88,6 +88,17 @@
</div>
</div>
</div>
</div>
<div
class=
"am-form-group"
>
<label>
商品详情页面展示购物车入口
</label>
<div>
{{foreach $is_whether_list as $v}}
<label
class=
"am-radio-inline m-r-10"
>
<input
type=
"radio"
name=
"is_goods_page_show_cart"
value=
"{{$v.id}}"
{{
if
isset
($
data
['
is_goods_page_show_cart
'])
and
$
data
['
is_goods_page_show_cart
']
eq
$
v
['
id
']}}
checked=
"checked"
{{
else
/}}{{
if
!
isset
($
data
['
is_goods_page_show_cart
'])
and
isset
($
v
['
checked
'])
and
$
v
['
checked
']
eq
true
}}
checked=
"checked"
{{/
if
}}{{/
if
}}
data-am-ucheck
/>
{{$v.name}}
</label>
{{/foreach}}
</div>
</div>
<div
class=
"am-form-group"
>
<div
class=
"am-form-group"
>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100"
data-am-loading=
"{loadingText:'处理中...'}"
>
保存
</button>
<button
type=
"submit"
class=
"am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100"
data-am-loading=
"{loadingText:'处理中...'}"
>
保存
</button>
</div>
</div>
...
...
public/static/plugins/css/commonrightnavigation/style.css
浏览文件 @
0c7037ca
...
@@ -160,6 +160,7 @@
...
@@ -160,6 +160,7 @@
.commonrightnavigation-right-nav
.browse-content
,
.commonrightnavigation-right-nav
.browse-content
,
.commonrightnavigation-right-nav
.favor-content
,
.commonrightnavigation-right-nav
.favor-content
,
.commonrightnavigation-right-nav
.qrcode-content
,
.commonrightnavigation-right-nav
.qrcode-content
,
.commonrightnavigation-right-nav
.cart-content
,
.commonrightnavigation-right-nav
.go-top
.mui-mbar-tab-tip
{
.commonrightnavigation-right-nav
.go-top
.mui-mbar-tab-tip
{
display
:
none
;
display
:
none
;
}
}
...
@@ -180,7 +181,10 @@
...
@@ -180,7 +181,10 @@
z-index
:
10000
;
z-index
:
10000
;
display
:
none
;
display
:
none
;
}
}
.commonrightnavigation-right-nav
.cart
{
.cart-show
{
display
:
block
!important
;
}
.commonrightnavigation-right-nav
.cart-show
.cart
{
position
:
fixed
;
position
:
fixed
;
right
:
0
;
right
:
0
;
bottom
:
calc
(
50%
-
50px
);
bottom
:
calc
(
50%
-
50px
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录