Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
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
刘文虎
account-book
Commits
2a6c19c8
Commit
2a6c19c8
authored
Jul 23, 2026
by
李超鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改打包大小超过限制,组件移到分包
parent
c3f88e03
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
13 deletions
+17
-13
zb-tooltip.vue
pages/bill/components/zb-tooltip/zb-tooltip.vue
+0
-0
collapse-body.vue
pages/bill/quoted-price/custom/components/collapse-body.vue
+1
-1
custom.vue
pages/bill/quoted-price/custom/custom.vue
+1
-1
collapse-body.vue
pages/bill/quoted-price/price/components/collapse-body.vue
+1
-1
aki-cryptojs.js
utils/aki-cryptojs.js
+14
-10
No files found.
components/zb-tooltip/zb-tooltip.vue
→
pages/bill/
components/zb-tooltip/zb-tooltip.vue
View file @
2a6c19c8
File moved
pages/bill/quoted-price/custom/components/collapse-body.vue
View file @
2a6c19c8
...
...
@@ -27,7 +27,7 @@
</
template
>
<
script
>
import
ZbTooltip
from
'@/components/zb-tooltip/zb-tooltip.vue'
;
import
ZbTooltip
from
'@/
pages/bill/
components/zb-tooltip/zb-tooltip.vue'
;
import
NumberBox
from
'@/components/number-box/number-box.vue'
;
import
CustomPopup
from
'./custom-popup.vue'
;
import
PopInput
from
'@/components/pop-input-view'
;
...
...
pages/bill/quoted-price/custom/custom.vue
View file @
2a6c19c8
...
...
@@ -93,7 +93,7 @@ import CollapseBody from './components/collapse-body.vue';
import
ShoppingCart
from
'../price/components/shopping-cart.vue'
;
import
CartPopup
from
'../price/components/cart-popup.vue'
;
import
ZbTooltip
from
'@/components/zb-tooltip/zb-tooltip.vue'
;
import
ZbTooltip
from
'@/
pages/bill/
components/zb-tooltip/zb-tooltip.vue'
;
import
NumberBox
from
'@/components/number-box/number-box.vue'
;
import
CustomPopup
from
'./components/custom-popup.vue'
;
...
...
pages/bill/quoted-price/price/components/collapse-body.vue
View file @
2a6c19c8
...
...
@@ -23,7 +23,7 @@
</
template
>
<
script
>
import
ZbTooltip
from
'@/components/zb-tooltip/zb-tooltip.vue'
;
import
ZbTooltip
from
'@/
pages/bill/
components/zb-tooltip/zb-tooltip.vue'
;
import
NumberBox
from
'@/components/number-box/number-box.vue'
;
export
default
{
components
:
{
...
...
utils/aki-cryptojs.js
View file @
2a6c19c8
import
CryptoJS
from
'crypto-js'
;
import
Utf8
from
'crypto-js/enc-utf8'
;
import
AES
from
'crypto-js/aes'
;
import
ECB
from
'crypto-js/mode-ecb'
;
import
Pkcs7
from
'crypto-js/pad-pkcs7'
;
// 仅按需引入 crypto-js 子模块,避免 import 'crypto-js' 全量打入主包 vendor.js
// AES加密
export
const
aesEncrypt
=
(
data
,
key
)
=>
{
const
keyHex
=
CryptoJS
.
enc
.
Utf8
.
parse
(
key
);
const
encrypted
=
CryptoJS
.
AES
.
encrypt
(
data
,
keyHex
,
{
mode
:
CryptoJS
.
mode
.
ECB
,
padding
:
CryptoJS
.
pad
.
Pkcs7
const
keyHex
=
Utf8
.
parse
(
key
);
const
encrypted
=
AES
.
encrypt
(
data
,
keyHex
,
{
mode
:
ECB
,
padding
:
Pkcs7
});
return
encrypted
.
toString
();
};
// AES解密
export
const
aesDecrypt
=
(
encryptedData
,
key
)
=>
{
const
keyHex
=
CryptoJS
.
enc
.
Utf8
.
parse
(
key
);
const
decrypted
=
CryptoJS
.
AES
.
decrypt
(
encryptedData
,
keyHex
,
{
mode
:
CryptoJS
.
mode
.
ECB
,
padding
:
CryptoJS
.
pad
.
Pkcs7
const
keyHex
=
Utf8
.
parse
(
key
);
const
decrypted
=
AES
.
decrypt
(
encryptedData
,
keyHex
,
{
mode
:
ECB
,
padding
:
Pkcs7
});
return
decrypted
.
toString
(
CryptoJS
.
enc
.
Utf8
);
return
decrypted
.
toString
(
Utf8
);
};
/**
...
...
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