修改 优惠劵样式的bug review by chenlin
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -79,8 +79,8 @@ export default class CouponCell extends React.Component { | @@ -79,8 +79,8 @@ export default class CouponCell extends React.Component { | ||
79 | moneySize = {fontSize:25}; | 79 | moneySize = {fontSize:25}; |
80 | name = {marginLeft: 1,marginTop: 0,width: 160,height: 60,alignItems: 'center',justifyContent:'center',flexDirection:'row'}; | 80 | name = {marginLeft: 1,marginTop: 0,width: 160,height: 60,alignItems: 'center',justifyContent:'center',flexDirection:'row'}; |
81 | nameSize = {fontSize:15}; | 81 | nameSize = {fontSize:15}; |
82 | - statesTitleStyle = {alignItems:'center',marginTop: 5,width: cellOneBack,height: 60}; | ||
83 | - states = {marginTop: rowData.status?6:10,fontSize:9,width: 10,height: 60}; | 82 | + statesTitleStyle = {alignItems:'center',width: cellOneBack,height: 60}; |
83 | + states = {marginTop: rowData.status==1?6:10,fontSize:9,width: 10,height: 60}; | ||
84 | }else { | 84 | }else { |
85 | backgroundImage = require('../../../../image/coupons_s_r.png'); | 85 | backgroundImage = require('../../../../image/coupons_s_r.png'); |
86 | backImage = {width: cellUpOneWidth,height: 60}; | 86 | backImage = {width: cellUpOneWidth,height: 60}; |
@@ -92,7 +92,7 @@ export default class CouponCell extends React.Component { | @@ -92,7 +92,7 @@ export default class CouponCell extends React.Component { | ||
92 | name = {marginLeft: 10,marginTop: 1,width: 80,height: 30}; | 92 | name = {marginLeft: 10,marginTop: 1,width: 80,height: 30}; |
93 | nameSize = {fontSize:9}; | 93 | nameSize = {fontSize:9}; |
94 | statesTitleStyle = {alignItems:'center',marginTop: 5,width: cellUpOneBack,height: 60}; | 94 | statesTitleStyle = {alignItems:'center',marginTop: 5,width: cellUpOneBack,height: 60}; |
95 | - states = {marginTop: rowData.status?6:10,fontSize:9,width: 10,height: 60}; | 95 | + states = {marginTop: rowData.status==1?6:10,fontSize:9,width: 10,height: 60}; |
96 | } | 96 | } |
97 | 97 | ||
98 | return ( | 98 | return ( |
-
Please register or login to post a comment