🚸 usability: 优化红包组件样式

This commit is contained in:
wangsongsole 2023-06-01 15:13:21 +08:00
parent 731b5bcb78
commit 374d21f462
2 changed files with 39 additions and 10 deletions

View File

@ -87,6 +87,10 @@
}
.TextBlock {
margin-top: 20px;
}
.notice {
width: 170px;
margin-bottom: 2px;

View File

@ -1,5 +1,10 @@
import './index.less';
import { Placeholder } from 'zent';
import moment from 'moment/moment';
const widths = [
24, 100, 100, 100, 80, 100, 100, 100, 80, 100, 100, 100, 80, 100, 100, 100,
100
];
export default ({ data }) => {
return (
<div id='redPacketsViews' className='mobile'>
@ -34,11 +39,21 @@ export default ({ data }) => {
alt=''
/>
</p>
{data.instruction ? (
<p>
1在支付宝APP内打开销接点击 [一键领取]完成领取支付宝立减金;
<br />
2支付宝里立减金一日领取不可撤销不可转让注意不要将换券泄露给他人
</p>
) : (
<Placeholder.TextBlock
className='TextBlock'
animate
widths={widths}
rows={5}
dashed={false}
/>
)}
</div>
<div className='instruction-2'>
<p className='center'>
@ -48,11 +63,21 @@ export default ({ data }) => {
alt=''
/>
</p>
{data.instruction ? (
<p
className='scroll'
dangerouslySetInnerHTML={{
__html: data.instruction
}}></p>
) : (
<Placeholder.TextBlock
className='TextBlock'
animate
widths={widths}
rows={13}
dashed={false}
/>
)}
</div>
</div>
</div>