Преглед на файлове

【大屏】【修改】】星星样式】

tags/jenkins-front-end-screenad-322-v177^0
caserKing преди 5 години
родител
ревизия
fd548b344c
променени са 3 файла, в които са добавени 11 реда и са изтрити 6 реда
  1. +11
    -6
      App.js
  2. Двоични данни
      image/hot_gray.png
  3. Двоични данни
      image/star_gray.png

+ 11
- 6
App.js Целия файл

@@ -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: {


Двоични данни
image/hot_gray.png Целия файл

Преди След
Ширина: 200  |  Височина: 200  |  Големина: 5.4 KiB Ширина: 200  |  Височина: 200  |  Големина: 5.3 KiB

Двоични данни
image/star_gray.png Целия файл

Преди След
Ширина: 200  |  Височина: 200  |  Големина: 5.0 KiB Ширина: 200  |  Височина: 200  |  Големина: 5.7 KiB

Зареждане…
Отказ
Запис