Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
df2a23fb
Commit
df2a23fb
authored
Dec 28, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8347a610
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
27 deletions
+7
-27
contractSign.vue
src/pages/contractSign.vue
+7
-27
No files found.
src/pages/contractSign.vue
View file @
df2a23fb
...
...
@@ -79,7 +79,10 @@
import
{
UploadSelfFile
}
from
'../api/common/common'
import
{
Encrypt
,
Decrypt
}
from
'../utils/encrypt'
import
{
Encrypt
,
Decrypt
}
from
'../utils/encrypt'
export
default
{
...
...
@@ -103,7 +106,7 @@
Id
:
0
,
sign
:
''
},
StudentName
:
''
StudentName
:
''
};
},
mounted
()
{
...
...
@@ -117,7 +120,7 @@
let
ContractId
=
Decrypt
(
decodeURIComponent
(
this
.
$route
.
query
.
a
));
this
.
msg
.
ContractId
=
ContractId
;
}
if
(
this
.
$route
.
query
.
StudentName
)
{
if
(
this
.
$route
.
query
.
StudentName
)
{
this
.
StudentName
=
this
.
$route
.
query
.
StudentName
}
if
(
this
.
$route
.
query
.
Money
)
{
...
...
@@ -234,31 +237,8 @@
// _this.basedata = dataurl;
_this
.
msg
.
Sign
=
canvas1
.
toDataURL
(
type
);
_this
.
BackMsg
.
sign
=
canvas1
.
toDataURL
(
type
);
_this
.
SaveMsg
();
let
newArr
=
[];
var
fileName
=
`
${
_this
.
uuid
(
10
,
10
)}
.png`
;
var
path
=
`assets/sign/`
;
let
configObj
=
{
isTencentOcr
:
1
}
newArr
.
push
(
_this
.
dataURLtoFile
(
_this
.
msg
.
Sign
,
fileName
));
UploadSelfFile
(
path
,
newArr
[
0
],
x
=>
{
let
Msg
=
JSON
.
parse
(
x
.
Message
)
if
(
Msg
&&
Msg
.
TextDetections
.
length
>
0
){
let
StuName
=
Msg
.
TextDetections
[
0
].
DetectedText
;
if
(
StuName
==
_this
.
StudentName
){
_this
.
SaveMsg
();
}
else
{
_this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`当前签名与合同主体不匹配请重新签名!`
})
_this
.
clearcanvas
();
return
}
}
},
configObj
)
};
};
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment