diff --git a/App.js b/App.js index 9d8d47f..580ddb3 100644 --- a/App.js +++ b/App.js @@ -490,16 +490,16 @@ getContentViewItemMerchantName(contentItem) { //排名 rank dom renderRankDom() { let rankDomStack = []; - adDataList.map((item) => { - rankDomStack.push(this.rankItemDom(item)); + adDataList.map((item,index) => { + rankDomStack.push(this.rankItemDom(item,index)); }) return rankDomStack; } //每一条 rank -rankItemDom(item) { - let fontSizeNum = 34/PixelRatio.get(); +rankItemDom(item,index) { + let fontSizeNum = 40/(PixelRatio.get()); return ( - + {/* */} @@ -511,7 +511,7 @@ rankItemDom(item) { allowsHalfStars={true} accurateHalfStars={true} emptyStarImage={} - filledStarImage={} + filledStarImage={} scoreTextStyle={{color:'#fff'}} /> @@ -523,7 +523,7 @@ rankItemDom(item) { allowsHalfStars={true} accurateHalfStars={true} emptyStarImage={} - filledStarImage={} + filledStarImage={} scoreTextStyle={{color:'#fff'}} /> @@ -1408,6 +1408,7 @@ MyPage = CodePush(codePushOptions)(MyPage); }, //排名的列表样式 rankItemBox: { + position: 'relative', flex: 1, flexDirection: 'row', alignItems: 'center', @@ -1446,18 +1447,20 @@ MyPage = CodePush(codePushOptions)(MyPage); width: 220/PixelRatio.get(), height: 220/PixelRatio.get(), marginLeft: 10/PixelRatio.get(), - + position: 'absolute', + top: 34/PixelRatio.get(), + right: 20/PixelRatio.get(), }, starTitle: { - fontSize: 34/PixelRatio.get(), + fontSize: 30/PixelRatio.get(), }, merchantText: { - fontSize: 40/PixelRatio.get(), + fontSize: 34/PixelRatio.get(), fontWeight : 'bold', - marginBottom:10/PixelRatio.get(), - marginTop:10/PixelRatio.get(), + marginBottom: 10/PixelRatio.get(), + marginTop: 6/PixelRatio.get(), } }); diff --git a/image/hot_gold.png b/image/hot_gold.png deleted file mode 100644 index 71365e0..0000000 Binary files a/image/hot_gold.png and /dev/null differ diff --git a/image/hot_red.png b/image/hot_red.png new file mode 100644 index 0000000..9ea183f Binary files /dev/null and b/image/hot_red.png differ diff --git a/image/star_gold.png b/image/star_gold.png deleted file mode 100644 index d5c0c8e..0000000 Binary files a/image/star_gold.png and /dev/null differ diff --git a/image/star_red.png b/image/star_red.png new file mode 100644 index 0000000..5c0a7ec Binary files /dev/null and b/image/star_red.png differ