|
|
@@ -502,27 +502,27 @@ rankItemDom(item) { |
|
|
|
{/* <ImageBackground source={require('./image/item-background.png')} resizeMode="stretch" style={styles.rankItemBg}> */} |
|
|
|
<Image style={styles.RankLogo} resizeMode="stretch" source={{uri:item.logoUrl}}></Image> |
|
|
|
<View style={styles.rankContent}> |
|
|
|
<Text style={{fontWeight : 'bold'}}>{item.merchantName}</Text> |
|
|
|
<Text style={styles.merchantText}>{item.merchantName}</Text> |
|
|
|
<View style={styles.rankRun}> |
|
|
|
<Text>经营指数: {item.starNum} 分</Text> |
|
|
|
<Text style={styles.starTitle}>经营指数: {item.starNum} 分</Text> |
|
|
|
<StarRatingBar |
|
|
|
score={item.starNum} |
|
|
|
allowsHalfStars={true} |
|
|
|
accurateHalfStars={true} |
|
|
|
emptyStarImage={<Image style={{width:16, height: 16}} source={require('./image/star_gray.png')} />} |
|
|
|
filledStarImage={<Image style={{width:16, height: 16}} source={require('./image/star_gold.png')} />} |
|
|
|
emptyStarImage={<Image style={styles.starImg} source={require('./image/star_gray.png')} />} |
|
|
|
filledStarImage={<Image style={styles.starImg} source={require('./image/star_gold.png')} />} |
|
|
|
scoreTextStyle={{color:'#fff'}} |
|
|
|
/> |
|
|
|
</View> |
|
|
|
|
|
|
|
<View style={styles.rankRun}> |
|
|
|
<Text>人气指数: {item.starNum} 分</Text> |
|
|
|
<Text style={styles.starTitle}>人气指数: {item.starNum} 分</Text> |
|
|
|
<StarRatingBar |
|
|
|
score={item.starNum} |
|
|
|
allowsHalfStars={true} |
|
|
|
accurateHalfStars={true} |
|
|
|
emptyStarImage={<Image style={{width:16, height: 16}} source={require('./image/hot_gray.png')} />} |
|
|
|
filledStarImage={<Image style={{width:16, height: 16}} source={require('./image/hot_gold.png')} />} |
|
|
|
emptyStarImage={<Image style={styles.starImg} source={require('./image/hot_gray.png')} />} |
|
|
|
filledStarImage={<Image style={styles.starImg} source={require('./image/hot_gold.png')} />} |
|
|
|
scoreTextStyle={{color:'#fff'}} |
|
|
|
/> |
|
|
|
</View> |
|
|
@@ -1446,6 +1446,22 @@ MyPage = CodePush(codePushOptions)(MyPage); |
|
|
|
height: 220/PixelRatio.get(), |
|
|
|
marginLeft: 10/PixelRatio.get(), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
starImg: { |
|
|
|
width: 30/PixelRatio.get(), |
|
|
|
height: 30/PixelRatio.get(), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
starTitle: { |
|
|
|
fontSize: 30/PixelRatio.get(), |
|
|
|
}, |
|
|
|
|
|
|
|
merchantText: { |
|
|
|
fontWeight : 'bold', |
|
|
|
marginBottom:10/PixelRatio.get(), |
|
|
|
marginTop:10/PixelRatio.get(), |
|
|
|
} |
|
|
|
|
|
|
|
}); |