Browse Source
- 更新 CouponCard 组件样式,优化主题颜色和布局 - 调整 CouponList 组件样式,使用原生样式替代自定义样式 - 修改 orderConfirm 页面中的地址栏样式 - 更新 QuantitySelector 组件样式,统一数量选择器样式 - 删除 Questions 组件代码master
9 changed files with 226 additions and 293 deletions
@ -1,42 +0,0 @@ |
|||||
import {useEffect, useState} from "react"; |
|
||||
import {pageHjmQuestions} from "@/api/hjm/hjmQuestions"; |
|
||||
import {HjmQuestions} from "@/api/hjm/hjmQuestions/model"; |
|
||||
|
|
||||
/** |
|
||||
* 文章终极列表 |
|
||||
* @constructor |
|
||||
*/ |
|
||||
const Questions = () => { |
|
||||
const [list, setList] = useState<HjmQuestions[]>([]) |
|
||||
|
|
||||
const reload = () => { |
|
||||
pageHjmQuestions({}).then(res => { |
|
||||
if (res?.list) { |
|
||||
setList(res?.list) |
|
||||
} |
|
||||
}) |
|
||||
} |
|
||||
|
|
||||
useEffect(() => { |
|
||||
reload() |
|
||||
}, []) |
|
||||
|
|
||||
return ( |
|
||||
<div className={'px-3 mb-10'}> |
|
||||
<div className={'flex flex-col justify-between items-center bg-white rounded-lg p-4'}> |
|
||||
<div className={'bg-white w-full'}> |
|
||||
{ |
|
||||
list.map((item, index) => { |
|
||||
return ( |
|
||||
<div key={index} className={'flex justify-between items-center py-2'}> |
|
||||
<div className={'text-sm'}>{item.question}</div> |
|
||||
</div> |
|
||||
) |
|
||||
}) |
|
||||
} |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
) |
|
||||
} |
|
||||
export default Questions |
|
Loading…
Reference in new issue