|
@@ -0,0 +1,105 @@
|
|
|
+import React, { useEffect, useRef, useState } from "react";
|
|
|
+import "./index.less";
|
|
|
+import { SearchBarRef } from 'antd-mobile/es/components/search-bar'
|
|
|
+
|
|
|
+import { SearchOutline } from 'antd-mobile-icons'
|
|
|
+import api from "~/api";
|
|
|
+export const ExamRoadVideo: React.FC = (props: any) => {
|
|
|
+ const searchRef = useRef<SearchBarRef>(null)
|
|
|
+ const [city, setCity] = useState({
|
|
|
+ cityName: "福州市",
|
|
|
+ city: "3501"
|
|
|
+ })
|
|
|
+ const [province, setProvince] = useState({
|
|
|
+ cityName: "province",
|
|
|
+ city: "35"
|
|
|
+ })
|
|
|
+ const [examList, setExamList] = useState([])
|
|
|
+ useEffect(() => {
|
|
|
+ api.studentExamInfoIp().then(res => {
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
+ api.studentExamInfoList({}).then(res => {
|
|
|
+ console.log(res)
|
|
|
+ setExamList(res.data.rows)
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+ }, [])
|
|
|
+ return (
|
|
|
+ <div className="ExamRoadVideo">
|
|
|
+ <div className="header">
|
|
|
+ <div className="rect">
|
|
|
+ <div className="search">
|
|
|
+ <SearchOutline className="icon1" color="#8A9099" fontSize={18} />
|
|
|
+ <input placeholder="输入系列课标题" className="bar" type="search"></input>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ className="select"
|
|
|
+
|
|
|
+ >
|
|
|
+ <input
|
|
|
+
|
|
|
+ disabled
|
|
|
+ v-model="province.province"
|
|
|
+
|
|
|
+ placeholder="省份"
|
|
|
+ className="header-province"
|
|
|
+ type="text"
|
|
|
+ />
|
|
|
+ <input
|
|
|
+ disabled
|
|
|
+
|
|
|
+ v-model="city.city"
|
|
|
+ placeholder="地市"
|
|
|
+ className="header-city"
|
|
|
+ type="text"
|
|
|
+ />
|
|
|
+
|
|
|
+ <input
|
|
|
+ disabled
|
|
|
+
|
|
|
+
|
|
|
+ v-model="county.county"
|
|
|
+ placeholder="区"
|
|
|
+ className="header-area"
|
|
|
+ type="text"
|
|
|
+ />
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div className="content">
|
|
|
+ <div className="list">
|
|
|
+ {/* <van-empty
|
|
|
+ v-if="examRoomList.length == 0"
|
|
|
+ className="custom-image"
|
|
|
+ image="https://img.yzcdn.cn/vant/custom-empty-image.png"
|
|
|
+ description="该城市无视频"
|
|
|
+ /> */}
|
|
|
+ {examList.map(item => {
|
|
|
+ return (<div
|
|
|
+ className="list-item"
|
|
|
+
|
|
|
+ >
|
|
|
+ <img src={item.image} className="list-item-image">
|
|
|
+ </img>
|
|
|
+ <div
|
|
|
+ className="list-item-textbody"
|
|
|
+
|
|
|
+ >
|
|
|
+ <div className="list-item-text1">{item.name}</div>
|
|
|
+ <div className="list-item-text2">共{item.videoCount}节</div>
|
|
|
+ </div>
|
|
|
+ <div className="list-item-border"></div>
|
|
|
+ </div>)
|
|
|
+
|
|
|
+ })}
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ );
|
|
|
+};
|