...
|
...
|
@@ -75,15 +75,21 @@ export default class SelectSize extends Component { |
|
|
sizeLength > 0 &&
|
|
|
<View className="size-list">
|
|
|
{
|
|
|
sizeList.map(item => {
|
|
|
sizeList.map((item, index) => {
|
|
|
let price;
|
|
|
if (item.storage_num > 0) {
|
|
|
price = `¥${item.least_price}`;
|
|
|
} else {
|
|
|
price = '-';
|
|
|
}
|
|
|
let rightStyle = ''
|
|
|
if (index !== 0 && index % 5 === 0) {
|
|
|
rightStyle = 'right-border'
|
|
|
} else if (index === sizeLength - 1) {
|
|
|
rightStyle = 'right-border'
|
|
|
}
|
|
|
return (
|
|
|
<View key={item.size_id} className={curSelect === item.size_id ? `actived ${sizeStyle}` : sizeStyle} onClick={this.onChangeSize.bind(this, item)}>
|
|
|
<View key={item.size_id} className={curSelect === item.size_id ? `actived ${sizeStyle}` : `${sizeStyle} ${rightStyle}`} onClick={this.onChangeSize.bind(this, item)}>
|
|
|
<View className={item.storage_num > 0 ? 'size' : 'size gray'}>{item.size_name}</View>
|
|
|
{
|
|
|
curSelect !== item.size_id &&
|
...
|
...
|
|