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