Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-shop-manage
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
8 years ago
Commit
bdb56382e88ed5e3a6d3a7d94ea9ccfa85a3a4e1
1 parent
a2439eeb
编译
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
16 deletions
.babelrc
app/app.js
app/build/webpack.base.conf.js
app/components/global/common/editor.js
app/pages/product/offsale/offsale.vue
app/plugins/rsa.js
.babelrc
View file @
bdb5638
{
"presets"
:
[
[
"env"
,
{
"modules"
:
false
}],
"stage-2"
"es2015"
],
"plugins"
:
[
"transform-runtime"
],
"comments"
:
false
,
"env"
:
{
"test"
:
{
"presets"
:
[
"env"
,
"stage-2"
],
"plugins"
:
[
"istanbul"
]
}
},
"ignore"
:
[
"node_modules"
]
"plugins"
:
[
"transform-runtime"
]
}
...
...
app/app.js
View file @
bdb5638
...
...
@@ -8,6 +8,12 @@ import './filters';
import
'./directives'
;
import
'iview/dist/styles/iview.css'
;
import
'font-awesome/css/font-awesome.css'
;
import
Promise
from
'promise-polyfill'
;
// To add to window
if
(
!
window
.
Promise
)
{
window
.
Promise
=
Promise
;
}
let
router
=
new
Router
({
routes
:
Routers
,
...
...
app/build/webpack.base.conf.js
View file @
bdb5638
...
...
@@ -63,7 +63,6 @@ module.exports = {
{
test
:
/
\.
js$/
,
loader
:
'babel-loader'
,
include
:
[
util
.
resolve
(
'/'
)],
exclude
:
/node_modules/
},
{
...
...
app/components/global/common/editor.js
View file @
bdb5638
...
...
@@ -34,4 +34,9 @@ const component = function editor(resolve) {
},
'editor'
);
};
if
(
!
component
.
name
)
{
component
.
name
=
'editor'
;
}
export
default
component
;
...
...
app/pages/product/offsale/offsale.vue
View file @
bdb5638
...
...
@@ -287,4 +287,4 @@
.btn-row-space {
margin-top: 10px;
}
</style>
</style>
\ No newline at end of file
...
...
app/plugins/rsa.js
View file @
bdb5638
...
...
@@ -14,11 +14,16 @@ class Rsa {
decrypt
(
cipherText
,
Type
)
{
let
plainText
=
cryptico
.
decrypt
(
cipherText
,
this
.
mattsRSAkey
).
plaintext
;
if
(
Type
&&
Type
.
name
===
'Object'
)
{
if
(
this
.
getType
(
Type
)
===
'Object'
)
{
return
JSON
.
parse
(
decodeURIComponent
(
plainText
));
}
return
plainText
;
}
getType
(
fn
)
{
let
match
=
fn
&&
fn
.
toString
().
match
(
/^
\s
*function
(\w
+
)
/
);
return
match
&&
match
[
1
];
}
}
export
default
new
Rsa
();
...
...
Please
register
or
login
to post a comment