|
|
@@ -126,7 +126,7 @@ export default class MyPage extends Component { |
|
|
|
curImgState: false, |
|
|
|
merchantRankList: [], |
|
|
|
hasRankList: true,// 有排名列表 |
|
|
|
openRankList: true,//开启播放排名 |
|
|
|
openRankList: false,//开启播放排名 |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
@@ -577,10 +577,15 @@ rankDom() { |
|
|
|
//每一条 rank |
|
|
|
rankItemDom(item,index,animation) { |
|
|
|
let fontSizeNum = 40/(PixelRatio.get()); |
|
|
|
let fontSizeNum02 = 46/(PixelRatio.get()); |
|
|
|
let curStyleObj = { |
|
|
|
width: fontSizeNum, |
|
|
|
height: fontSizeNum, |
|
|
|
} |
|
|
|
let curStyleObj02 = { |
|
|
|
width: fontSizeNum02, |
|
|
|
height: fontSizeNum02, |
|
|
|
} |
|
|
|
return ( |
|
|
|
<Animatable.View animation={animation} style={styles.rankItemBox} key={index}> |
|
|
|
<Image style={styles.RankLogo} resizeMode="stretch" source={{uri:item.coverImg}}></Image> |
|
|
@@ -605,14 +610,14 @@ rankItemDom(item,index,animation) { |
|
|
|
|
|
|
|
<View style={styles.rankRun02}> |
|
|
|
<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 |
|
|
|
score={item.extInfo.populationIndex} |
|
|
|
allowsHalfStars={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'}} |
|
|
|
/> |
|
|
|
</View> |
|
|
@@ -1607,7 +1612,7 @@ MyPage = CodePush(codePushOptions)(MyPage); |
|
|
|
|
|
|
|
rankRun02: { |
|
|
|
marginTop: 12/PixelRatio.get(), |
|
|
|
marginLeft: -18/PixelRatio.get(), |
|
|
|
marginLeft: -12/PixelRatio.get(), |
|
|
|
}, |
|
|
|
|
|
|
|
merchantText: { |
|
|
|