Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
starsw001
ShopXO
提交
e45bd57a
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,发现更多精彩内容 >>
提交
e45bd57a
编写于
7月 24, 2019
作者:
G
gongfuxiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
商品详情优化
上级
2e4d73d6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
4 deletion
+22
-4
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
+3
-3
public/static/index/default/js/goods.js
public/static/index/default/js/goods.js
+18
-0
未找到文件。
application/index/view/default/goods/index.html
浏览文件 @
e45bd57a
...
...
@@ -176,7 +176,7 @@
<div
class=
"items price iteminfo_price"
>
<dt>
{{$goods.show_field_original_price_text|raw}}
</dt>
<dd>
<b
class=
"sys_item_mktprice"
>
¥ {{$goods.original_price}}
</b>
<b
class=
"sys_item_mktprice"
data-original-price=
"{{$goods.original_price}}"
>
¥ {{$goods.original_price}}
</b>
</dd>
</div>
{{/if}}
...
...
public/static/index/default/css/goods.css
浏览文件 @
e45bd57a
...
...
@@ -37,7 +37,7 @@ input{font-size:12px;font-size:100%;outline:none;line-height:normal;color:#444;}
.theme-signin-left
{
padding-bottom
:
30px
;
max-height
:
250px
;
overflow-y
:
scroll
;
background
:
#fff
;}
.theme-options
{
display
:
block
;
overflow
:
hidden
;
padding-left
:
10px
;
padding-right
:
10px
;
margin-bottom
:
5px
;}
.theme-signin-left
.cart-title
{
font-size
:
14px
;
font-weight
:
600
;}
.theme-signin-left
.sku-line
{
float
:
left
;
margin
:
10px
;
margin-left
:
0
;
border-radius
:
3px
;
background
:
#efefef
;
padding
:
0
px
8px
;
border
:
1px
solid
#d5d5d5
;}
.theme-signin-left
.sku-line
{
float
:
left
;
margin
:
10px
;
margin-left
:
0
;
border-radius
:
3px
;
background
:
#efefef
;
padding
:
3
px
8px
;
border
:
1px
solid
#d5d5d5
;}
.theme-signin-left
.sku-line.selected
{
background
:
#d2364c
;
color
:
#fff
;
border
:
1px
solid
#d2364c
;}
.sku-line-images
{
padding
:
3px
!important
;
}
.sku-line-images
img
{
width
:
30px
;
height
:
30px
;
vertical-align
:
middle
;
}
...
...
@@ -91,7 +91,7 @@ input{font-size:12px;font-size:100%;outline:none;line-height:normal;color:#444;}
.theme-options
.cart-title
{
margin-top
:
5px
;}
.theme-options
ul
{
float
:
left
;}
.theme-signin-left
.sku-line
{
background
:
none
;
border-radius
:
0
;
margin
:
5px
;
padding
:
0px
8px
;
border
:
1px
solid
#d5d5d5
;
color
:
#333
;
background-color
:
#f5f5f5
;
}
.theme-signin-left
.sku-line
{
background
:
none
;
border-radius
:
0
;
margin
:
5px
;
border
:
1px
solid
#d5d5d5
;
color
:
#333
;
background-color
:
#f5f5f5
;
}
.theme-signin-left
.sku-line.selected
,
.theme-signin-left
.sku-line
:hover
{
background
:
none
;
color
:
#333
;
border
:
1px
solid
#e23f36
;
box-shadow
:
0px
0
0px
1px
#e23f36
;
}
/*选中样式*/
...
...
@@ -359,7 +359,7 @@ ul.detail-attr li {height: 26px;overflow: hidden;line-height: 26px;vertical-alig
.theme-options
{
overflow
:
visible
;
padding
:
0px
0px
;
margin-bottom
:
5px
;}
.theme-options
ul
{
overflow
:
hidden
;
float
:
none
;}
.theme-signin-left
{
max-width
:
100%
;
margin-bottom
:
0
;}
.theme-signin-left
.sku-line
{
margin
:
5px
;
cursor
:
pointer
;
padding
:
0px
8px
;
}
.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
;}
.scoll
{
display
:
none
;}
...
...
public/static/index/default/js/goods.js
浏览文件 @
e45bd57a
...
...
@@ -377,6 +377,7 @@ function GoodsSpecType()
function
GoodsBaseRestore
()
{
$
(
'
.text-info .price-now
'
).
text
(
'
¥
'
+
$
(
'
.text-info .price-now
'
).
data
(
'
original-price
'
));
$
(
'
.sys_item_mktprice
'
).
text
(
$
(
'
.sys_item_mktprice
'
).
data
(
'
original-price
'
));
$
(
'
.sys_item_price
'
).
text
(
$
(
'
.sys_item_price
'
).
data
(
'
original-price
'
));
$
(
'
.number-tag input[type="number"]
'
).
attr
(
'
max
'
,
$
(
'
.number-tag input[type="number"]
'
).
data
(
'
original-max
'
));
$
(
'
.stock-tips .stock
'
).
text
(
$
(
'
.stock-tips .stock
'
).
data
(
'
original-stock
'
));
...
...
@@ -593,6 +594,23 @@ $(function() {
var
max
=
$
(
'
.stock-tips .stock
'
).
data
(
'
max-limit
'
)
||
0
;
var
unit
=
$
(
'
.stock-tips .stock
'
).
data
(
'
unit
'
)
||
''
;
// 手动输入
$sotck
.
on
(
'
blur
'
,
function
()
{
var
number
=
parseInt
(
$
(
this
).
val
());
var
inventory
=
parseInt
(
$
(
'
.stock-tips .stock
'
).
text
());
if
(
number
>
inventory
)
{
number
=
inventory
;
}
if
(
number
<=
1
)
{
number
=
1
;
}
$sotck
.
val
(
number
);
console
.
log
(
number
)
});
//数量增加操作
$
(
'
#add
'
).
on
(
'
click
'
,
function
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录