|
@@ -96,11 +96,11 @@
|
|
|
|
|
|
|
|
|
// 商品下架、下架
|
|
|
- function updateStatus(organizeId,id,status) {
|
|
|
+ function updateStatus(id,status) {
|
|
|
+ debugger
|
|
|
var submit = function (v, h, f) {
|
|
|
if (v == true) {
|
|
|
$.post("${ctx}/weisha/cmOrganizeProduct/updateStatus", {
|
|
|
- 'organizeId': organizeId,
|
|
|
'id': id,
|
|
|
'status': status
|
|
|
}, function (data) {
|
|
@@ -215,7 +215,7 @@
|
|
|
</td>
|
|
|
<td>
|
|
|
<a href="${ctx}/weisha/cmOrganizeProduct/form?id=${cmOrganizeProduct.id}">编辑</a>
|
|
|
- <a href="javascript:;" onclick=updateStatus(${organizeId},${cmOrganizeProduct.id},${cmOrganizeProduct.status eq 1?0:1})>${cmOrganizeProduct.status eq 1?'下架':'上架'}</a>
|
|
|
+ <a href="javascript:;" onclick=updateStatus('${cmOrganizeProduct.id}',${cmOrganizeProduct.status eq 1?0:1})>${cmOrganizeProduct.status eq 1?'下架':'上架'}</a>
|
|
|
<a href="${ctx}/weisha/cmOrganizeProduct/delete?id=${cmOrganizeProduct.id}" onclick="return confirmx('确认要删除该商品吗?删除后需要重新添加', this.href)">删除</a>
|
|
|
</td>
|
|
|
</tr>
|