Browse Source

购物车下架管理

master
nige 3 years ago
parent
commit
f0478926f9
  1. 12
      pages/user/cartlist/list.js

12
pages/user/cartlist/list.js

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

Loading…
Cancel
Save