提交 cea79cec authored 作者: 钟是志's avatar 钟是志

签名组件优化

web端 移动端 都搞成弹窗签名
上级 a7b83758
...@@ -54,8 +54,8 @@ export default class Index extends Component { ...@@ -54,8 +54,8 @@ export default class Index extends Component {
super(props); super(props);
const value = props.value; const value = props.value;
this.state = { this.state = {
// url: value || getUserInfo().userSign, url: value || getUserInfo().userSign,
url: value, // url: value,
showModal: false, showModal: false,
}; };
} }
...@@ -174,7 +174,6 @@ export default class Index extends Component { ...@@ -174,7 +174,6 @@ export default class Index extends Component {
</Button> </Button>
</div>; </div>;
} }
return null;
}; };
MobileModal = () => { MobileModal = () => {
...@@ -245,14 +244,13 @@ export default class Index extends Component { ...@@ -245,14 +244,13 @@ export default class Index extends Component {
const { const {
width, width,
height, height,
} = this.props; } = this.props;
console.log(this.props);
const { url } = this.state; const { url } = this.state;
if (url) { if (url) {
return <div className={styles.mobileSign}> return <div className={styles.webSign}>
<Button type={'primary'} <Button type={'primary'}
onClick={this.changeShowModal} onClick={this.changeShowModal}
className={styles.reSign}
> >
重新签名 重新签名
</Button> </Button>
......
...@@ -19,6 +19,13 @@ ...@@ -19,6 +19,13 @@
border: 1px solid #f2f2f2; border: 1px solid #f2f2f2;
margin-top: 10px; margin-top: 10px;
} }
.reSign{
}
.webSign{
position: relative;
text-align: left;
margin-left: 20px;
img{
border: 1px solid #f2f2f2;
} }
} }
...@@ -3748,11 +3748,7 @@ ${obj[dataColumn.base52]} ...@@ -3748,11 +3748,7 @@ ${obj[dataColumn.base52]}
], ],
})( })(
<Signature <Signature
width={ width={json.width}
get === 'mobile'
? document.documentElement.clientWidth - 10 || document.body.clientWidth - 10
: json.width
}
height={json.height} height={json.height}
get={get} get={get}
/>, />,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论