Commit a4e22cbb authored by 俞嘉婷's avatar 俞嘉婷

feat: 持仓产品详情页 布局样式调整

parent d2be9932
src/assets/DetailPage/backBtn.png

1.73 KB | W: | H:

src/assets/DetailPage/backBtn.png

1.58 KB | W: | H:

src/assets/DetailPage/backBtn.png
src/assets/DetailPage/backBtn.png
src/assets/DetailPage/backBtn.png
src/assets/DetailPage/backBtn.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/DetailPage/bottomBg.png

8.32 KB | W: | H:

src/assets/DetailPage/bottomBg.png

198 KB | W: | H:

src/assets/DetailPage/bottomBg.png
src/assets/DetailPage/bottomBg.png
src/assets/DetailPage/bottomBg.png
src/assets/DetailPage/bottomBg.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/DetailPage/topBg.png

9.33 KB | W: | H:

src/assets/DetailPage/topBg.png

64.3 KB | W: | H:

src/assets/DetailPage/topBg.png
src/assets/DetailPage/topBg.png
src/assets/DetailPage/topBg.png
src/assets/DetailPage/topBg.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -17,65 +17,62 @@ ...@@ -17,65 +17,62 @@
.topArea { .topArea {
position: relative; position: relative;
flex-shrink: 0; flex-shrink: 0;
margin-top: 40px; margin-top: 30px;
width: 691px; width: 716px;
// height: 299px; height: 302px;
height: 254px;
color: #ffffff; color: #ffffff;
// margin-bottom: 10px; margin-bottom: -10px;
// .webpBg("DetailPage/topBg.png"); .webpBg("DetailPage/topBg.png");
border-radius: 13px; text-align: center;
background-image: linear-gradient( 0deg, rgb(170,52,39) 0%, rgb(199,68,54) 100%);
.productName { .productName {
position: absolute; position: absolute;
left: 149px; left: 159px;
top: 0; top: 4px;
width: 393px; width: 408px;
height: 42px; height: 50px;
line-height: 42px; line-height: 50px;
text-align: center; font-size: 32px;
font-size: 28px; color: #FFFFFF;
background-image: linear-gradient( 0deg, #a5281e 0%, #a2261d 100%); font-weight: bold;
border-radius: 0 0 13px 13px;
.lineClamp1(); .lineClamp1();
} }
.label1 { .label1 {
position: absolute; position: absolute;
left: 0; left: 0;
top: 45px; top: 59px;
width: 100%; width: 100%;
font-size: 28px; font-size: 28px;
color: rgba(255, 255, 255, 0.6); color: #333333;
text-align: center;
} }
.totalProfit { .totalProfit {
position: absolute; position: absolute;
left: 0; left: 0;
top: 80px; top: 114px;
width: 100%; width: 100%;
font-size: 58px; font-size: 46px;
color: #D90300;
font-weight: bold; font-weight: bold;
text-align: center;
} }
.label2 { .label2 {
position: absolute; position: absolute;
left: 22px; left: 22px;
top: 166px; top: 190px;
width: 30%; width: 30%;
font-size: 22px; font-size: 24px;
color: rgba(255, 255, 255, 0.6); color: #666666;
} }
.tranche { .tranche {
position: absolute; position: absolute;
left: 22px; left: 22px;
top: 198px; top: 226px;
width: 30%; width: 30%;
font-size: 30px; font-size: 36px;
color: #232323;
font-weight: bold; font-weight: bold;
} }
...@@ -83,65 +80,64 @@ ...@@ -83,65 +80,64 @@
position: absolute; position: absolute;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
top: 166px; top: 190px;
width: 30%; width: 30%;
font-size: 22px; font-size: 24px;
text-align: center; color: #666666;
color: rgba(255, 255, 255, 0.6);
} }
.marketValue { .marketValue {
position: absolute; position: absolute;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
top: 198px; top: 226px;
width: 30%; width: 30%;
text-align: center; font-size: 36px;
font-size: 30px; color: #232323;
font-weight: bold; font-weight: bold;
} }
.label4 { .label4 {
position: absolute; position: absolute;
right: 22px; right: 22px;
top: 166px; top: 190px;
width: 30%; width: 30%;
font-size: 22px; font-size: 24px;
text-align: right; color: #666666;
color: rgba(255, 255, 255, 0.6);
} }
.yesterdayProfit { .yesterdayProfit {
position: absolute; position: absolute;
right: 22px; right: 22px;
top: 198px; top: 226px;
width: 30%; width: 30%;
text-align: right; font-size: 36px;
font-size: 30px; color: #232323;
font-weight: bold; font-weight: bold;
} }
} }
.topArea2 { .topArea2 {
flex-shrink: 0; flex-shrink: 0;
margin-top: 40px; width: 750px;
width: 691px; height: 110px;
height: 115px; background: #FCDBDB;
.webpBg("DetailPage/topBg2.png"); box-shadow: 0 3px 8px 0 #EAA7A6;
color: #ffffff; font-weight: bold;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
// margin-bottom: 10px; margin-bottom: -10px;
.productName { .productName {
//position: absolute; //position: absolute;
//left: 0; //left: 0;
//top: 55px; //top: 55px;
width: 100%; width: 78%;
text-align: center; text-align: center;
font-size: 28px; font-size: 36px;
line-height: 28px; color: #D90300;
.lineClamp1();
} }
} }
...@@ -153,14 +149,16 @@ ...@@ -153,14 +149,16 @@
.options { .options {
flex-shrink: 0; flex-shrink: 0;
width: 709px; width: 750px;
height: 465px; height: 400px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: relative; position: relative;
.webpBg("DetailPage/bottomBg.png"); .sparkBg("DetailPage/bottomBg.png");
background-size: 762px 400px;
background-position: top center;
.tab { .tab {
position: absolute; position: absolute;
...@@ -169,8 +167,8 @@ ...@@ -169,8 +167,8 @@
width: 100%; width: 100%;
height: 91px; height: 91px;
color: #bc251c; color: #EA1211;
font-size: 28px; font-size: 32px;
font-weight: bold; font-weight: bold;
display: flex; display: flex;
...@@ -186,11 +184,13 @@ ...@@ -186,11 +184,13 @@
} }
.actBar { .actBar {
background-color: rgb(188, 37, 28); font-family: SourceHanSansCN-Bold;
background: #EA1211;
border-radius: 3px;
position: absolute; position: absolute;
left: 61.5px; left: 80px;
top: 85px; top: 75px;
width: 252px; width: 215px;
height: 6px; height: 6px;
} }
} }
...@@ -199,8 +199,7 @@ ...@@ -199,8 +199,7 @@
position: absolute; position: absolute;
top: 91px; top: 91px;
width: 634px; width: 634px;
margin-top: 28px; margin-top: 20px;
margin-bottom: 61px;
.buyInfo { .buyInfo {
display: flex; display: flex;
...@@ -208,15 +207,15 @@ ...@@ -208,15 +207,15 @@
justify-content: space-between; justify-content: space-between;
& > div { & > div {
font-size: 32px; font-size: 30px;
color: rgb(50, 50, 50); color: #333;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
} }
& > span { & > span {
font-size: 29px; font-size: 26px;
color: rgb(155, 155, 155); color: #666;
text-align: center; text-align: center;
} }
} }
...@@ -238,8 +237,7 @@ ...@@ -238,8 +237,7 @@
position: absolute; position: absolute;
top: 91px; top: 91px;
width: 634px; width: 634px;
margin-top: 28px; margin-top: 20px;
margin-bottom: 61px;
.sellInfo { .sellInfo {
display: flex; display: flex;
...@@ -247,15 +245,15 @@ ...@@ -247,15 +245,15 @@
justify-content: space-between; justify-content: space-between;
& > div { & > div {
font-size: 32px; font-size: 30px;
color: rgb(50, 50, 50); color: #333;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
} }
& > span { & > span {
font-size: 29px; font-size: 26px;
color: rgb(155, 155, 155); color: #666;
text-align: center; text-align: center;
} }
} }
...@@ -281,64 +279,63 @@ ...@@ -281,64 +279,63 @@
position: absolute; position: absolute;
top: 24px; top: 24px;
right: 27px; right: 27px;
color: #bc251c; color: #EA1211;
font-weight: bold; font-weight: bold;
} }
} }
} }
.tip { .tip {
margin-top: 14px; margin-top: 20px;
font-size: 24px; font-size: 24px;
color: rgb(155, 155, 155); color: #999;
text-align: left; text-align: left;
min-height: 30px; min-height: 30px;
} }
.btnArea { .btnArea {
margin-top: 10px; margin-top: 16px;
width: 100%; width: 100%;
height: 82px; height: 68px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.btn { .btn {
width: 268px; width: 260px;
height: 82px; height: 68px;
border-radius: 41px; border-radius: 34px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 32px; font-size: 28px;
font-weight: bold; font-weight: bold;
} }
.simulate { .simulate {
margin-top: 30px; background-color: #EA1211;
background-color: rgb(188, 37, 28);
color: white; color: white;
} }
.really { .really {
margin-top: 29px;
background-color: white; background-color: white;
color: #bc251c; color: #EA1211;
border: 1px solid #bc251c; border: 1px solid #EA1211;
} }
} }
} }
.backBtn { .backBtn {
position: absolute; position: absolute;
left: 52px; left: 40px;
top: 83px; top: 36px;
width: 18px; width: 38px;
height: 32px; height: 38px;
.webpBg("DetailPage/backBtn.png"); .webpBg("DetailPage/backBtn.png");
&.backBtn2 { &.backBtn2 {
top: 90px; left: 54px;
top: 85px;
.webpBg("DetailPage/backBtn2.png");
} }
} }
......
...@@ -183,17 +183,16 @@ class DetailPage extends React.Component<any, any> { ...@@ -183,17 +183,16 @@ class DetailPage extends React.Component<any, any> {
{isBuyed {isBuyed
? <div className={styles.topArea}> ? <div className={styles.topArea}>
<div className={styles.productName}>{productName}</div> <div className={styles.productName}>{productName}</div>
<div className={styles.label1}>累计收益</div> <div className={styles.label1}>累计收益(元)</div>
<div className={styles.totalProfit}>{totalProfit / 100}</div> <div className={styles.totalProfit}>{totalProfit / 100}</div>
<div className={styles.label2}>持有份额</div> <div className={styles.label2}>持有份额</div>
<div className={styles.tranche}>{tranche / 100}</div> <div className={styles.tranche}>{tranche / 100}</div>
<div className={styles.label3}>持有市值</div> <div className={styles.label3}>持有市值(元)</div>
<div className={styles.marketValue}>{marketValue / 100}</div> <div className={styles.marketValue}>{marketValue / 100}</div>
<div className={styles.label4}>昨日收益</div> <div className={styles.label4}>昨日收益(元)</div>
<div className={styles.yesterdayProfit}>{yesterdayProfit / 100}</div> <div className={styles.yesterdayProfit}>{yesterdayProfit / 100}</div>
</div> </div>
: <div className={styles.topArea2}> : <div className={styles.topArea2}>
<div className={styles.topBg} />
<div className={styles.productName}>{productName}</div> <div className={styles.productName}>{productName}</div>
</div> </div>
} }
...@@ -204,7 +203,7 @@ class DetailPage extends React.Component<any, any> { ...@@ -204,7 +203,7 @@ class DetailPage extends React.Component<any, any> {
<div <div
className={styles.tabItem} className={styles.tabItem}
style={{ style={{
color: tabType == EOpType.Buy ? "#bc251c" : "#000000" color: tabType == EOpType.Buy ? "#EA1211" : "#333333"
}} }}
onClick={() => this.clickTab(EOpType.Buy)} onClick={() => this.clickTab(EOpType.Buy)}
>购买 >购买
...@@ -212,14 +211,14 @@ class DetailPage extends React.Component<any, any> { ...@@ -212,14 +211,14 @@ class DetailPage extends React.Component<any, any> {
<div <div
className={styles.tabItem} className={styles.tabItem}
style={{ style={{
color: tabType == EOpType.Sell ? "#bc251c" : "#000000" color: tabType == EOpType.Sell ? "#EA1211" : "#333333"
}} }}
onClick={() => this.clickTab(EOpType.Sell)} onClick={() => this.clickTab(EOpType.Sell)}
>赎回 >赎回
</div> </div>
<motion.div <motion.div
className={styles.actBar} className={styles.actBar}
animate={{ left: (isBuy ? 61.5 : 436.5) * remScale }} animate={{ left: (isBuy ? 80 : 455) * remScale }}
/> />
</div> </div>
<motion.div <motion.div
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment