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
df58d25e
Commit
df58d25e
authored
Jul 08, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑车js修改
parent
14f1b701
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
scan.vue
pagesB/pages/move-car/scan.vue
+27
-3
No files found.
pagesB/pages/move-car/scan.vue
View file @
df58d25e
...
...
@@ -476,12 +476,36 @@
let
str4
=
str2
.
substring
(
2
,
4
)
this
.
key
=
str
.
substring
(
str3
,
str4
)
let
str5
;
// if(ivs.length > 8){
// str5 = ivs.substring(ivs.length-8,ivs.length)
// this.iv = String(str2 + str5).padStart(16,0)
// }else{
// str5 = ivs.padStart(8,0)
// this.iv = String(str2 + str5).padStart(16,0)
// }
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
)
}
...
...
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