Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
Details
Activity
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
Administrator
jd-vx-app
Commits
76ac19b7
Commit
76ac19b7
authored
Jul 08, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑车js修改
parent
9a124503
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
scan.vue
pagesB/pages/move-car/scan.vue
+21
-3
No files found.
pagesB/pages/move-car/scan.vue
View file @
76ac19b7
...
...
@@ -370,10 +370,27 @@ export default {
let
str5
;
if
(
ivs
.
length
>
8
){
str5
=
ivs
.
substring
(
ivs
.
length
-
8
,
ivs
.
length
)
this
.
iv
=
String
(
str2
+
str5
).
padStart
(
16
,
0
)
this
.
iv
=
String
(
str2
+
str5
)
//.padStart(16,0)
while
(
this
.
iv
.
length
<
16
){
let
num
=
''
num
+=
'0'
this
.
iv
=
num
+
this
.
iv
;
}
}
else
{
str5
=
ivs
.
padStart
(
8
,
0
)
this
.
iv
=
String
(
str2
+
str5
).
padStart
(
16
,
0
)
// str5 = ivs//.padStart(8,0)
while
(
ivs
.
length
<
8
){
let
num
=
''
num
+=
'0'
ivs
=
num
+
ivs
;
}
if
(
ivs
.
length
==
8
){
this
.
iv
=
String
(
str2
+
ivs
)
//.padStart(16,0)
while
(
this
.
iv
.
length
<
16
){
let
num2
=
''
num2
+=
'0'
this
.
iv
=
num2
+
this
.
iv
;
}
}
}
this
.
setAES
(
this
.
moveCode
,
this
.
key
)
}
...
...
@@ -390,6 +407,7 @@ export default {
},
// 加密
setAES
(
str
,
keys
)
{
console
.
log
(
this
.
iv
,
22222222222222
)
// const data = CryptoJS.enc.Utf8.parse(str);
const
key
=
CryptoJS
.
enc
.
Utf8
.
parse
(
keys
);
const
iv
=
CryptoJS
.
enc
.
Utf8
.
parse
(
this
.
iv
);
...
...
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