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

签名组件修改

上级 5e04f253
......@@ -114,6 +114,8 @@ export default class Signature extends Component {
showSignImage = () => {
const { url } = this.state;
Modal.info({
okText: '确定',
cancelText: '取消',
title: '查看签名',
content: <div className={styles.showDiv}>
<img src={queryFileUrl(url)}/>
......@@ -129,10 +131,11 @@ export default class Signature extends Component {
// 移动端签名组件
MobileSign = () => {
const { url } = this.state;
const EditIcon = this.EditIcon;
if (url) {
return (
<div className={styles.mobileSign}>
<this.EditIcon />
<EditIcon />
{/* <Button
type={'primary'}
onClick={this.changeShowModal}
......@@ -145,7 +148,7 @@ export default class Signature extends Component {
} else {
return (
<div className={styles.mobileSign2}>
<this.EditIcon />
<EditIcon />
{/*<Button type={'primary'} onClick={this.changeShowModal}>
点击开始签名
</Button>*/}
......@@ -226,12 +229,13 @@ export default class Signature extends Component {
WebSign = () => {
const { width, height } = this.props;
const EditIcon = this.EditIcon;
// console.log(this.props);
const { url } = this.state;
if (url) {
return (
<div className={styles.webSign}>
<this.EditIcon />
<EditIcon />
<img
onClick={this.showSignImage}
src={queryFileUrl(url)}
......@@ -245,7 +249,7 @@ export default class Signature extends Component {
} else {
return (
<div className={styles.mobileSign2}>
<this.EditIcon />
<EditIcon />
</div>
);
}
......@@ -253,24 +257,27 @@ export default class Signature extends Component {
};
render() {
// return null;
// console.log('签名组件');
const { width, height, get } = this.props;
const { url } = this.state;
if (get === 'mobile') {
// const MobileSign = this.MobileSign;
// const MobileModal = this.MobileModal;
const MobileSign = this.MobileSign;
const MobileModal = this.MobileModal;
return (
<>
<this.MobileSign />
<this.MobileModal />
<MobileSign />
<MobileModal />
</>
);
} else {
const WebSign = this.WebSign;
const WebModal = this.WebModal;
return (
<>
<this.WebSign />
<this.WebModal />
<WebSign />
<WebModal />
</>
);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论