切换导航条
此项目
正在载入...
登录
anyv
/
xkeasy
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
anyv
6 years ago
提交
c0490cca28889319631018e9299bbc36f117e20a
1 个父辈
cc2d3ccc
1 个管道 的构建
通过
耗费 0 秒
1
变更
1
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
10 行增加
和
12 行删除
public/themes/simpleboot3/portal/shopcart/shop_cart.html
public/themes/simpleboot3/portal/shopcart/shop_cart.html
查看文件 @
c0490cc
...
...
@@ -132,7 +132,6 @@
<script
src=
"__TMPL__/public/assets/js/base.js"
></script>
<script
src=
"__TMPL__/public/assets/js/jquery.js"
></script>
<script>
$
(
function
()
{
$
(
".order_newsNum div"
).
on
(
"click"
,
function
(
evt
)
{
if
(
$
(
this
).
text
()
==
"-"
)
{
...
...
@@ -160,11 +159,11 @@
// 单选
$
(
".sh_cartround img"
).
each
(
function
()
{
$
(
this
).
on
(
"click"
,
function
()
{
if
(
$
(
this
).
attr
(
"src"
)
==
"img/39_0.png"
)
{
$
(
this
).
attr
(
"src"
,
"img/39.png"
);
if
(
$
(
this
).
attr
(
"src"
)
==
"__TMPL__/public/assets/images/39_0.png"
)
{
$
(
this
).
attr
(
"src"
,
"__TMPL__/public/assets/images/39.png"
);
calcTotal
();
}
else
{
$
(
this
).
attr
(
"src"
,
"
img
/39_0.png"
);
$
(
this
).
attr
(
"src"
,
"
__TMPL__/public/assets/images
/39_0.png"
);
calcTotal
();
}
});
...
...
@@ -172,13 +171,13 @@
// 全选
$
(
".shop_carts1 img"
).
click
(
function
()
{
if
(
$
(
this
).
attr
(
"src"
)
==
"img/39_1.png"
)
{
$
(
this
).
attr
(
"src"
,
"img/39.png"
);
$
(
".sh_cartround img"
).
attr
(
"src"
,
"img/39.png"
);
calcTotal
();
if
(
$
(
this
).
attr
(
"src"
)
==
"__TMPL__/public/assets/images/39_1.png"
)
{
$
(
this
).
attr
(
"src"
,
"__TMPL__/public/assets/images/39.png"
);
$
(
".sh_cartround img"
).
attr
(
"src"
,
"__TMPL__/public/assets/images/39.png"
);
calcTotal2
();
}
else
{
$
(
this
).
attr
(
"src"
,
"img/39_1.png"
);
$
(
".sh_cartround img"
).
attr
(
"src"
,
"img/39_0.png"
);
$
(
this
).
attr
(
"src"
,
"__TMPL__/public/assets/images/39_1.png"
);
$
(
".sh_cartround img"
).
attr
(
"src"
,
"__TMPL__/public/assets/images/39_0.png"
);
$
(
".zoji span"
).
text
(
"0"
);
}
});
...
...
@@ -197,7 +196,7 @@
// 点击删除
$
(
".shop_remove2"
).
click
(
function
()
{
$
(
$
(
".sh_cartround img"
)).
each
(
function
()
{
if
(
$
(
this
).
attr
(
"src"
)
==
"
img
/39.png"
)
{
if
(
$
(
this
).
attr
(
"src"
)
==
"
__TMPL__/public/assets/images
/39.png"
)
{
$
(
this
)
.
parents
(
"li"
)
.
remove
();
...
...
@@ -239,7 +238,6 @@
$
(
".zoji span"
).
html
(
totalPrice
.
toFixed
(
2
));
}
});
</script>
</body>
...
...
请
注册
或
登录
后发表评论