Authored by zhangwenxue

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

@@ -102,7 +102,7 @@ export default { @@ -102,7 +102,7 @@ export default {
102 return null; 102 return null;
103 }, 103 },
104 canAddSize() { 104 canAddSize() {
105 - return get(this.product, 'goods_list[0].canAddSize', false); 105 + return get(this.product, 'goods_list[0].canAddSize', false) && this.config.type === 'sell';
106 }, 106 },
107 107
108 isAvailable() { 108 isAvailable() {
@@ -115,7 +115,7 @@ export default { @@ -115,7 +115,7 @@ export default {
115 isTradable() { 115 isTradable() {
116 return this.isAvailable && ( 116 return this.isAvailable && (
117 (this.config.type === 'buy' && this.selectedSize.storage_num > 0 && this.selectedSize.least_price !== '-') || 117 (this.config.type === 'buy' && this.selectedSize.storage_num > 0 && this.selectedSize.least_price !== '-') ||
118 - this.isMarketable 118 + this.config.type === 'sell'
119 ); 119 );
120 }, 120 },
121 121