Commit 7c0a2003 authored by marsandheart's avatar marsandheart

修改样式

parent c2511c7e
...@@ -170,7 +170,7 @@ const defaultSteps = [ ...@@ -170,7 +170,7 @@ const defaultSteps = [
questions: [ questions: [
{ {
questionId: '1', questionId: '1',
needPlay: false, needPlay: true,
needCheck: false, needCheck: false,
playStatus: '0', playStatus: '0',
checked: false, checked: false,
...@@ -183,7 +183,7 @@ const defaultSteps = [ ...@@ -183,7 +183,7 @@ const defaultSteps = [
至少3秒,保证标题清晰后给投保人阅读 至少3秒,保证标题清晰后给投保人阅读
</span> </span>
), ),
voice: '' voice: '请销售人员点击链接向镜头展示《免除保险人责任条款》至少3秒,保证标题清晰后给投保人阅读'
} }
] ]
}, },
...@@ -221,7 +221,7 @@ export default function(props) { ...@@ -221,7 +221,7 @@ export default function(props) {
setTimeout(() => { setTimeout(() => {
playQuestion(questionId); playQuestion(questionId);
}, 1000); }, 1000);
}, [questionId]); }, [stepId, questionId]);
// 朗读当前问题 // 朗读当前问题
const playQuestion = (questionId) => { const playQuestion = (questionId) => {
...@@ -446,6 +446,11 @@ export default function(props) { ...@@ -446,6 +446,11 @@ export default function(props) {
} }
}; };
const toStep = (sId) => {
setStepId(sId);
setQuestionId('1');
}
return ( return (
<div className={styles.page}> <div className={styles.page}>
<div className={styles.header}> <div className={styles.header}>
...@@ -462,7 +467,7 @@ export default function(props) { ...@@ -462,7 +467,7 @@ export default function(props) {
key={item.id} key={item.id}
className={stepId === item.id ? styles.stepIndexSelected : styles.stepIndex} className={stepId === item.id ? styles.stepIndexSelected : styles.stepIndex}
onClick={() => { onClick={() => {
setStepId(item.id); toStep(item.id);
}} }}
> >
<img <img
......
...@@ -10,6 +10,8 @@ import IconCalculate from '../assets/img/calculate.png'; ...@@ -10,6 +10,8 @@ import IconCalculate from '../assets/img/calculate.png';
import IconCustomer from 'assets/img/customer.png'; import IconCustomer from 'assets/img/customer.png';
import IconFile from 'assets/img/file.png'; import IconFile from 'assets/img/file.png';
import IconMoney from 'assets/img/money.png'; import IconMoney from 'assets/img/money.png';
import IconReturn from 'assets/img/return.png';
import IconHome from 'assets/img/home.png';
import TouchOpacity from '../components/TouchOpacity'; import TouchOpacity from '../components/TouchOpacity';
import TabTitle from './InsuredsInfo.components/TabTitle'; import TabTitle from './InsuredsInfo.components/TabTitle';
...@@ -124,7 +126,13 @@ export default function(props) { ...@@ -124,7 +126,13 @@ export default function(props) {
<img alt="pay" src={IconMoney} className={styles.titleIcon} /> <img alt="pay" src={IconMoney} className={styles.titleIcon} />
<span>借/领/退款</span> <span>借/领/退款</span>
</TabTitle> </TabTitle>
<div>C161361507</div> <div className={styles.user} >
<div>
<img src={IconReturn} alt="return"></img>
<img src={IconHome} alt="home"></img>
</div>
<span>C161361507</span>
</div>
</div> </div>
<div className={styles.headerExt}></div> <div className={styles.headerExt}></div>
<div className={styles.main}> <div className={styles.main}>
......
...@@ -36,6 +36,21 @@ ...@@ -36,6 +36,21 @@
background-color: $primaryColor; background-color: $primaryColor;
} }
.user{
color: white;
margin-right: 0.1rem;
display: flex;
flex-direction: column;
align-items: center;
font-size: 0.24rem;
img{
width: 0.22rem;
height: 0.22rem;
margin-right: 0.2rem;
}
}
.main{ .main{
background: #EDE9E3; background: #EDE9E3;
margin: -0.2rem 0.05rem; margin: -0.2rem 0.05rem;
......
...@@ -134,7 +134,7 @@ export default function(props) { ...@@ -134,7 +134,7 @@ export default function(props) {
))} ))}
</div> </div>
<div className={styles.footer}> <div className={styles.footer}>
<TouchOpacity className={styles.btnCancel}>取消</TouchOpacity> <TouchOpacity className={styles.btnCancel} onClick={close}>取消</TouchOpacity>
<TouchOpacity className={styles.btn} onClick={submit}> <TouchOpacity className={styles.btn} onClick={submit}>
确定 确定
</TouchOpacity> </TouchOpacity>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
align-items: center; align-items: center;
line-height: 0.6rem; line-height: 0.6rem;
color: #FFFFFF; color: #FFFFFF;
padding: 0.05rem 0.2rem; padding: 0 0.2rem;
border-radius: 0.05rem; border-radius: 0.05rem;
} }
......
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