| @@ -497,6 +497,7 @@ renderRankDom() { | |||||
| } | } | ||||
| //每一条 rank | //每一条 rank | ||||
| rankItemDom(item) { | rankItemDom(item) { | ||||
| let fontSizeNum = 34/PixelRatio.get(); | |||||
| return ( | return ( | ||||
| <View style={styles.rankItemBox}> | <View style={styles.rankItemBox}> | ||||
| {/* <ImageBackground source={require('./image/item-background.png')} resizeMode="stretch" style={styles.rankItemBg}> */} | {/* <ImageBackground source={require('./image/item-background.png')} resizeMode="stretch" style={styles.rankItemBg}> */} | ||||
| @@ -509,8 +510,8 @@ rankItemDom(item) { | |||||
| score={item.starNum} | score={item.starNum} | ||||
| allowsHalfStars={true} | allowsHalfStars={true} | ||||
| accurateHalfStars={true} | accurateHalfStars={true} | ||||
| emptyStarImage={<Image style={styles.starImg} source={require('./image/star_gray.png')} />} | |||||
| filledStarImage={<Image style={styles.starImg} source={require('./image/star_gold.png')} />} | |||||
| emptyStarImage={<Image style={{width:fontSizeNum,height:fontSizeNum}} source={require('./image/star_gray.png')} />} | |||||
| filledStarImage={<Image style={{width:fontSizeNum,height:fontSizeNum}} source={require('./image/star_gold.png')} />} | |||||
| scoreTextStyle={{color:'#fff'}} | scoreTextStyle={{color:'#fff'}} | ||||
| /> | /> | ||||
| </View> | </View> | ||||
| @@ -521,8 +522,8 @@ rankItemDom(item) { | |||||
| score={item.starNum} | score={item.starNum} | ||||
| allowsHalfStars={true} | allowsHalfStars={true} | ||||
| accurateHalfStars={true} | accurateHalfStars={true} | ||||
| emptyStarImage={<Image style={styles.starImg} source={require('./image/hot_gray.png')} />} | |||||
| filledStarImage={<Image style={styles.starImg} source={require('./image/hot_gold.png')} />} | |||||
| emptyStarImage={<Image style={{width:fontSizeNum,height:fontSizeNum}} source={require('./image/hot_gray.png')} />} | |||||
| filledStarImage={<Image style={{width:fontSizeNum,height:fontSizeNum}} source={require('./image/hot_gold.png')} />} | |||||
| scoreTextStyle={{color:'#fff'}} | scoreTextStyle={{color:'#fff'}} | ||||
| /> | /> | ||||
| </View> | </View> | ||||
| @@ -1447,18 +1448,13 @@ MyPage = CodePush(codePushOptions)(MyPage); | |||||
| marginLeft: 10/PixelRatio.get(), | marginLeft: 10/PixelRatio.get(), | ||||
| }, | }, | ||||
| starImg: { | |||||
| width: 30/PixelRatio.get(), | |||||
| height: 30/PixelRatio.get(), | |||||
| }, | |||||
| starTitle: { | starTitle: { | ||||
| fontSize: 30/PixelRatio.get(), | |||||
| fontSize: 34/PixelRatio.get(), | |||||
| }, | }, | ||||
| merchantText: { | merchantText: { | ||||
| fontSize: 40/PixelRatio.get(), | |||||
| fontWeight : 'bold', | fontWeight : 'bold', | ||||
| marginBottom:10/PixelRatio.get(), | marginBottom:10/PixelRatio.get(), | ||||
| marginTop:10/PixelRatio.get(), | marginTop:10/PixelRatio.get(), | ||||