Authored by QC-L

更新部分UI界面效果 review by 黄敬囿

@@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
28 display: inline-block; 28 display: inline-block;
29 29
30 &.actived { 30 &.actived {
  31 + font-weight: 500;
31 font-size: 40px; 32 font-size: 40px;
32 color: #000; 33 color: #000;
33 box-sizing: border-box; 34 box-sizing: border-box;
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 } 15 }
16 16
17 .product-price { 17 .product-price {
18 - height: 60px; 18 + height: 40px;
19 text-align: left; 19 text-align: left;
20 font-family: DINAlternate-Bold; 20 font-family: DINAlternate-Bold;
21 font-size: 28px; 21 font-size: 28px;
1 .swiper-bg { 1 .swiper-bg {
2 height: 280px; 2 height: 280px;
3 width: 100%; 3 width: 100%;
4 - margin-top: 20px; 4 + margin-top: 32px;
5 overflow: hidden; 5 overflow: hidden;
6 .index-swiper { 6 .index-swiper {
7 padding-left: 40px; 7 padding-left: 40px;
@@ -75,15 +75,21 @@ export default class SelectSize extends Component { @@ -75,15 +75,21 @@ export default class SelectSize extends Component {
75 sizeLength > 0 && 75 sizeLength > 0 &&
76 <View className="size-list"> 76 <View className="size-list">
77 { 77 {
78 - sizeList.map(item => { 78 + sizeList.map((item, index) => {
79 let price; 79 let price;
80 if (item.storage_num > 0) { 80 if (item.storage_num > 0) {
81 price = ${item.least_price}`; 81 price = ${item.least_price}`;
82 } else { 82 } else {
83 price = '-'; 83 price = '-';
84 } 84 }
  85 + let rightStyle = ''
  86 + if (index !== 0 && index % 5 === 0) {
  87 + rightStyle = 'right-border'
  88 + } else if (index === sizeLength - 1) {
  89 + rightStyle = 'right-border'
  90 + }
85 return ( 91 return (
86 - <View key={item.size_id} className={curSelect === item.size_id ? `actived ${sizeStyle}` : sizeStyle} onClick={this.onChangeSize.bind(this, item)}> 92 + <View key={item.size_id} className={curSelect === item.size_id ? `actived ${sizeStyle}` : `${sizeStyle} ${rightStyle}`} onClick={this.onChangeSize.bind(this, item)}>
87 <View className={item.storage_num > 0 ? 'size' : 'size gray'}>{item.size_name}</View> 93 <View className={item.storage_num > 0 ? 'size' : 'size gray'}>{item.size_name}</View>
88 { 94 {
89 curSelect !== item.size_id && 95 curSelect !== item.size_id &&
@@ -45,7 +45,8 @@ @@ -45,7 +45,8 @@
45 45
46 46
47 .size-item { 47 .size-item {
48 - border: 2px solid #ddd; 48 + border-left: 2px solid #ddd;
  49 + border-bottom: 2px solid #ddd;
49 box-sizing: border-box; 50 box-sizing: border-box;
50 text-align: center; 51 text-align: center;
51 width: 20%; 52 width: 20%;
@@ -54,10 +55,12 @@ @@ -54,10 +55,12 @@
54 flex-direction: column; 55 flex-direction: column;
55 align-items: center; 56 align-items: center;
56 justify-content: center; 57 justify-content: center;
57 -  
58 &.top-border { 58 &.top-border {
59 border-top: 2px solid #ddd; 59 border-top: 2px solid #ddd;
60 } 60 }
  61 + &.right-border {
  62 + border-right: 2px solid #ddd;
  63 + }
61 64
62 .size { 65 .size {
63 width: 100%; 66 width: 100%;
@@ -85,6 +88,7 @@ @@ -85,6 +88,7 @@
85 color: #999999; 88 color: #999999;
86 } 89 }
87 } 90 }
  91 +
88 } 92 }
89 93
90 .buy-btn { 94 .buy-btn {