|
|
@ -83,11 +83,13 @@ Page({ |
|
|
let index = e.currentTarget.dataset.index, |
|
|
let index = e.currentTarget.dataset.index, |
|
|
list = this.data.list; |
|
|
list = this.data.list; |
|
|
if (list[index].product.flag != 1 || list[index].sku.flag != 'on') { |
|
|
if (list[index].product.flag != 1 || list[index].sku.flag != 'on') { |
|
|
wx.showToast({ |
|
|
if (!this.data.manageFlag) { |
|
|
title: '产品已下架', |
|
|
wx.showToast({ |
|
|
icon: 'none' |
|
|
title: '产品已下架', |
|
|
}) |
|
|
icon: 'none' |
|
|
return; |
|
|
}) |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
list[index].checked = list[index].checked ? false : true; |
|
|
list[index].checked = list[index].checked ? false : true; |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
|