From 0ba76b71d9207b9c0f5f0fd0d9cfadd570d04682 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Wed, 20 Mar 2019 19:03:06 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=A2=9E=E5=8A=A0=E6=B3=A8=E9=87=8A=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F][=E4=BF=AE=E6=94=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 67 +++++++++++++++++++++++++++++++++------------------------- 1 file changed, 38 insertions(+), 29 deletions(-) diff --git a/App.js b/App.js index cd9065c..c2cd9d8 100644 --- a/App.js +++ b/App.js @@ -288,17 +288,21 @@ getContentViewItem(contentItem, annomation) { - + {/* 列表 */} + {/* 券的title */} {contentItem.target.title} + {/* 你好世界你好你是你好宿舍熟话说术后 */} {/* {contentItem.target.remark} */} + {/* 售价 */} {contentItem.target.salePriceStr} + {/* 面额 */} ¥{contentItem.target.priceStr} @@ -306,17 +310,14 @@ getContentViewItem(contentItem, annomation) { - + {/* 优惠券底部商户名称 */} {merchantName} {actionText} - - {this.getContentViewItemUplayer(contentItem)} - ) } @@ -354,21 +355,20 @@ render() { return ( - + {/* 头部title二维码开始 */} - - + {/* 券列表展示列表开始 */} {this.getContentView()} - + {/* 底部商场信息展示开始 */} @@ -383,7 +383,6 @@ render() { {this.state.versionInfo} - ); } @@ -610,8 +609,8 @@ render() { flex: 6, width:'100%', height:'100%', - paddingLeft: 27/PixelRatio.get(), - paddingRight: 79/PixelRatio.get(), + paddingLeft: 20/PixelRatio.get(), + paddingRight: 20/PixelRatio.get(), alignItems: 'center', backgroundColor:'transparent' }, @@ -629,6 +628,7 @@ render() { width:'100%', height:'100%', alignItems: 'center', + color:"black", backgroundColor:'transparent', textAlign :'center', textAlignVertical:'center', @@ -657,28 +657,33 @@ render() { color: 'darkgray' }, - //layer content item top detail + // 券的title contentItemTopDetailTitle:{ flex: 2, + // height:'100%', width:'100%', - height:'100%', + marginTop:"2%", + // borderStyle:"solid", + // borderWidth:1, + // borderColor:"red", backgroundColor:'transparent', textAlign :'left', + color:"black", textAlignVertical:'center', fontSize: 53/PixelRatio.get(), }, -/* - contentItemTopDetailRemark:{ - flex: 1, - width:'100%', - height:'100%', - backgroundColor:'transparent', - textAlign :'left', - textAlignVertical:'center', - fontSize: 27/PixelRatio.get(), - color : 'gray' - }, -*/ + /* + contentItemTopDetailRemark:{ + flex: 1, + width:'100%', + height:'100%', + backgroundColor:'transparent', + textAlign :'left', + textAlignVertical:'center', + fontSize: 27/PixelRatio.get(), + color : 'gray' + }, + */ contentItemTopDetailPrice:{ flex: 2, width:'100%', @@ -687,6 +692,7 @@ render() { flexDirection: 'row', }, + // 售价的样式 contentItemTopDetailCurPrice:{ flex: 3, width:'100%', @@ -713,11 +719,14 @@ render() { fontSize: 48/PixelRatio.get(), color : 'red' }, - + // 面额的样式 contentItemTopDetailSalePrice:{ - flex: 1, + position:"absolute", + bottom:0, + left:0, + // flex: 1, width:'100%', - height:'100%', + height:'30%', backgroundColor:'transparent', },