|
|
|
@ -59,17 +59,18 @@ Page({ |
|
|
|
|
var that = this |
|
|
|
|
|
|
|
|
|
//管到屏蔽
|
|
|
|
|
if (this.data.product && (parseInt(this.data.product['category-id']) === 18)) { |
|
|
|
|
wx.showModal({ |
|
|
|
|
title: '管到商品暂未开放', |
|
|
|
|
content: '目前无法在小程序上购买管到商品,如有需要,可以在巴爷微信商城上进行购买。', |
|
|
|
|
showCancel: false, |
|
|
|
|
success: function(res) {} |
|
|
|
|
}) |
|
|
|
|
return |
|
|
|
|
if (!app.globalData.featureManager.enableGuanDao) { |
|
|
|
|
if (this.data.product && (parseInt(this.data.product['category-id']) === 18)) { |
|
|
|
|
wx.showModal({ |
|
|
|
|
title: '管到商品暂未开放', |
|
|
|
|
content: '目前无法在小程序上购买管到商品,如有需要,可以在巴爷微信商城上进行购买。', |
|
|
|
|
showCancel: false, |
|
|
|
|
success: function(res) {} |
|
|
|
|
}) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var cartItems = wx.getStorageSync('cartItems') || [] |
|
|
|
|
|
|
|
|
|
var exist = cartItems.filter(function(ele){ |
|
|
|
|