From 0f3f9f0136e77721e27efd3f8f409f957553d814 Mon Sep 17 00:00:00 2001 From: caserKing Date: Mon, 16 Sep 2019 20:41:08 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A4=A7=E5=B1=8F=E3=80=91=E3=80=90?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E3=80=91=E3=80=90=E5=95=86=E6=88=B7=E6=8E=92?= =?UTF-8?q?=E8=A1=8C=E5=AD=97=E5=8F=B7=E8=B0=83=E6=95=B42=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/App.js b/App.js index 4b7b545..9d8d47f 100644 --- a/App.js +++ b/App.js @@ -497,6 +497,7 @@ renderRankDom() { } //每一条 rank rankItemDom(item) { + let fontSizeNum = 34/PixelRatio.get(); return ( {/* */} @@ -509,8 +510,8 @@ rankItemDom(item) { score={item.starNum} allowsHalfStars={true} accurateHalfStars={true} - emptyStarImage={} - filledStarImage={} + emptyStarImage={} + filledStarImage={} scoreTextStyle={{color:'#fff'}} /> @@ -521,8 +522,8 @@ rankItemDom(item) { score={item.starNum} allowsHalfStars={true} accurateHalfStars={true} - emptyStarImage={} - filledStarImage={} + emptyStarImage={} + filledStarImage={} scoreTextStyle={{color:'#fff'}} /> @@ -1447,18 +1448,13 @@ MyPage = CodePush(codePushOptions)(MyPage); marginLeft: 10/PixelRatio.get(), }, - - starImg: { - width: 30/PixelRatio.get(), - height: 30/PixelRatio.get(), - - }, starTitle: { - fontSize: 30/PixelRatio.get(), + fontSize: 34/PixelRatio.get(), }, merchantText: { + fontSize: 40/PixelRatio.get(), fontWeight : 'bold', marginBottom:10/PixelRatio.get(), marginTop:10/PixelRatio.get(),