方法一:
1.复制以下JS代码,添加到 js/common.js 的最后
function cart_number(txt_id, type, num)
{
var source_num =
parseInt(txt.value);
if (type ==
'+')
else if (type ==
'-')
2.在flow.dwt中找到购买数量的文本框,在他的前后分别加上
<a
href="javascript:cart_number('goods_number_{$goods.rec_id}',
'-');">-</a>
<a
href="javascript:cart_number('goods_number_{$goods.rec_id}',
'+');">+</a>
在flow.dwt中找到购买数量的文本框,在他的前后分别加上
<IMG style="PADDING-LEFT: 0px; CURSOR:
pointer"
onclick='if
(document.getElementByIdx_x("number").value>1){document.getElementByIdx_x("number").value--;}'
src="images/down.gif"
>
value=1 name=cart_quantity>
<IMG
style="PADDING-RIGHT: 30px; MARGIN: 0px; WIDTH: 25px; CURSOR:
pointer"
src="images/up.gif" >
联系客服