Authored by zhangwenxue

商品详情: 修改出售条件为都可出售

... ... @@ -102,7 +102,7 @@ export default {
return null;
},
canAddSize() {
return get(this.product, 'goods_list[0].canAddSize', false);
return get(this.product, 'goods_list[0].canAddSize', false) && this.config.type === 'sell';
},
isAvailable() {
... ... @@ -115,7 +115,7 @@ export default {
isTradable() {
return this.isAvailable && (
(this.config.type === 'buy' && this.selectedSize.storage_num > 0 && this.selectedSize.least_price !== '-') ||
this.isMarketable
this.config.type === 'sell'
);
},
... ...