| @@ -126,7 +126,7 @@ export default class MyPage extends Component { | |||||
| curImgState: false, | curImgState: false, | ||||
| merchantRankList: [], | merchantRankList: [], | ||||
| hasRankList: true,// 有排名列表 | hasRankList: true,// 有排名列表 | ||||
| openRankList: true,//开启播放排名 | |||||
| openRankList: false,//开启播放排名 | |||||
| }; | }; | ||||
| @@ -577,10 +577,15 @@ rankDom() { | |||||
| //每一条 rank | //每一条 rank | ||||
| rankItemDom(item,index,animation) { | rankItemDom(item,index,animation) { | ||||
| let fontSizeNum = 40/(PixelRatio.get()); | let fontSizeNum = 40/(PixelRatio.get()); | ||||
| let fontSizeNum02 = 46/(PixelRatio.get()); | |||||
| let curStyleObj = { | let curStyleObj = { | ||||
| width: fontSizeNum, | width: fontSizeNum, | ||||
| height: fontSizeNum, | height: fontSizeNum, | ||||
| } | } | ||||
| let curStyleObj02 = { | |||||
| width: fontSizeNum02, | |||||
| height: fontSizeNum02, | |||||
| } | |||||
| return ( | return ( | ||||
| <Animatable.View animation={animation} style={styles.rankItemBox} key={index}> | <Animatable.View animation={animation} style={styles.rankItemBox} key={index}> | ||||
| <Image style={styles.RankLogo} resizeMode="stretch" source={{uri:item.coverImg}}></Image> | <Image style={styles.RankLogo} resizeMode="stretch" source={{uri:item.coverImg}}></Image> | ||||
| @@ -605,14 +610,14 @@ rankItemDom(item,index,animation) { | |||||
| <View style={styles.rankRun02}> | <View style={styles.rankRun02}> | ||||
| <Text style={styles.starTitle}>人气指数: {item.extInfo.populationIndex} 分</Text> | <Text style={styles.starTitle}>人气指数: {item.extInfo.populationIndex} 分</Text> | ||||
| <View style={{height: fontSizeNum,flexDirection: 'row', alignItems: 'center',marginTop:18/PixelRatio.get()}}> | |||||
| <View style={{height: fontSizeNum,flexDirection: 'row', alignItems: 'center',marginTop:22/PixelRatio.get()}}> | |||||
| <StarRatingBar | <StarRatingBar | ||||
| score={item.extInfo.populationIndex} | score={item.extInfo.populationIndex} | ||||
| allowsHalfStars={true} | allowsHalfStars={true} | ||||
| accurateHalfStars={true} | accurateHalfStars={true} | ||||
| starStyle={curStyleObj} | |||||
| emptyStarImage={<Image style={curStyleObj} resizeMode="stretch" source={require('./image/hot_gray.png')} />} | |||||
| filledStarImage={<Image style={curStyleObj} resizeMode="stretch" source={require('./image/hot_yellow.png')} />} | |||||
| starStyle={curStyleObj02} | |||||
| emptyStarImage={<Image style={curStyleObj02} resizeMode="stretch" source={require('./image/hot_gray.png')} />} | |||||
| filledStarImage={<Image style={curStyleObj02} resizeMode="stretch" source={require('./image/hot_yellow.png')} />} | |||||
| scoreTextStyle={{color:'transparent'}} | scoreTextStyle={{color:'transparent'}} | ||||
| /> | /> | ||||
| </View> | </View> | ||||
| @@ -1607,7 +1612,7 @@ MyPage = CodePush(codePushOptions)(MyPage); | |||||
| rankRun02: { | rankRun02: { | ||||
| marginTop: 12/PixelRatio.get(), | marginTop: 12/PixelRatio.get(), | ||||
| marginLeft: -18/PixelRatio.get(), | |||||
| marginLeft: -12/PixelRatio.get(), | |||||
| }, | }, | ||||
| merchantText: { | merchantText: { | ||||