修复商品详情页展示内容不正确的问题 review by 黄敬囿
Showing
1 changed file
with
10 additions
and
5 deletions
@@ -164,7 +164,13 @@ export default class ProductDetail extends Component { | @@ -164,7 +164,13 @@ export default class ProductDetail extends Component { | ||
164 | product_qrCode, | 164 | product_qrCode, |
165 | product_skn: productInfo.product_id | 165 | product_skn: productInfo.product_id |
166 | } | 166 | } |
167 | - | 167 | + |
168 | + let seriesObj = { | ||
169 | + text: '系列', | ||
170 | + value: productInfo.series_name | ||
171 | + } | ||
172 | + seriesObj = productInfo.series_name ? [seriesObj]: [] | ||
173 | + | ||
168 | this.setState({ | 174 | this.setState({ |
169 | productInfo: productInfo, | 175 | productInfo: productInfo, |
170 | imageSize: imageSize, | 176 | imageSize: imageSize, |
@@ -178,10 +184,9 @@ export default class ProductDetail extends Component { | @@ -178,10 +184,9 @@ export default class ProductDetail extends Component { | ||
178 | }, { | 184 | }, { |
179 | text: '品牌', | 185 | text: '品牌', |
180 | value: productInfo.brand_name | 186 | value: productInfo.brand_name |
181 | - }, { | ||
182 | - text: '系列', | ||
183 | - value: productInfo.series_name | ||
184 | - }, { | 187 | + }, |
188 | + ...seriesObj | ||
189 | + , { | ||
185 | text: '发售时间', | 190 | text: '发售时间', |
186 | value: productInfo.sale_time | 191 | value: productInfo.sale_time |
187 | }, { | 192 | }, { |
-
Please register or login to post a comment