Commit 1d574fc1 authored by duanledexianxianxian's avatar duanledexianxianxian 😁

sync

parent 2cd028d3
...@@ -58,6 +58,12 @@ export default [ ...@@ -58,6 +58,12 @@ export default [
// isFull: true, 全屏显示 // isFull: true, 全屏显示
component: './exam/hospitalFinalExam', component: './exam/hospitalFinalExam',
}, },
{
key: '315',
path: '/exam/questionList',
isFull: true,
component: './exam/question/list',
},
], ],
}, },
], ],
......
import React from 'react'; import React from 'react';
import List from './components/list' import List from './components/list'
import router from 'umi/router';
const Index = () => { const Index = () => {
const dataSource = [ const dataSource = [
...@@ -27,14 +28,14 @@ const Index = () => { ...@@ -27,14 +28,14 @@ const Index = () => {
]; ];
const onClickLike = id => { const onClickLike = id => {
console.log(id);
}; };
const onClickShare = id => { const onClickShare = id => {
console.log(id); console.log(id);
}; };
const onClickButton = id => { const onClickButton = id => {
console.log(id); router.push('/exam/questionList');
}; };
......
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 (
<div className={styles.root}>
<div className={styles.row}>
<div>
<img src={'/images/danxuanti.png'} alt=""></img>
<span>单选题</span>
</div>
<img src={'/images/duoxuanti.png'} alt=""></img>
<img src={'/images/panduanti.png'} alt=""></img>
</div>
<div className={styles.row}>
<img src={'/images/tiankongti.png'} alt=""></img>
<img src={'/images/jiandati.png'} alt=""></img>
<img src={'/images/anlixuanzeti.png'} alt=""></img>
</div>
<div className={styles.row}>
<img src={'/images/mingcijieshi.png'} alt=""></img>
<img src={'/images/b1tixing.png'} alt=""></img>
<img src={'/images/lunshuti.png'} alt=""></img>
</div>
<div className={styles.row}>
<img src={'/images/fenxiti.png'} alt=""></img>
</div>
</div>
);
};
export default Index;
.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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment