diff --git a/config/router.config.js b/config/router.config.js index b229d1b6985dd643335740b3270d9503d9a271b9..3f3ed12cebf908355911f38ea73c5573f072bfad 100644 --- a/config/router.config.js +++ b/config/router.config.js @@ -58,6 +58,12 @@ export default [ // isFull: true, 全屏显示 component: './exam/hospitalFinalExam', }, + { + key: '315', + path: '/exam/questionList', + isFull: true, + component: './exam/question/list', + }, ], }, ], diff --git a/public/images/anlixuanzeti.png b/public/images/anlixuanzeti.png new file mode 100644 index 0000000000000000000000000000000000000000..7447df4a45df498f9efd6b9e70a81b4b3be9027d Binary files /dev/null and b/public/images/anlixuanzeti.png differ diff --git a/public/images/b1tixing.png b/public/images/b1tixing.png new file mode 100644 index 0000000000000000000000000000000000000000..3b2215818b6054ce5d605e018fcf16309bf626c1 Binary files /dev/null and b/public/images/b1tixing.png differ diff --git a/public/images/danxuanti.png b/public/images/danxuanti.png new file mode 100644 index 0000000000000000000000000000000000000000..8a91b4d82efac462cca15aca73f2754cae3c758b Binary files /dev/null and b/public/images/danxuanti.png differ diff --git a/public/images/duoxuanti.png b/public/images/duoxuanti.png new file mode 100644 index 0000000000000000000000000000000000000000..60bfeca96008efb87fa3d4ef4e89705d3d7531a6 Binary files /dev/null and b/public/images/duoxuanti.png differ diff --git a/public/images/fenxiti.png b/public/images/fenxiti.png new file mode 100644 index 0000000000000000000000000000000000000000..1f47ab5a22241d5eb9cabace70e0190956697df7 Binary files /dev/null and b/public/images/fenxiti.png differ diff --git a/public/images/jiandati.png b/public/images/jiandati.png new file mode 100644 index 0000000000000000000000000000000000000000..9009ea252f31cd1d42a8e5782877e10f22fadb66 Binary files /dev/null and b/public/images/jiandati.png differ diff --git a/public/images/lunshuti.png b/public/images/lunshuti.png new file mode 100644 index 0000000000000000000000000000000000000000..ca30b3bcfc8296ec9a6cf0391cb5d308570f863a Binary files /dev/null and b/public/images/lunshuti.png differ diff --git a/public/images/mingcijieshi.png b/public/images/mingcijieshi.png new file mode 100644 index 0000000000000000000000000000000000000000..7ca3aa531b2adc973bf04c2e2f58728c02124210 Binary files /dev/null and b/public/images/mingcijieshi.png differ diff --git a/public/images/panduanti.png b/public/images/panduanti.png new file mode 100644 index 0000000000000000000000000000000000000000..f0fffde3950e2afaf37a1c7c5b2e3bfb02c4e465 Binary files /dev/null and b/public/images/panduanti.png differ diff --git a/public/images/tiankongti.png b/public/images/tiankongti.png new file mode 100644 index 0000000000000000000000000000000000000000..51e76f3acd472e90cfd687aebc15e9fe668039f9 Binary files /dev/null and b/public/images/tiankongti.png differ diff --git a/src/pages/exam/basic.js b/src/pages/exam/basic.js index cf00c097eac792ce057428537a2cd91dec16e0b3..29213652f0ee2052d7c74f5b8c15d0c54717d838 100644 --- a/src/pages/exam/basic.js +++ b/src/pages/exam/basic.js @@ -1,5 +1,6 @@ import React from 'react'; import List from './components/list' +import router from 'umi/router'; const Index = () => { const dataSource = [ @@ -27,14 +28,14 @@ const Index = () => { ]; const onClickLike = id => { - console.log(id); }; const onClickShare = id => { console.log(id); }; const onClickButton = id => { - console.log(id); + router.push('/exam/questionList'); + }; diff --git a/src/pages/exam/question/list.js b/src/pages/exam/question/list.js new file mode 100644 index 0000000000000000000000000000000000000000..823b20589615f52495df6bfb8f588270fcc57a05 --- /dev/null +++ b/src/pages/exam/question/list.js @@ -0,0 +1,71 @@ +import React from 'react'; +import styles from './list.less'; + +const images = [ + { + image: '', + title: '', + }, + { + image: '', + title: '', + }, + { + image: '', + title: '', + }, + { + image: '', + title: '', + }, + { + image: '', + title: '', + }, + { + image: '', + title: '', + }, + { + image: '', + title: '', + }, + { + image: '', + title: '', + }, + { + image: '', + title: '', + }, +]; +const Index = () => { + return ( +
+
+
+ + 单选题 +
+ + + +
+
+ + + +
+
+ + + +
+
+ +
+
+ ); +}; + +export default Index; diff --git a/src/pages/exam/question/list.less b/src/pages/exam/question/list.less new file mode 100644 index 0000000000000000000000000000000000000000..49162bb33c7cbf79156dbad40c308a9ab7aedccf --- /dev/null +++ b/src/pages/exam/question/list.less @@ -0,0 +1,13 @@ +.root{ + display: flex; + flex-direction: column; + .row{ + display: flex; + justify-content: space-between; + padding: 0px 8px; + img{ + padding: 4px 4px; + } + + } +} \ No newline at end of file