1,接口返回数据结构
{
"success": 1,
"msg": "获取成功",
"total": 2130,
"limit": 10,
"data": [
{
"id": 40,
"claxx_times": [
{
"course_week": "星期二",
"course_start": "17:30",
"course_end": "19:30"
},
{
"course_week": "星期一",
"course_start": "13:16",
"course_end": "14:01"
}
]
},
]
}
2,主要代码如下
render: claxx_times => (
<span>
{claxx_times.map(c => <div key={c.course_end}>{c.course_week} {c.course_start} - {c.