| @@ -485,8 +485,18 @@ getContentViewItem(contentItem, annomation) { | |||||
| actionText = this.getContentViewItemActionStr(contentItem); | actionText = this.getContentViewItemActionStr(contentItem); | ||||
| merchantName = this.getContentViewItemMerchantName(contentItem); | merchantName = this.getContentViewItemMerchantName(contentItem); | ||||
| //aaa | |||||
| // contentItem.target.salePriceStr = 234005.8; | |||||
| // console.warn(annomation) | // console.warn(annomation) | ||||
| let curNumStr = contentItem.target.salePriceStr+''; | |||||
| let curStyleObj = {}; | |||||
| if (curNumStr.length > 5 || Number(curNumStr) > 10000) { | |||||
| curStyleObj = styles.contentItemTopDetailCurPriceStr02; | |||||
| } else { | |||||
| curStyleObj = styles.contentItemTopDetailCurPriceStr01; | |||||
| } | |||||
| return ( | return ( | ||||
| <Animatable.View animation={annomation} style={styles.contentItem}> | <Animatable.View animation={annomation} style={styles.contentItem}> | ||||
| <ImageBackground source={require('./image/item-background.png')} resizeMode='center' style={styles.contentItemDownLayer} > | <ImageBackground source={require('./image/item-background.png')} resizeMode='center' style={styles.contentItemDownLayer} > | ||||
| @@ -500,7 +510,8 @@ getContentViewItem(contentItem, annomation) { | |||||
| {/* 售价 */} | {/* 售价 */} | ||||
| <View style={styles.contentItemTopDetailCurPrice}> | <View style={styles.contentItemTopDetailCurPrice}> | ||||
| <Text style={styles.contentItemTopDetailCurPriceStrUnit}>¥</Text> | <Text style={styles.contentItemTopDetailCurPriceStrUnit}>¥</Text> | ||||
| <Text style={styles.contentItemTopDetailCurPriceStr}>{contentItem.target.salePriceStr}</Text> | |||||
| <Text style={curStyleObj}>{contentItem.target.salePriceStr}</Text> | |||||
| {/* <Text style={styles.contentItemTopDetailCurPriceStr}>{contentItem.target.salePriceStr}</Text> */} | |||||
| </View> | </View> | ||||
| {/* 面额 */} | {/* 面额 */} | ||||
| <View style={styles.contentItemTopDetailSalePrice}> | <View style={styles.contentItemTopDetailSalePrice}> | ||||
| @@ -557,6 +568,15 @@ setSwiperItemDom(item) { | |||||
| if (contentItem.subType == 7) | if (contentItem.subType == 7) | ||||
| curLogo = require('./image/groupbuy.png'); | curLogo = require('./image/groupbuy.png'); | ||||
| } | } | ||||
| //aaa | |||||
| // contentItem.target.salePriceStr = 24502228; | |||||
| let curNumStr = contentItem.target.salePriceStr+''; | |||||
| let curStyleObj = {}; | |||||
| if (curNumStr.length > 6 || Number(curNumStr) > 100000) { | |||||
| curStyleObj = styles.contentItemTopDetailCurPriceStr04; | |||||
| } else { | |||||
| curStyleObj = styles.contentItemTopDetailCurPriceStr03; | |||||
| } | |||||
| return ( | return ( | ||||
| <View style={styles.carouselItemWrap}> | <View style={styles.carouselItemWrap}> | ||||
| {/* <BoxShadow setting={shadowOpt}> */} | {/* <BoxShadow setting={shadowOpt}> */} | ||||
| @@ -573,7 +593,7 @@ setSwiperItemDom(item) { | |||||
| {/* 售价 */} | {/* 售价 */} | ||||
| <View style={styles.contentItemTopDetailCurPrice}> | <View style={styles.contentItemTopDetailCurPrice}> | ||||
| <Text style={styles.contentItemTopDetailCurPriceStrUnit02}>¥</Text> | <Text style={styles.contentItemTopDetailCurPriceStrUnit02}>¥</Text> | ||||
| <Text style={styles.contentItemTopDetailCurPriceStr02}>{contentItem.target.salePriceStr}</Text> | |||||
| <Text style={curStyleObj}>{contentItem.target.salePriceStr}</Text> | |||||
| </View> | </View> | ||||
| {/* 面额 */} | {/* 面额 */} | ||||
| <View style={styles.contentItemTopDetailSalePrice02}> | <View style={styles.contentItemTopDetailSalePrice02}> | ||||
| @@ -1110,7 +1130,7 @@ MyPage = CodePush(codePushOptions)(MyPage); | |||||
| backgroundColor:'transparent', | backgroundColor:'transparent', | ||||
| }, | }, | ||||
| contentItemTopDetailCurPriceStr:{ | |||||
| contentItemTopDetailCurPriceStr01:{ | |||||
| backgroundColor:'transparent', | backgroundColor:'transparent', | ||||
| fontSize:96/PixelRatio.get(), | fontSize:96/PixelRatio.get(), | ||||
| fontFamily:"PingFangSC-Bold", | fontFamily:"PingFangSC-Bold", | ||||
| @@ -1119,8 +1139,19 @@ MyPage = CodePush(codePushOptions)(MyPage); | |||||
| textAlignVertical:'bottom', | textAlignVertical:'bottom', | ||||
| color : 'red' | color : 'red' | ||||
| }, | }, | ||||
| //金额超10000,字号修改 | |||||
| contentItemTopDetailCurPriceStr02:{ | contentItemTopDetailCurPriceStr02:{ | ||||
| backgroundColor:'transparent', | |||||
| fontSize:64/PixelRatio.get(), | |||||
| fontFamily:"PingFangSC-Bold", | |||||
| fontWeight: "bold", | |||||
| textAlign :'left', | |||||
| textAlignVertical:'bottom', | |||||
| paddingBottom: 8/PixelRatio.get(), | |||||
| color : 'red' | |||||
| }, | |||||
| contentItemTopDetailCurPriceStr03:{ | |||||
| backgroundColor:'transparent', | backgroundColor:'transparent', | ||||
| fontSize:72/PixelRatio.get(), | fontSize:72/PixelRatio.get(), | ||||
| fontFamily:"PingFangSC-Bold", | fontFamily:"PingFangSC-Bold", | ||||
| @@ -1128,6 +1159,16 @@ MyPage = CodePush(codePushOptions)(MyPage); | |||||
| textAlign :'left', | textAlign :'left', | ||||
| color : 'red' | color : 'red' | ||||
| }, | }, | ||||
| //金额超10000,字号修改 | |||||
| contentItemTopDetailCurPriceStr04:{ | |||||
| backgroundColor:'transparent', | |||||
| fontSize:52/PixelRatio.get(), | |||||
| fontFamily:"PingFangSC-Bold", | |||||
| fontWeight: "bold", | |||||
| textAlign :'left', | |||||
| paddingTop: 16/PixelRatio.get(), | |||||
| color : 'red' | |||||
| }, | |||||
| contentItemTopDetailCurPriceStrUnit:{ | contentItemTopDetailCurPriceStrUnit:{ | ||||
| backgroundColor:'transparent', | backgroundColor:'transparent', | ||||
| @@ -1135,7 +1176,7 @@ MyPage = CodePush(codePushOptions)(MyPage); | |||||
| textAlignVertical:'bottom', | textAlignVertical:'bottom', | ||||
| paddingBottom: 16/PixelRatio.get(), | paddingBottom: 16/PixelRatio.get(), | ||||
| fontSize: 48/PixelRatio.get(), | fontSize: 48/PixelRatio.get(), | ||||
| color : 'red' | |||||
| color : 'red', | |||||
| }, | }, | ||||
| contentItemTopDetailCurPriceStrUnit02:{ | contentItemTopDetailCurPriceStrUnit02:{ | ||||