Commit 0e8cd9a1 authored by haiyoucuv's avatar haiyoucuv

init

parent f8a04dac
src/assets/HomePage/sign/签到.png

19.6 KB | W: | H:

src/assets/HomePage/sign/签到.png

19.1 KB | W: | H:

src/assets/HomePage/sign/签到.png
src/assets/HomePage/sign/签到.png
src/assets/HomePage/sign/签到.png
src/assets/HomePage/sign/签到.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -126,5 +126,10 @@ ...@@ -126,5 +126,10 @@
width: 335px; width: 335px;
height: 69px; height: 69px;
.webpBg("HomePage/sign/签到.png"); .webpBg("HomePage/sign/签到.png");
&.btnSigned {
.webpBg("HomePage/sign/已签到.png");
}
} }
} }
...@@ -63,7 +63,12 @@ class Sign extends React.Component<any, any> { ...@@ -63,7 +63,12 @@ class Sign extends React.Component<any, any> {
<div className={creditCls}> <div className={creditCls}>
{!boolSign && <div className={styles.creditTxt}>最高<span>{creditsNum}</span></div>} {!boolSign && <div className={styles.creditTxt}>最高<span>{creditsNum}</span></div>}
</div> </div>
<div className={dayCls}>{day}</div>
{
boolSign
? <div className={dayCls}>已签</div>
: <div className={dayCls}>{day}</div>
}
</div> </div>
}) })
} }
...@@ -83,7 +88,7 @@ class Sign extends React.Component<any, any> { ...@@ -83,7 +88,7 @@ class Sign extends React.Component<any, any> {
transform: `translateX(${signProgress * 0.99}rem)`, transform: `translateX(${signProgress * 0.99}rem)`,
}}/> }}/>
<Button className={styles.btn} onClick={this.clickSign}/> <Button className={classNames(styles.btn, { [styles.btnSigned]: todaySignFlag })} onClick={this.clickSign}/>
</div>; </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