Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jcy2004x
ShopXO
提交
f8719f53
ShopXO
项目概览
jcy2004x
/
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 搜索 >>
提交
f8719f53
编写于
8月 16, 2020
作者:
D
devil
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节优化
上级
364c0f54
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
31 addition
and
10 deletion
+31
-10
application/index/view/default/goods/index.html
application/index/view/default/goods/index.html
+1
-1
public/static/index/default/css/goods.css
public/static/index/default/css/goods.css
+2
-2
public/static/index/default/css/index.css
public/static/index/default/css/index.css
+4
-2
public/static/index/default/js/goods.js
public/static/index/default/js/goods.js
+24
-5
未找到文件。
application/index/view/default/goods/index.html
浏览文件 @
f8719f53
...
...
@@ -242,7 +242,7 @@
<!--各种规格-->
{{if $goods['is_shelves'] == 1 and $goods['inventory'] gt 0}}
<dl
class=
"iteminfo_parameter sys_item_specpara"
>
<dt
class=
"buy-event
login
-event"
data-type=
"buy"
>
<dt
class=
"buy-event
mini-spec
-event"
data-type=
"buy"
>
<div
class=
"cart-title"
>
<span
class=
"specpara-title"
>
可选规格
</span>
<span
class=
"am-icon-angle-right"
></span>
...
...
public/static/index/default/css/goods.css
浏览文件 @
f8719f53
...
...
@@ -149,7 +149,6 @@ fieldset legend{margin-left:15px;padding-left:3px;padding-right:3px;color:#333;}
.introduce-main
.am-nav-tabs
>
li
{
border-top
:
2px
solid
#f5f5f5
;}
.introduce-main
.am-nav-tabs
>
li
.am-active
{
border-bottom
:
2px
solid
#F03726
;
}
/*导航*/
.introduce
ul
.am-tabs-nav.am-nav.am-nav-tabs
{
background
:
#F5F5F5
;}
.introduce
.am-nav-tabs
,
.introduce
.am-tabs-bd
{
border-color
:
transparent
;}
...
...
@@ -176,6 +175,7 @@ fieldset legend{margin-left:15px;padding-left:3px;padding-right:3px;color:#333;}
/*商品详细页*/
.simple-desc
{
color
:
#f00
;
}
.tb-detail-hd
h1
,
.simple-desc
{
word-break
:
break-all
;
}
/*价格*/
.tb-detail-price
{
text-align
:
left
;
position
:
relative
;}
...
...
@@ -368,7 +368,7 @@ ul.detail-attr li {height: 26px;overflow: hidden;line-height: 26px;vertical-alig
.theme-options
ul
{
overflow
:
hidden
;
float
:
none
;}
.theme-signin-left
{
max-width
:
100%
;
margin-bottom
:
0
;}
.theme-signin-left
.sku-line
{
cursor
:
pointer
;
}
.theme-signin-left
.cart-title
{
margin-left
:
-46px
;
font-size
:
12px
;
font-weight
:
100
;
color
:
#888
;
float
:
left
;}
.theme-signin-left
.cart-title
{
margin-left
:
-46px
;
font-size
:
12px
;
font-weight
:
100
;
float
:
left
;}
.scoll
{
display
:
none
;}
.item-inform
{
max-width
:
1000px
;
background
:
#fff
;
margin-top
:
20px
;
margin-bottom
:
30px
;
}
...
...
public/static/index/default/css/index.css
浏览文件 @
f8719f53
...
...
@@ -44,6 +44,10 @@ text-align: center;float:none}
/*楼层商品*/
.floor
.goods-list
.goods-items
{
background-color
:
#fff
;
position
:
relative
;
overflow
:
hidden
;
}
.floor
li
{
width
:
50%
;
float
:
left
;
text-align
:
center
;}
.floor
.goods-list
.goods-items
.goods-images
,
.aggregation
.outer-con
img
,
.small-nav
img
{
max-width
:
100%
;
}
.floor
.goods-list
.goods-items
.goods-images
{
padding
:
10px
;
}
@media
only
screen
and
(
min-width
:
480px
)
{
.small-nav
img
{
max-width
:
100%
;
max-height
:
100%
;}
.small-nav
{
font-size
:
14px
;}
...
...
@@ -74,7 +78,6 @@ text-align: center;float:none}
.outer-con
.describe
{
font-size
:
14px
;
font-weight
:
600
;}
.goods-title
,
.outer-con
.price
{
font-size
:
14px
;
}
.floor
.goods-list
.goods-items
{
float
:
left
;
width
:
25%
;
padding
:
10px
15px
;
border-right
:
1px
solid
;
border-bottom
:
1px
solid
;
border-color
:
#eee
;
}
.floor
.goods-list
.goods-items
.goods-images
{
max-width
:
100%
;
padding
:
10px
;
}
.floor
.aggregation
img
{
position
:
absolute
;
top
:
auto
;
left
:
0
;
bottom
:
0
;
max-width
:
100%
;}
/*楼层 hover*/
...
...
@@ -176,7 +179,6 @@ text-align: center;float:none}
.aggregation
.word
{
padding
:
10px
;
}
.word
.outer
{
width
:
calc
(
33%
-
12px
);
}
.floor
.goods-list
.goods-items
{
width
:
50%
;
float
:
left
;
padding
:
10px
;
border-bottom
:
1px
solid
#eee
;
}
.floor
.goods-list
.goods-items
.goods-images
{
padding
:
10px
;
}
.floor
.goods-list
.goods-items
:nth-of-type
(
2
n
+
1
)
{
border-right
:
1px
solid
#eee
;
}
.floor
.goods-list
.goods-items
:nth-of-type
(
2
n
)
{
border-left
:
1px
solid
transparent
;
}
}
\ No newline at end of file
public/static/index/default/js/goods.js
浏览文件 @
f8719f53
...
...
@@ -388,6 +388,23 @@ function GoodsBaseRestore()
}
}
/**
* 规格选择显示
* @author Devil
* @blog http://gong.gg/
* @version 1.0.0
* @date 2020-08-16
* @desc description
*/
function
SpecPopupShow
()
{
$
(
document
.
body
).
css
(
'
position
'
,
'
fixed
'
);
$
(
'
.theme-popover-mask
'
).
show
();
$
(
'
.theme-popover
'
).
slideDown
(
200
);
$
(
'
.theme-popover .confirm
'
).
attr
(
'
data-type
'
,
$
(
this
).
data
(
'
type
'
));
}
$
(
function
()
{
// 商品规格选择
$
(
'
.theme-options
'
).
each
(
function
()
...
...
@@ -472,17 +489,19 @@ $(function() {
$
(
'
.jqzoom
'
).
attr
(
'
rel
'
,
$
(
this
).
find
(
'
img
'
).
attr
(
'
big
'
));
});
// 规格选择显示事件
$
(
'
.mini-spec-event
'
).
on
(
'
click
'
,
function
()
{
SpecPopupShow
();
});
//弹出规格选择
$
(
'
.buy-event
'
).
on
(
'
click
'
,
function
()
{
if
(
$
(
window
).
width
()
<
1025
)
{
// 是否登录
if
(
__user_id__
!=
0
)
{
$
(
document
.
body
).
css
(
'
position
'
,
'
fixed
'
);
$
(
'
.theme-popover-mask
'
).
show
();
$
(
'
.theme-popover
'
).
slideDown
(
200
);
$
(
'
.theme-popover .confirm
'
).
attr
(
'
data-type
'
,
$
(
this
).
data
(
'
type
'
));
SpecPopupShow
();
}
}
else
{
PoptitPcShow
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录