Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
飞鱼0526
ShopXO
提交
77051a4a
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,发现更多精彩内容 >>
提交
77051a4a
编写于
12月 09, 2019
作者:
D
devil_gong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品详情细节优化
上级
cc5a9e4b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
55 addition
and
13 deletion
+55
-13
.gitignore
.gitignore
+1
-0
application/.htaccess
application/.htaccess
+0
-1
application/index/controller/Goods.php
application/index/controller/Goods.php
+10
-0
application/index/view/default/goods/index.html
application/index/view/default/goods/index.html
+24
-3
public/static/index/default/css/goods.css
public/static/index/default/css/goods.css
+20
-9
未找到文件。
.gitignore
浏览文件 @
77051a4a
...
...
@@ -4,6 +4,7 @@
*.log
*.lock
.tea
.idea
.htaccess
*payment_*_respond.php
*payment_*_notify.php
\ No newline at end of file
application/.htaccess
已删除
100755 → 0
浏览文件 @
cc5a9e4b
deny
from
all
\ No newline at end of file
application/index/controller/Goods.php
浏览文件 @
77051a4a
...
...
@@ -250,6 +250,16 @@ class Goods extends Common
'goods_id'
=>
$goods_id
,
'goods'
=>
&
$goods
,
]));
// 商品页面基础信息购买小导航里面钩子
$hook_name
=
'plugins_view_goods_detail_base_buy_nav_min_inside'
;
$this
->
assign
(
$hook_name
.
'_data'
,
Hook
::
listen
(
$hook_name
,
[
'hook_name'
=>
$hook_name
,
'is_backend'
=>
false
,
'goods_id'
=>
$goods_id
,
'goods'
=>
&
$goods
,
]));
}
/**
...
...
application/index/view/default/goods/index.html
浏览文件 @
77051a4a
...
...
@@ -317,18 +317,39 @@
{{if $goods['inventory'] gt 0}}
<div
class=
"buy-nav-opt"
>
<a
href=
"{{$Think.__MY_URL__}}"
>
<span
class=
"am-icon-home am-icon-fw"
>
首页
</span>
<span
class=
"nav-icon nav-icon-home"
>
<i
class=
"am-icon-home am-icon-fw"
></i>
<em>
首页
</em>
</span>
</a>
{{if isset($goods['is_favor']) and $goods['is_favor'] eq 1}}
<span
class=
"am-icon-heart am-icon-fw login-event favor-submit text-active"
data-ajax-url=
"{{:MyUrl('index/goods/favor')}}"
>
<span
class=
"nav-icon login-event favor-submit text-active"
data-ajax-url=
"{{:MyUrl('index/goods/favor')}}"
>
<i
class=
"am-icon-heart am-icon-fw"
></i>
<em
class=
"goods-favor-text"
>
已收藏
</em>
<em
class=
"goods-favor-count"
>
({{$goods.favor_count}})
</em>
</span>
{{else /}}
<span
class=
"am-icon-heart am-icon-fw favor-submit login-event"
data-ajax-url=
"{{:MyUrl('index/goods/favor')}}"
>
<em
class=
"goods-favor-text"
>
收藏
</em>
<span
class=
"nav-icon favor-submit login-event"
data-ajax-url=
"{{:MyUrl('index/goods/favor')}}"
>
<i
class=
"am-icon-heart am-icon-fw"
></i>
<em
class=
"goods-favor-text"
>
收藏
</em>
<em
class=
"goods-favor-count"
>
({{$goods.favor_count}})
</em>
</span>
{{/if}}
<!-- 商品页面基础信息购买小导航里面钩子 -->
{{if isset($shopxo_is_develop) and $shopxo_is_develop eq true and (!isset($is_footer) or $is_footer eq 1)}}
<div
class=
"plugins-tag"
>
<span>
plugins_view_goods_detail_base_buy_nav_min_inside
</span>
</div>
{{/if}}
{{if !empty($plugins_view_goods_detail_base_buy_nav_min_inside_data) and is_array($plugins_view_goods_detail_base_buy_nav_min_inside_data)}}
{{foreach $plugins_view_goods_detail_base_buy_nav_min_inside_data as $hook}}
{{if is_string($hook) or is_int($hook)}}
{{$hook|raw}}
{{/if}}
{{/foreach}}
{{/if}}
</div>
<!-- 站点模式 1 展示型 -->
...
...
public/static/index/default/css/goods.css
浏览文件 @
77051a4a
...
...
@@ -115,10 +115,6 @@ input{font-size:12px;font-size:100%;outline:none;line-height:normal;color:#444;}
.btn.close
{
display
:
block
;
float
:
left
;
position
:
static
;}
i
.buy-event
{
display
:
inline-block
;}
.btn.confirm
{
float
:
right
;
}
.buy-nav
.buy-nav-opt
{
position
:
absolute
;
margin-left
:
283px
;
display
:
block
;
}
.buy-nav
.buy-nav-opt
a
{
display
:
none
;
}
.buy-nav
.buy-nav-opt
.favor-submit
{
width
:
100%
;
border
:
0
;
margin-top
:
5px
;
}
}
@media
only
screen
and
(
min-width
:
1025px
)
{
...
...
@@ -244,12 +240,22 @@ flex: 1 1 0%;line-height: 16px;cursor: pointer;}
/*购物车*/
.tb-btn
button
,
.buy-nav
div
.submit
,
.buy-nav
.buy-nav-opt
,
.buy-nav
spa
n
{
height
:
35px
;
line-height
:
35px
;
}
.tb-btn
button
,
.buy-nav
div
.submit
,
.buy-nav
.buy-nav-opt
,
.buy-nav
.nav-ico
n
{
height
:
35px
;
line-height
:
35px
;
}
.tb-btn
button
{
margin-right
:
0px
;
float
:
left
;
overflow
:
hidden
;
position
:
relative
;
width
:
100%
;
background-color
:
#FFEDED
;
color
:
#d2364c
;
font-size
:
14px
;
text-align
:
center
;
border
:
0
;}
.tb-btn-basket
button
{
background-color
:
#d2364c
;
color
:
#FFF
;}
.buy-nav
.buy-nav-opt
,
.buy-nav
div
.submit
{
float
:
left
;
}
.buy-nav
div
.submit
{
width
:
30%
;
}
.buy-nav
span
{
display
:
inline-block
;
width
:
50%
;
float
:
left
;
;
cursor
:
pointer
;
border-top
:
1px
solid
#f5f5f5
;
border-left
:
1px
solid
#f5f5f5
;}
@media
only
screen
and
(
min-width
:
640px
)
{
.buy-nav
.buy-nav-opt
{
position
:
absolute
;
margin-left
:
220px
;
display
:
block
;
}
.buy-nav
.buy-nav-opt
.nav-icon-home
{
display
:
none
;
}
.buy-nav
.buy-nav-opt
.nav-icon
{
cursor
:
pointer
;
}
.buy-nav
.buy-nav-opt
.nav-icon
:not
(
:last-child
)
{
margin-right
:
10px
;
}
.buy-nav
.buy-nav-opt
{
padding-top
:
8px
;
}
}
@media
only
screen
and
(
max-width
:
640px
)
{
.buy-nav
.nav-icon
{
display
:
inline-block
;
width
:
50%
;
float
:
left
;
;
cursor
:
pointer
;
border-top
:
1px
solid
#f5f5f5
;
border-left
:
1px
solid
#f5f5f5
;
text-align
:
center
;
}
header
{
display
:
none
;
}
}
/*介绍*/
...
...
@@ -288,7 +294,7 @@ ul.detail-attr li {height: 26px;overflow: hidden;line-height: 26px;vertical-alig
.clearfix-right
{
float
:
left
;
width
:
55%
;
min-height
:
270px
;}
.iteminfo_parameter.freight
{
display
:
block
;
margin-top
:
10px
;
margin-bottom
:
10px
;}
.iteminfo_parameter.freight
dt
{
margin-left
:
-70px
;
float
:
left
;
margin-right
:
10px
;
padding-top
:
5px
;
padding-bottom
:
20px
;}
.buy-nav
{
position
:
static
;
margin-top
:
20px
;
}
.buy-nav
{
position
:
static
;
margin-top
:
20px
;
overflow
:
hidden
;
}
ul
.am-avg-sm-4.am-tabs-nav.am-nav.am-nav-tabs
{
width
:
auto
;}
ul
.detail-attr
li
{
display
:
inline
;
float
:
left
;
width
:
33.33%
;}
...
...
@@ -311,8 +317,8 @@ ul.detail-attr li {height: 26px;overflow: hidden;line-height: 26px;vertical-alig
.tb-detail-hd
,
.tb-detail-price
{
text-align
:
left
;}
.tb-detail-hd
h1
{
font-size
:
16px
;}
/*购物
车
*/
.tb-btn-buy
{
margin-
left
:
50px
;
margin-right
:
2
0px
;}
/*购物*/
.tb-btn-buy
{
margin-
right
:
1
0px
;}
.tb-btn
button
{
width
:
98px
;
border
:
1px
solid
#d2364c
;}
.buy-nav
div
.submit
{
width
:
auto
;}
...
...
@@ -393,6 +399,11 @@ ul.detail-attr li {height: 26px;overflow: hidden;line-height: 26px;vertical-alig
.like
li
:nth-of-type
(
4
n
)
{
border-right
:
0px
!important
;
}
.like
li
:nth-of-type
(
3
n
)
{
border-right
:
1px
solid
#eee
;
}
.like
li
:nth-child
(
4
)
{
border-top
:
0px
;
}
/*购物*/
.tb-btn-buy
{
margin-left
:
50px
;
margin-right
:
20px
;}
.buy-nav
.buy-nav-opt
{
margin-left
:
283px
;}
.buy-nav
.buy-nav-opt
.nav-icon
:not
(
:last-child
)
{
margin-right
:
15px
;}
}
@media
only
screen
and
(
min-width
:
1260px
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录