修改样式

This commit is contained in:
wangsongsole 2022-08-15 14:18:17 +08:00
parent c84501d5bf
commit cf6a4b6350
2 changed files with 5 additions and 5 deletions

View File

@ -46,8 +46,8 @@
.flex { .flex {
display: grid; display: grid;
grid-template-columns: repeat(2, 50%); grid-template-columns: repeat(1, 100%);
text-align: left;
} }
} }

View File

@ -2,7 +2,7 @@
* @Author: Wind * @Author: Wind
* @Date: 2022-06-06 14:53:58 * @Date: 2022-06-06 14:53:58
* @LastEditors: Wind * @LastEditors: Wind
* @LastEditTime: 2022-08-15 10:23:22 * @LastEditTime: 2022-08-15 14:17:03
* @Description: * @Description:
* @FilePath: \frontend\src\components\knockGold\mobileCmponent.jsx * @FilePath: \frontend\src\components\knockGold\mobileCmponent.jsx
*/ */
@ -49,12 +49,12 @@ export default ({ data }) => {
<h3>可用时间</h3> <h3>可用时间</h3>
<ul className='timeList flex'> <ul className='timeList flex'>
{data.irregularDate?.map((item) => ( {data.irregularDate?.map((item) => (
<li style={{ textAlign: 'center' }}> <li>
{item.join(' 至 ')} {item.join(' 至 ')}
{data.irregularTime.map((item1) => { {data.irregularTime.map((item1) => {
if (item1[1]) if (item1[1])
return ( return (
<p style={{ textAlign: 'center', marginTop: '5px' }}> <p style={{ marginTop: '5px' }}>
{item1[0]}~{item1[1]} {item1[0]}~{item1[1]}
</p> </p>
) )