| | |
| | | /** |
| | | * CUserSignature |
| | | * CUserSignature - 用户签名 |
| | | * @author Tevin |
| | | */ |
| | | |
| | |
| | | import { Fetcher } from '@components/bases/Fetcher'; |
| | | import { $fetchCommon } from '@fetchers/FCommon'; |
| | | import { $bridge } from '@components/common/Bridge'; |
| | | import { $hostBoot } from '@components/bases/HostBoot'; |
| | | import project from '@project'; |
| | | import './cUserSignature.scss'; |
| | | import { $hostBoot } from '@components/bases/HostBoot'; |
| | | |
| | | export default { |
| | | name: 'CUserSignature', |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | id: 'CUserSignatureCanvas' + Date.now() + parseInt(Math.random() * 10000), |
| | | cavWidth: 1000, |
| | | cavHeight: 1600, |
| | | // id: 'CUserSignatureCanvas' + Date.now() + parseInt(Math.random() * 10000), |
| | | // cavWidth: 1000, |
| | | // cavHeight: 1600, |
| | | }; |
| | | }, |
| | | computed: {}, |
| | |
| | | const blob = new Blob([u8arr], { type: mime }); |
| | | return URL.createObjectURL(blob); |
| | | }, |
| | | $startEdit() { |
| | | this.handleStartEdit(); |
| | | }, |
| | | $uploadImage(callback) { |
| | | const file = { |
| | | url: this.itemRes.formData[this.itemRes.name], |