Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
e0a08994
Commit
e0a08994
authored
Sep 21, 2018
by
wangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回车换行 角色树形图 打包
parent
6033412e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
5 deletions
+36
-5
index.html
dist/index.html
+1
-1
app.2144e1361cc1503dd214246f89ccd30b.css
dist/static/css/app.2144e1361cc1503dd214246f89ccd30b.css
+1
-1
0.0e8fd78747838febd4c0.js
dist/static/js/0.0e8fd78747838febd4c0.js
+1
-1
18.6bf99850f8cef153a916.js
dist/static/js/18.6bf99850f8cef153a916.js
+1
-0
manifest.a49e1693c2b41aeac95a.js
dist/static/js/manifest.a49e1693c2b41aeac95a.js
+1
-1
index.vue
src/components/login/index.vue
+1
-1
index.js
src/service/index.js
+30
-0
No files found.
dist/index.html
View file @
e0a08994
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><meta
name=
referrer
content=
never
><link
rel=
stylesheet
href=
https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.d0b13b798a8f118ac77da16d4fc9a1a3.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.59b8cf8117b2d2050955.js
></script><script
type=
text/javascript
src=
/static/js/vendor.9122c146b78876133e6f.js
></script><script
type=
text/javascript
src=
/static/js/app.25ba3a0e18d285b0fb5b.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"width=device-width,initial-scale=1"
><meta
name=
referrer
content=
never
><link
rel=
stylesheet
href=
https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css
><title>
唱唱启蒙-后台
</title><link
href=
/static/css/app.2144e1361cc1503dd214246f89ccd30b.css
rel=
stylesheet
></head><body><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.a49e1693c2b41aeac95a.js
></script><script
type=
text/javascript
src=
/static/js/vendor.9122c146b78876133e6f.js
></script><script
type=
text/javascript
src=
/static/js/app.25ba3a0e18d285b0fb5b.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/static/css/app.
d0b13b798a8f118ac77da16d4fc9a1a3
.css
→
dist/static/css/app.
2144e1361cc1503dd214246f89ccd30b
.css
View file @
e0a08994
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/static/js/0.
905ab761eb081f07ec1d
.js
→
dist/static/js/0.
0e8fd78747838febd4c0
.js
View file @
e0a08994
webpackJsonp
([
0
],{
"+TkF"
:
function
(
t
,
e
,
n
){
"use strict"
;
n
.
d
(
e
,
"a"
,
function
(){
return
r
}),
n
.
d
(
e
,
"l"
,
function
(){
return
o
}),
n
.
d
(
e
,
"i"
,
function
(){
return
i
}),
n
.
d
(
e
,
"e"
,
function
(){
return
u
}),
n
.
d
(
e
,
"h"
,
function
(){
return
a
}),
n
.
d
(
e
,
"d"
,
function
(){
return
s
}),
n
.
d
(
e
,
"m"
,
function
(){
return
f
}),
n
.
d
(
e
,
"f"
,
function
(){
return
c
}),
n
.
d
(
e
,
"j"
,
function
(){
return
d
}),
n
.
d
(
e
,
"b"
,
function
(){
return
p
}),
n
.
d
(
e
,
"c"
,
function
(){
return
l
}),
n
.
d
(
e
,
"k"
,
function
(){
return
h
}),
n
.
d
(
e
,
"g"
,
function
(){
return
m
});
var
r
=
{
0
:
"启用"
,
1
:
"冻结"
},
o
=
{
0
:
"老师"
,
1
:
"新星妈妈"
,
2
:
"推广人"
,
3
:
"市场"
},
i
=
{
0
:
"月课"
,
1
:
"日课"
},
u
=
{
1
:
"普通商品"
,
2
:
"团购商品"
},
a
=
{
0
:
"否"
,
1
:
"是"
},
s
=
{
0
:
"编辑中"
,
1
:
"在售"
,
2
:
"下架"
},
f
=
{
0
:
"周日"
,
1
:
"周一"
,
2
:
"周二"
,
3
:
"周三"
,
4
:
"周四"
,
5
:
"周五"
,
6
:
"周六"
},
c
=
{
0
:
"用户"
,
1
:
"老师"
,
2
:
"推广渠道"
},
d
=
{
0
:
"待付款"
,
1
:
"付款成功"
,
2
:
"付款失败"
,
3
:
"退款成功"
},
p
=
{
1
:
"单买"
,
2
:
"团购"
},
l
=
[{
id
:
1
,
value
:
"单买"
},{
id
:
2
,
value
:
"团购"
}],
h
=
[{
id
:
0
,
value
:
"待付款"
},{
id
:
1
,
value
:
"付款成功"
},{
id
:
2
,
value
:
"付款失败"
},{
id
:
3
,
value
:
"退款成功"
}],
m
=
[{
id
:
0
,
value
:
"用户"
},{
id
:
1
,
value
:
"老师"
},{
id
:
2
,
value
:
"推广渠道"
}]},
"21It"
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"FtD3"
);
t
.
exports
=
function
(
t
,
e
,
n
){
var
o
=
n
.
config
.
validateStatus
;
n
.
status
&&
o
&&!
o
(
n
.
status
)?
e
(
r
(
"Request failed with status code "
+
n
.
status
,
n
.
config
,
null
,
n
.
request
,
n
)):
t
(
n
)}},
"5VQ+"
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"cGG2"
);
t
.
exports
=
function
(
t
,
e
){
r
.
forEach
(
t
,
function
(
n
,
r
){
r
!==
e
&&
r
.
toUpperCase
()
===
e
.
toUpperCase
()
&&
(
t
[
e
]
=
n
,
delete
t
[
r
])})}},
"7GwW"
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"cGG2"
),
o
=
n
(
"21It"
),
i
=
n
(
"DQCr"
),
u
=
n
(
"oJlt"
),
a
=
n
(
"GHBc"
),
s
=
n
(
"FtD3"
),
f
=
"undefined"
!=
typeof
window
&&
window
.
btoa
&&
window
.
btoa
.
bind
(
window
)
||
n
(
"thJu"
);
t
.
exports
=
function
(
t
){
return
new
Promise
(
function
(
e
,
c
){
var
d
=
t
.
data
,
p
=
t
.
headers
;
r
.
isFormData
(
d
)
&&
delete
p
[
"Content-Type"
];
var
l
=
new
XMLHttpRequest
,
h
=
"onreadystatechange"
,
m
=!
1
;
if
(
"undefined"
==
typeof
window
||!
window
.
XDomainRequest
||
"withCredentials"
in
l
||
a
(
t
.
url
)
||
(
l
=
new
window
.
XDomainRequest
,
h
=
"onload"
,
m
=!
0
,
l
.
onprogress
=
function
(){},
l
.
ontimeout
=
function
(){}),
t
.
auth
){
var
y
=
t
.
auth
.
username
||
""
,
_
=
t
.
auth
.
password
||
""
;
p
.
Authorization
=
"Basic "
+
f
(
y
+
":"
+
_
)}
if
(
l
.
open
(
t
.
method
.
toUpperCase
(),
i
(
t
.
url
,
t
.
params
,
t
.
paramsSerializer
),
!
0
),
l
.
timeout
=
t
.
timeout
,
l
[
h
]
=
function
(){
if
(
l
&&
(
4
===
l
.
readyState
||
m
)
&&
(
0
!==
l
.
status
||
l
.
responseURL
&&
0
===
l
.
responseURL
.
indexOf
(
"file:"
))){
var
n
=
"getAllResponseHeaders"
in
l
?
u
(
l
.
getAllResponseHeaders
()):
null
,
r
=
{
data
:
t
.
responseType
&&
"text"
!==
t
.
responseType
?
l
.
response
:
l
.
responseText
,
status
:
1223
===
l
.
status
?
204
:
l
.
status
,
statusText
:
1223
===
l
.
status
?
"No Content"
:
l
.
statusText
,
headers
:
n
,
config
:
t
,
request
:
l
};
o
(
e
,
c
,
r
),
l
=
null
}},
l
.
onerror
=
function
(){
c
(
s
(
"Network Error"
,
t
,
null
,
l
)),
l
=
null
},
l
.
ontimeout
=
function
(){
c
(
s
(
"timeout of "
+
t
.
timeout
+
"ms exceeded"
,
t
,
"ECONNABORTED"
,
l
)),
l
=
null
},
r
.
isStandardBrowserEnv
()){
var
g
=
n
(
"p1b6"
),
v
=
(
t
.
withCredentials
||
a
(
t
.
url
))
&&
t
.
xsrfCookieName
?
g
.
read
(
t
.
xsrfCookieName
):
void
0
;
v
&&
(
p
[
t
.
xsrfHeaderName
]
=
v
)}
if
(
"setRequestHeader"
in
l
&&
r
.
forEach
(
p
,
function
(
t
,
e
){
void
0
===
d
&&
"content-type"
===
e
.
toLowerCase
()?
delete
p
[
e
]:
l
.
setRequestHeader
(
e
,
t
)}),
t
.
withCredentials
&&
(
l
.
withCredentials
=!
0
),
t
.
responseType
)
try
{
l
.
responseType
=
t
.
responseType
}
catch
(
e
){
if
(
"json"
!==
t
.
responseType
)
throw
e
}
"function"
==
typeof
t
.
onDownloadProgress
&&
l
.
addEventListener
(
"progress"
,
t
.
onDownloadProgress
),
"function"
==
typeof
t
.
onUploadProgress
&&
l
.
upload
&&
l
.
upload
.
addEventListener
(
"progress"
,
t
.
onUploadProgress
),
t
.
cancelToken
&&
t
.
cancelToken
.
promise
.
then
(
function
(
t
){
l
&&
(
l
.
abort
(),
c
(
t
),
l
=
null
)}),
void
0
===
d
&&
(
d
=
null
),
l
.
send
(
d
)})}},
CCn6
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"7+uW"
),
o
=
n
(
"mtWM"
),
i
=
n
.
n
(
o
),
u
=
n
(
"NC6I"
),
a
=
n
.
n
(
u
),
s
=
n
(
"IcnI"
),
f
=
n
(
"zL8q"
),
c
=
n
(
"YaEn"
),
d
=
n
(
"zSLJ"
);
i
.
a
.
defaults
.
timeout
=
5
e4
,
i
.
a
.
defaults
.
baseURL
=
""
,
i
.
a
.
interceptors
.
request
.
use
(
function
(
t
){
var
e
=
d
.
a
.
get
(
"cc_token"
);
if
(
t
.
headers
[
"Content-Type"
]
||
(
t
.
headers
=
{
"Content-Type"
:
"application/json"
}),
e
&&
(
t
.
headers
.
token
=
e
),
"get"
===
t
.
method
&&
"/api/admin/login"
!==
t
.
url
){
t
.
params
=
t
.
params
||
{};
var
n
=
JSON
.
parse
(
JSON
.
stringify
(
t
.
params
));
for
(
var
r
in
n
){
/^
[
0
-
9
]
+
$
/
.
test
(
n
[
r
])
&&
(
n
[
r
]
=
Number
(
n
[
r
])),
null
===
n
[
r
]
&&
(
n
[
r
]
=
""
),
n
[
r
]
=
a
()(
n
[
r
].
toString
())}
n
.
sing
=
"singsingenglish21000"
,
t
.
params
.
param_token
=
a
()(
JSON
.
stringify
(
n
))}
else
if
(
"/api/admin/login"
!==
t
.
url
){
t
.
data
=
t
.
data
||
{};
var
o
=
JSON
.
parse
(
JSON
.
stringify
(
t
.
data
));
for
(
var
i
in
o
){
/^
[
0
-
9
]
+
$
/
.
test
(
o
[
i
])
&&
(
o
[
i
]
=
Number
(
o
[
i
])),
null
===
o
[
i
]
&&
(
o
[
i
]
=
""
),
o
[
i
]
=
a
()(
o
[
i
].
toString
())}
o
.
sing
=
"singsingenglish21000"
,
t
.
data
.
param_token
=
a
()(
JSON
.
stringify
(
o
))}
return
t
},
function
(
t
){
return
Promise
.
reject
(
t
)}),
i
.
a
.
interceptors
.
response
.
use
(
function
(
t
){
return
501
===
t
.
data
.
code
&&
c
.
a
.
push
({
name
:
"login"
}),
t
},
function
(
t
){
return
Promise
.
reject
(
t
)}),
n
.
d
(
e
,
"_30"
,
function
(){
return
p
}),
n
.
d
(
e
,
"_31"
,
function
(){
return
l
}),
n
.
d
(
e
,
"U"
,
function
(){
return
h
}),
n
.
d
(
e
,
"I"
,
function
(){
return
m
}),
n
.
d
(
e
,
"a"
,
function
(){
return
y
}),
n
.
d
(
e
,
"r"
,
function
(){
return
_
}),
n
.
d
(
e
,
"Q"
,
function
(){
return
g
}),
n
.
d
(
e
,
"_28"
,
function
(){
return
v
}),
n
.
d
(
e
,
"_27"
,
function
(){
return
E
}),
n
.
d
(
e
,
"_26"
,
function
(){
return
A
}),
n
.
d
(
e
,
"_25"
,
function
(){
return
b
}),
n
.
d
(
e
,
"n"
,
function
(){
return
w
}),
n
.
d
(
e
,
"S"
,
function
(){
return
R
}),
n
.
d
(
e
,
"C"
,
function
(){
return
S
}),
n
.
d
(
e
,
"_12"
,
function
(){
return
C
}),
n
.
d
(
e
,
"_13"
,
function
(){
return
$
}),
n
.
d
(
e
,
"O"
,
function
(){
return
H
}),
n
.
d
(
e
,
"F"
,
function
(){
return
x
}),
n
.
d
(
e
,
"j"
,
function
(){
return
B
}),
n
.
d
(
e
,
"_11"
,
function
(){
return
O
}),
n
.
d
(
e
,
"_10"
,
function
(){
return
T
}),
n
.
d
(
e
,
"i"
,
function
(){
return
N
}),
n
.
d
(
e
,
"N"
,
function
(){
return
k
}),
n
.
d
(
e
,
"E"
,
function
(){
return
M
}),
n
.
d
(
e
,
"_39"
,
function
(){
return
F
}),
n
.
d
(
e
,
"G"
,
function
(){
return
D
}),
n
.
d
(
e
,
"_2"
,
function
(){
return
U
}),
n
.
d
(
e
,
"e"
,
function
(){
return
P
}),
n
.
d
(
e
,
"u"
,
function
(){
return
j
}),
n
.
d
(
e
,
"_38"
,
function
(){
return
I
}),
n
.
d
(
e
,
"_1"
,
function
(){
return
X
}),
n
.
d
(
e
,
"h"
,
function
(){
return
G
}),
n
.
d
(
e
,
"_9"
,
function
(){
return
L
}),
n
.
d
(
e
,
"M"
,
function
(){
return
J
}),
n
.
d
(
e
,
"x"
,
function
(){
return
W
}),
n
.
d
(
e
,
"_24"
,
function
(){
return
q
}),
n
.
d
(
e
,
"_23"
,
function
(){
return
z
}),
n
.
d
(
e
,
"B"
,
function
(){
return
Y
}),
n
.
d
(
e
,
"m"
,
function
(){
return
V
}),
n
.
d
(
e
,
"R"
,
function
(){
return
K
}),
n
.
d
(
e
,
"_0"
,
function
(){
return
Q
}),
n
.
d
(
e
,
"Z"
,
function
(){
return
Z
}),
n
.
d
(
e
,
"c"
,
function
(){
return
tt
}),
n
.
d
(
e
,
"t"
,
function
(){
return
et
}),
n
.
d
(
e
,
"Y"
,
function
(){
return
nt
}),
n
.
d
(
e
,
"K"
,
function
(){
return
rt
}),
n
.
d
(
e
,
"_19"
,
function
(){
return
ot
}),
n
.
d
(
e
,
"_36"
,
function
(){
return
it
}),
n
.
d
(
e
,
"_7"
,
function
(){
return
ut
}),
n
.
d
(
e
,
"_34"
,
function
(){
return
at
}),
n
.
d
(
e
,
"_40"
,
function
(){
return
st
}),
n
.
d
(
e
,
"D"
,
function
(){
return
ft
}),
n
.
d
(
e
,
"_6"
,
function
(){
return
ct
}),
n
.
d
(
e
,
"_14"
,
function
(){
return
dt
}),
n
.
d
(
e
,
"_43"
,
function
(){
return
pt
}),
n
.
d
(
e
,
"_15"
,
function
(){
return
lt
}),
n
.
d
(
e
,
"_35"
,
function
(){
return
ht
}),
n
.
d
(
e
,
"_41"
,
function
(){
return
mt
}),
n
.
d
(
e
,
"y"
,
function
(){
return
yt
}),
n
.
d
(
e
,
"_22"
,
function
(){
return
_t
}),
n
.
d
(
e
,
"_37"
,
function
(){
return
gt
}),
n
.
d
(
e
,
"_42"
,
function
(){
return
vt
}),
n
.
d
(
e
,
"_21"
,
function
(){
return
Et
}),
n
.
d
(
e
,
"A"
,
function
(){
return
At
}),
n
.
d
(
e
,
"X"
,
function
(){
return
bt
}),
n
.
d
(
e
,
"b"
,
function
(){
return
wt
}),
n
.
d
(
e
,
"J"
,
function
(){
return
Rt
}),
n
.
d
(
e
,
"W"
,
function
(){
return
St
}),
n
.
d
(
e
,
"s"
,
function
(){
return
Ct
}),
n
.
d
(
e
,
"_32"
,
function
(){
return
$t
}),
n
.
d
(
e
,
"_17"
,
function
(){
return
Ht
}),
n
.
d
(
e
,
"T"
,
function
(){
return
xt
}),
n
.
d
(
e
,
"_8"
,
function
(){
return
Bt
}),
n
.
d
(
e
,
"z"
,
function
(){
return
Ot
}),
n
.
d
(
e
,
"_4"
,
function
(){
return
Tt
}),
n
.
d
(
e
,
"_18"
,
function
(){
return
Nt
}),
n
.
d
(
e
,
"v"
,
function
(){
return
kt
}),
n
.
d
(
e
,
"f"
,
function
(){
return
Mt
}),
n
.
d
(
e
,
"L"
,
function
(){
return
Ft
}),
n
.
d
(
e
,
"_3"
,
function
(){
return
Dt
}),
n
.
d
(
e
,
"_5"
,
function
(){
return
Ut
}),
n
.
d
(
e
,
"g"
,
function
(){
return
Pt
}),
n
.
d
(
e
,
"p"
,
function
(){
return
jt
}),
n
.
d
(
e
,
"w"
,
function
(){
return
It
}),
n
.
d
(
e
,
"_16"
,
function
(){
return
Xt
}),
n
.
d
(
e
,
"P"
,
function
(){
return
Gt
}),
n
.
d
(
e
,
"_33"
,
function
(){
return
Lt
}),
n
.
d
(
e
,
"H"
,
function
(){
return
Jt
}),
n
.
d
(
e
,
"_44"
,
function
(){
return
Wt
}),
n
.
d
(
e
,
"_20"
,
function
(){
return
qt
}),
n
.
d
(
e
,
"_29"
,
function
(){
return
zt
}),
n
.
d
(
e
,
"d"
,
function
(){
return
Yt
}),
n
.
d
(
e
,
"l"
,
function
(){
return
Vt
}),
n
.
d
(
e
,
"V"
,
function
(){
return
Kt
}),
n
.
d
(
e
,
"o"
,
function
(){
return
Qt
}),
n
.
d
(
e
,
"q"
,
function
(){
return
Zt
}),
n
.
d
(
e
,
"k"
,
function
(){
return
te
});
r
.
default
.
prototype
.
$post
=
function
(
t
){
var
e
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{};
return
new
Promise
(
function
(
n
,
r
){
i
.
a
.
post
(
t
,
e
).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
n
(
t
.
data
.
data
):
f
.
Message
.
error
(
t
.
data
.
msg
)},
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})})},
r
.
default
.
prototype
.
$fetch
=
function
(
t
){
var
e
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{};
return
new
Promise
(
function
(
n
,
r
){
i
.
a
.
get
(
t
,{
params
:
e
}).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
n
(
t
.
data
.
data
):
f
.
Message
.
error
(
t
.
data
.
msg
)}).
catch
(
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})})},
r
.
default
.
prototype
.
$patch
=
function
(
t
){
var
e
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{};
return
new
Promise
(
function
(
n
,
r
){
i
.
a
.
patch
(
t
,
e
).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
n
(
t
.
data
.
data
):
f
.
Message
.
error
(
t
.
data
.
msg
)},
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})})},
r
.
default
.
prototype
.
$put
=
function
(
t
){
var
e
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{};
return
new
Promise
(
function
(
n
,
r
){
i
.
a
.
put
(
t
,
e
).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
n
(
t
.
data
.
data
):
f
.
Message
.
error
(
t
.
data
.
msg
)},
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})})},
r
.
default
.
prototype
.
$del
=
function
(
t
){
var
e
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{};
return
new
Promise
(
function
(
n
,
r
){
i
.
a
.
delete
(
t
,
e
).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
n
(
t
.
data
.
data
):
f
.
Message
.
error
(
t
.
data
.
msg
)},
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})})},
r
.
default
.
prototype
.
$upload
=
function
(
t
,
e
){
return
new
Promise
(
function
(
n
,
r
){
var
o
=
parseInt
(
Number
(
e
.
file
.
size
)
/
Number
(
10485760
)
+
1
),
u
=
0
;
!
function
a
(){
var
c
=
new
FormData
,
d
=
e
.
file
.
slice
(
1024
*
u
*
1024
*
10
,
1024
*
(
u
+
1
)
*
1024
*
10
);
c
.
append
(
"chunk"
,
u
),
c
.
append
(
"file_name"
,
e
.
file
.
name
),
c
.
append
(
"count"
,
o
),
c
.
append
(
"type"
,
e
.
type
),
c
.
append
(
"file"
,
d
),
i
.
a
.
post
(
t
,
c
,{
headers
:{
"Content-Type"
:
"multipart/form-data"
},
timeout
:
1
e5
,
onUploadProgress
:
function
(
t
){
if
(
s
.
a
.
state
.
progressList
.
find
(
function
(
t
){
return
t
.
id
===
e
.
file
.
uid
})){
var
n
=
(
Number
(
t
.
loaded
)
+
Number
(
1024
*
u
*
1024
*
10
))
/
Number
(
e
.
file
.
size
)
*
100
|
0
;
s
.
a
.
dispatch
(
"setProgress"
,{
type
:
"change"
,
id
:
e
.
file
.
uid
,
num
:
n
})}}}).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
u
+
1
<
o
?(
u
++
,
a
()):(
u
=
0
,
n
(
t
.
data
.
data
)):
f
.
Message
.
error
(
t
.
data
.
msg
)}).
catch
(
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})}()})};
var
p
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/login"
,{
username
:
t
.
username
,
passwd
:
t
.
password
})},
l
=
function
(){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/logout"
)},
h
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/user/list"
,
t
)},
m
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/user/info/"
+
t
,
e
)},
y
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/user/add"
,
t
)},
_
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/user/"
+
t
)},
g
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/user/passwd/"
+
t
,
e
)},
v
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/student/list"
,
t
)},
E
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/student/info/"
+
t
)},
A
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/teacher/list"
,
t
)},
b
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/teacher/info/"
+
t
,
e
)},
w
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/teacher/add"
,
t
)},
R
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/teacher/info/"
+
t
,
e
)},
S
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/teacher/"
+
t
)},
C
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/course/list"
,
t
)},
$
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/course/info/"
+
t
,
e
)},
H
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/course/info/"
+
t
,
e
)},
x
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/course/"
+
t
)},
B
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/course/add"
,
t
)},
O
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/goods/list"
,
t
)},
T
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/goods/info/"
+
t
,
e
)},
N
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/goods/add"
,
t
)},
k
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/goods/info/"
+
t
,
e
)},
M
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/goods/"
+
t
)},
F
=
function
(
t
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/goods/putaway/"
+
t
)},
D
=
function
(
t
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/goods/soldout/"
+
t
)},
U
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/category/list/0"
,{
pid
:
t
})},
P
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/category/add/0"
,
t
)},
j
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/category/"
+
t
)},
I
=
function
(
t
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/category/sort"
,
t
)},
X
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/element/list/0"
,
t
)},
G
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/element/add/"
+
e
,
t
)},
L
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/element/"
+
t
)},
J
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/element/"
+
e
,
t
)},
W
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/element/"
+
t
)},
q
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/item/stock/list"
,
t
)},
z
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/item/stock/info/"
+
t
)},
Y
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/item/stock/"
+
t
)},
V
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/item/stock/add"
,
t
)},
K
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/item/stock/info/"
+
t
,
e
)},
Q
=
function
(){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/category/list/1"
)},
Z
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/item/box/list/"
+
t
)},
tt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/item/box/add/"
+
t
,
e
)},
et
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/item/box/"
+
t
)},
nt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/item/box/info/"
+
t
)},
rt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/item/box/info/"
+
t
,
e
)},
ot
=
function
(){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/open/menu"
)},
it
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/open/menu"
,
t
)},
ut
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/sys/config/list"
,
t
)},
at
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/sys/config"
,
t
)},
st
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/sys/config/"
+
t
,
e
)},
ft
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/sys/config/"
+
t
)},
ct
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/sys/config/"
+
t
)},
dt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/open/media/list"
,
t
)},
pt
=
function
(
t
){
return
r
.
default
.
prototype
.
$upload
(
"/api/public/upload/zone"
,
t
)},
lt
=
function
(){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/category/list/2"
)},
ht
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/category/add/2"
,
t
)},
mt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/category/"
+
t
,
e
)},
yt
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/category/"
+
t
)},
_t
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/role/list"
,
t
)},
gt
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/role/add"
,
t
)},
vt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/role/info/"
+
t
,
e
)},
Et
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/role/info/"
+
t
)},
At
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/role/"
+
t
)},
bt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/banner/list"
,
t
)},
wt
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/banner/add"
,
t
)},
Rt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/banner/info/"
+
t
,
e
)},
St
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/banner/info/"
+
t
)},
Ct
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/banner/"
+
t
)},
$t
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/banner/sort"
,{
banner_up_id
:
t
,
banner_down_id
:
e
})},
Ht
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/periods/list"
,
t
)},
xt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/periods/add/"
+
t
,
e
)},
Bt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/periods/info/"
+
t
,
e
)},
Ot
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/periods/"
+
t
)},
Tt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/periods/class/list/"
+
t
,
e
)},
Nt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/periods/teacher/list/"
+
t
)},
kt
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/periods/class/"
+
t
)},
M
t
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/periods/class/add/"
+
t
,
e
)},
Ft
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/periods/class/info/"
+
t
,
e
)},
Dt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/periods/class/info/"
+
t
,
e
)},
Ut
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/class/user/list/"
+
t
)},
Pt
=
function
(
t
,
e
,
n
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/class/user/add/"
+
t
+
"/"
+
e
,
n
)},
jt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/class/user/"
+
t
,
e
)},
It
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/class/user/"
+
t
)},
Xt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/order/list"
,
t
)},
Gt
=
function
(
t
,
e
,
n
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/order/desc/"
+
t
+
"/"
+
e
,
n
)},
Lt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/bill/refund/"
+
t
,
e
)},
Jt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/order/address/"
+
t
,
e
)},
Wt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"//api/admin/order/withdraw/"
+
t
,
e
)},
qt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/order/refund/list"
,
t
)},
zt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/order/withdraw/list"
,
t
)},
Yt
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/category/add/1"
,
t
)},
Vt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/student/bind/"
+
t
,
e
)},
Kt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/user/log"
,
t
)},
Qt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/goods/bind/"
+
t
+
"/"
+
e
)},
Zt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/goods/conflict/"
+
t
,
e
)},
te
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/class/user/desc/"
+
t
,
e
)}},
DQCr
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"cGG2"
);
function
o
(
t
){
return
encodeURIComponent
(
t
).
replace
(
/%40/gi
,
"@"
).
replace
(
/%3A/gi
,
":"
).
replace
(
/%24/g
,
"$"
).
replace
(
/%2C/gi
,
","
).
replace
(
/%20/g
,
"+"
).
replace
(
/%5B/gi
,
"["
).
replace
(
/%5D/gi
,
"]"
)}
t
.
exports
=
function
(
t
,
e
,
n
){
if
(
!
e
)
return
t
;
var
i
;
if
(
n
)
i
=
n
(
e
);
else
if
(
r
.
isURLSearchParams
(
e
))
i
=
e
.
toString
();
else
{
var
u
=
[];
r
.
forEach
(
e
,
function
(
t
,
e
){
null
!==
t
&&
void
0
!==
t
&&
(
r
.
isArray
(
t
)?
e
+=
"[]"
:
t
=
[
t
],
r
.
forEach
(
t
,
function
(
t
){
r
.
isDate
(
t
)?
t
=
t
.
toISOString
():
r
.
isObject
(
t
)
&&
(
t
=
JSON
.
stringify
(
t
)),
u
.
push
(
o
(
e
)
+
"="
+
o
(
t
))}))}),
i
=
u
.
join
(
"&"
)}
return
i
&&
(
t
+=
(
-
1
===
t
.
indexOf
(
"?"
)?
"?"
:
"&"
)
+
i
),
t
}},
FtD3
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"t8qj"
);
t
.
exports
=
function
(
t
,
e
,
n
,
o
,
i
){
var
u
=
new
Error
(
t
);
return
r
(
u
,
e
,
n
,
o
,
i
)}},
GHBc
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"cGG2"
);
t
.
exports
=
r
.
isStandardBrowserEnv
()?
function
(){
var
t
,
e
=
/
(
msie|trident
)
/i
.
test
(
navigator
.
userAgent
),
n
=
document
.
createElement
(
"a"
);
function
o
(
t
){
var
r
=
t
;
return
e
&&
(
n
.
setAttribute
(
"href"
,
r
),
r
=
n
.
href
),
n
.
setAttribute
(
"href"
,
r
),{
href
:
n
.
href
,
protocol
:
n
.
protocol
?
n
.
protocol
.
replace
(
/:$/
,
""
):
""
,
host
:
n
.
host
,
search
:
n
.
search
?
n
.
search
.
replace
(
/^
\?
/
,
""
):
""
,
hash
:
n
.
hash
?
n
.
hash
.
replace
(
/^#/
,
""
):
""
,
hostname
:
n
.
hostname
,
port
:
n
.
port
,
pathname
:
"/"
===
n
.
pathname
.
charAt
(
0
)?
n
.
pathname
:
"/"
+
n
.
pathname
}}
return
t
=
o
(
window
.
location
.
href
),
function
(
e
){
var
n
=
r
.
isString
(
e
)?
o
(
e
):
e
;
return
n
.
protocol
===
t
.
protocol
&&
n
.
host
===
t
.
host
}}():
function
(){
return
!
0
}},
"JP+z"
:
function
(
t
,
e
,
n
){
"use strict"
;
t
.
exports
=
function
(
t
,
e
){
return
function
(){
for
(
var
n
=
new
Array
(
arguments
.
length
),
r
=
0
;
r
<
n
.
length
;
r
++
)
n
[
r
]
=
arguments
[
r
];
return
t
.
apply
(
e
,
n
)}}},
JnGA
:
function
(
t
,
e
){},
KCLY
:
function
(
t
,
e
,
n
){
"use strict"
;(
function
(
e
){
var
r
=
n
(
"cGG2"
),
o
=
n
(
"5VQ+"
),
i
=
{
"Content-Type"
:
"application/x-www-form-urlencoded"
};
function
u
(
t
,
e
){
!
r
.
isUndefined
(
t
)
&&
r
.
isUndefined
(
t
[
"Content-Type"
])
&&
(
t
[
"Content-Type"
]
=
e
)}
var
a
,
s
=
{
adapter
:(
"undefined"
!=
typeof
XMLHttpRequest
?
a
=
n
(
"7GwW"
):
void
0
!==
e
&&
(
a
=
n
(
"7GwW"
)),
a
),
transformRequest
:[
function
(
t
,
e
){
return
o
(
e
,
"Content-Type"
),
r
.
isFormData
(
t
)
||
r
.
isArrayBuffer
(
t
)
||
r
.
isBuffer
(
t
)
||
r
.
isStream
(
t
)
||
r
.
isFile
(
t
)
||
r
.
isBlob
(
t
)?
t
:
r
.
isArrayBufferView
(
t
)?
t
.
buffer
:
r
.
isURLSearchParams
(
t
)?(
u
(
e
,
"application/x-www-form-urlencoded;charset=utf-8"
),
t
.
toString
()):
r
.
isObject
(
t
)?(
u
(
e
,
"application/json;charset=utf-8"
),
JSON
.
stringify
(
t
)):
t
}],
transformResponse
:[
function
(
t
){
if
(
"string"
==
typeof
t
)
try
{
t
=
JSON
.
parse
(
t
)}
catch
(
t
){}
return
t
}],
timeout
:
0
,
xsrfCookieName
:
"XSRF-TOKEN"
,
xsrfHeaderName
:
"X-XSRF-TOKEN"
,
maxContentLength
:
-
1
,
validateStatus
:
function
(
t
){
return
t
>=
200
&&
t
<
300
}};
s
.
headers
=
{
common
:{
Accept
:
"application/json, text/plain, */*"
}},
r
.
forEach
([
"delete"
,
"get"
,
"head"
],
function
(
t
){
s
.
headers
[
t
]
=
{}}),
r
.
forEach
([
"post"
,
"put"
,
"patch"
],
function
(
t
){
s
.
headers
[
t
]
=
r
.
merge
(
i
)}),
t
.
exports
=
s
}).
call
(
e
,
n
(
"W2nU"
))},
NC6I
:
function
(
module
,
exports
,
__webpack_require__
){(
function
(
process
,
global
){
var
__WEBPACK_AMD_DEFINE_RESULT__
;
webpackJsonp
([
0
],{
"+TkF"
:
function
(
t
,
e
,
n
){
"use strict"
;
n
.
d
(
e
,
"a"
,
function
(){
return
r
}),
n
.
d
(
e
,
"l"
,
function
(){
return
o
}),
n
.
d
(
e
,
"i"
,
function
(){
return
i
}),
n
.
d
(
e
,
"e"
,
function
(){
return
u
}),
n
.
d
(
e
,
"h"
,
function
(){
return
a
}),
n
.
d
(
e
,
"d"
,
function
(){
return
s
}),
n
.
d
(
e
,
"m"
,
function
(){
return
f
}),
n
.
d
(
e
,
"f"
,
function
(){
return
c
}),
n
.
d
(
e
,
"j"
,
function
(){
return
d
}),
n
.
d
(
e
,
"b"
,
function
(){
return
p
}),
n
.
d
(
e
,
"c"
,
function
(){
return
l
}),
n
.
d
(
e
,
"k"
,
function
(){
return
h
}),
n
.
d
(
e
,
"g"
,
function
(){
return
m
});
var
r
=
{
0
:
"启用"
,
1
:
"冻结"
},
o
=
{
0
:
"老师"
,
1
:
"新星妈妈"
,
2
:
"推广人"
,
3
:
"市场"
},
i
=
{
0
:
"月课"
,
1
:
"日课"
},
u
=
{
1
:
"普通商品"
,
2
:
"团购商品"
},
a
=
{
0
:
"否"
,
1
:
"是"
},
s
=
{
0
:
"编辑中"
,
1
:
"在售"
,
2
:
"下架"
},
f
=
{
0
:
"周日"
,
1
:
"周一"
,
2
:
"周二"
,
3
:
"周三"
,
4
:
"周四"
,
5
:
"周五"
,
6
:
"周六"
},
c
=
{
0
:
"用户"
,
1
:
"老师"
,
2
:
"推广渠道"
},
d
=
{
0
:
"待付款"
,
1
:
"付款成功"
,
2
:
"付款失败"
,
3
:
"退款成功"
},
p
=
{
1
:
"单买"
,
2
:
"团购"
},
l
=
[{
id
:
1
,
value
:
"单买"
},{
id
:
2
,
value
:
"团购"
}],
h
=
[{
id
:
0
,
value
:
"待付款"
},{
id
:
1
,
value
:
"付款成功"
},{
id
:
2
,
value
:
"付款失败"
},{
id
:
3
,
value
:
"退款成功"
}],
m
=
[{
id
:
0
,
value
:
"用户"
},{
id
:
1
,
value
:
"老师"
},{
id
:
2
,
value
:
"推广渠道"
}]},
"21It"
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"FtD3"
);
t
.
exports
=
function
(
t
,
e
,
n
){
var
o
=
n
.
config
.
validateStatus
;
n
.
status
&&
o
&&!
o
(
n
.
status
)?
e
(
r
(
"Request failed with status code "
+
n
.
status
,
n
.
config
,
null
,
n
.
request
,
n
)):
t
(
n
)}},
"5VQ+"
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"cGG2"
);
t
.
exports
=
function
(
t
,
e
){
r
.
forEach
(
t
,
function
(
n
,
r
){
r
!==
e
&&
r
.
toUpperCase
()
===
e
.
toUpperCase
()
&&
(
t
[
e
]
=
n
,
delete
t
[
r
])})}},
"7GwW"
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"cGG2"
),
o
=
n
(
"21It"
),
i
=
n
(
"DQCr"
),
u
=
n
(
"oJlt"
),
a
=
n
(
"GHBc"
),
s
=
n
(
"FtD3"
),
f
=
"undefined"
!=
typeof
window
&&
window
.
btoa
&&
window
.
btoa
.
bind
(
window
)
||
n
(
"thJu"
);
t
.
exports
=
function
(
t
){
return
new
Promise
(
function
(
e
,
c
){
var
d
=
t
.
data
,
p
=
t
.
headers
;
r
.
isFormData
(
d
)
&&
delete
p
[
"Content-Type"
];
var
l
=
new
XMLHttpRequest
,
h
=
"onreadystatechange"
,
m
=!
1
;
if
(
"undefined"
==
typeof
window
||!
window
.
XDomainRequest
||
"withCredentials"
in
l
||
a
(
t
.
url
)
||
(
l
=
new
window
.
XDomainRequest
,
h
=
"onload"
,
m
=!
0
,
l
.
onprogress
=
function
(){},
l
.
ontimeout
=
function
(){}),
t
.
auth
){
var
y
=
t
.
auth
.
username
||
""
,
g
=
t
.
auth
.
password
||
""
;
p
.
Authorization
=
"Basic "
+
f
(
y
+
":"
+
g
)}
if
(
l
.
open
(
t
.
method
.
toUpperCase
(),
i
(
t
.
url
,
t
.
params
,
t
.
paramsSerializer
),
!
0
),
l
.
timeout
=
t
.
timeout
,
l
[
h
]
=
function
(){
if
(
l
&&
(
4
===
l
.
readyState
||
m
)
&&
(
0
!==
l
.
status
||
l
.
responseURL
&&
0
===
l
.
responseURL
.
indexOf
(
"file:"
))){
var
n
=
"getAllResponseHeaders"
in
l
?
u
(
l
.
getAllResponseHeaders
()):
null
,
r
=
{
data
:
t
.
responseType
&&
"text"
!==
t
.
responseType
?
l
.
response
:
l
.
responseText
,
status
:
1223
===
l
.
status
?
204
:
l
.
status
,
statusText
:
1223
===
l
.
status
?
"No Content"
:
l
.
statusText
,
headers
:
n
,
config
:
t
,
request
:
l
};
o
(
e
,
c
,
r
),
l
=
null
}},
l
.
onerror
=
function
(){
c
(
s
(
"Network Error"
,
t
,
null
,
l
)),
l
=
null
},
l
.
ontimeout
=
function
(){
c
(
s
(
"timeout of "
+
t
.
timeout
+
"ms exceeded"
,
t
,
"ECONNABORTED"
,
l
)),
l
=
null
},
r
.
isStandardBrowserEnv
()){
var
_
=
n
(
"p1b6"
),
v
=
(
t
.
withCredentials
||
a
(
t
.
url
))
&&
t
.
xsrfCookieName
?
_
.
read
(
t
.
xsrfCookieName
):
void
0
;
v
&&
(
p
[
t
.
xsrfHeaderName
]
=
v
)}
if
(
"setRequestHeader"
in
l
&&
r
.
forEach
(
p
,
function
(
t
,
e
){
void
0
===
d
&&
"content-type"
===
e
.
toLowerCase
()?
delete
p
[
e
]:
l
.
setRequestHeader
(
e
,
t
)}),
t
.
withCredentials
&&
(
l
.
withCredentials
=!
0
),
t
.
responseType
)
try
{
l
.
responseType
=
t
.
responseType
}
catch
(
e
){
if
(
"json"
!==
t
.
responseType
)
throw
e
}
"function"
==
typeof
t
.
onDownloadProgress
&&
l
.
addEventListener
(
"progress"
,
t
.
onDownloadProgress
),
"function"
==
typeof
t
.
onUploadProgress
&&
l
.
upload
&&
l
.
upload
.
addEventListener
(
"progress"
,
t
.
onUploadProgress
),
t
.
cancelToken
&&
t
.
cancelToken
.
promise
.
then
(
function
(
t
){
l
&&
(
l
.
abort
(),
c
(
t
),
l
=
null
)}),
void
0
===
d
&&
(
d
=
null
),
l
.
send
(
d
)})}},
CCn6
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"7+uW"
),
o
=
n
(
"mtWM"
),
i
=
n
.
n
(
o
),
u
=
n
(
"NC6I"
),
a
=
n
.
n
(
u
),
s
=
n
(
"IcnI"
),
f
=
n
(
"zL8q"
),
c
=
n
(
"YaEn"
),
d
=
n
(
"zSLJ"
);
i
.
a
.
defaults
.
timeout
=
5
e4
,
i
.
a
.
defaults
.
baseURL
=
""
,
i
.
a
.
interceptors
.
request
.
use
(
function
(
t
){
var
e
=
d
.
a
.
get
(
"cc_token"
);
if
(
t
.
headers
[
"Content-Type"
]
||
(
t
.
headers
=
{
"Content-Type"
:
"application/json"
}),
e
&&
(
t
.
headers
.
token
=
e
),
"get"
===
t
.
method
&&
"/api/admin/login"
!==
t
.
url
){
t
.
params
=
t
.
params
||
{};
var
n
=
JSON
.
parse
(
JSON
.
stringify
(
t
.
params
));
for
(
var
r
in
n
){
/^
[
0
-
9
]
+
$
/
.
test
(
n
[
r
])
&&
(
n
[
r
]
=
Number
(
n
[
r
])),
null
===
n
[
r
]
&&
(
n
[
r
]
=
""
),
n
[
r
]
=
a
()(
n
[
r
].
toString
())}
n
.
sing
=
"singsingenglish21000"
,
t
.
params
.
param_token
=
a
()(
JSON
.
stringify
(
n
))}
else
if
(
"/api/admin/login"
!==
t
.
url
){
t
.
data
=
t
.
data
||
{};
var
o
=
JSON
.
parse
(
JSON
.
stringify
(
t
.
data
));
for
(
var
i
in
o
){
/^
[
0
-
9
]
+
$
/
.
test
(
o
[
i
])
&&
(
o
[
i
]
=
Number
(
o
[
i
])),
null
===
o
[
i
]
&&
(
o
[
i
]
=
""
),
o
[
i
]
=
a
()(
o
[
i
].
toString
())}
o
.
sing
=
"singsingenglish21000"
,
t
.
data
.
param_token
=
a
()(
JSON
.
stringify
(
o
))}
return
t
},
function
(
t
){
return
Promise
.
reject
(
t
)}),
i
.
a
.
interceptors
.
response
.
use
(
function
(
t
){
return
501
===
t
.
data
.
code
&&
c
.
a
.
push
({
name
:
"login"
}),
t
},
function
(
t
){
return
Promise
.
reject
(
t
)}),
n
.
d
(
e
,
"_30"
,
function
(){
return
p
}),
n
.
d
(
e
,
"_31"
,
function
(){
return
l
}),
n
.
d
(
e
,
"U"
,
function
(){
return
h
}),
n
.
d
(
e
,
"I"
,
function
(){
return
m
}),
n
.
d
(
e
,
"a"
,
function
(){
return
y
}),
n
.
d
(
e
,
"r"
,
function
(){
return
g
}),
n
.
d
(
e
,
"Q"
,
function
(){
return
_
}),
n
.
d
(
e
,
"_28"
,
function
(){
return
v
}),
n
.
d
(
e
,
"_27"
,
function
(){
return
E
}),
n
.
d
(
e
,
"_26"
,
function
(){
return
A
}),
n
.
d
(
e
,
"_25"
,
function
(){
return
b
}),
n
.
d
(
e
,
"n"
,
function
(){
return
w
}),
n
.
d
(
e
,
"S"
,
function
(){
return
R
}),
n
.
d
(
e
,
"C"
,
function
(){
return
S
}),
n
.
d
(
e
,
"_12"
,
function
(){
return
C
}),
n
.
d
(
e
,
"_13"
,
function
(){
return
$
}),
n
.
d
(
e
,
"O"
,
function
(){
return
H
}),
n
.
d
(
e
,
"F"
,
function
(){
return
x
}),
n
.
d
(
e
,
"j"
,
function
(){
return
B
}),
n
.
d
(
e
,
"_11"
,
function
(){
return
O
}),
n
.
d
(
e
,
"_10"
,
function
(){
return
T
}),
n
.
d
(
e
,
"i"
,
function
(){
return
N
}),
n
.
d
(
e
,
"N"
,
function
(){
return
M
}),
n
.
d
(
e
,
"E"
,
function
(){
return
k
}),
n
.
d
(
e
,
"_39"
,
function
(){
return
F
}),
n
.
d
(
e
,
"G"
,
function
(){
return
D
}),
n
.
d
(
e
,
"_2"
,
function
(){
return
U
}),
n
.
d
(
e
,
"e"
,
function
(){
return
P
}),
n
.
d
(
e
,
"u"
,
function
(){
return
j
}),
n
.
d
(
e
,
"_38"
,
function
(){
return
I
}),
n
.
d
(
e
,
"_1"
,
function
(){
return
X
}),
n
.
d
(
e
,
"h"
,
function
(){
return
G
}),
n
.
d
(
e
,
"_9"
,
function
(){
return
L
}),
n
.
d
(
e
,
"M"
,
function
(){
return
J
}),
n
.
d
(
e
,
"x"
,
function
(){
return
W
}),
n
.
d
(
e
,
"_24"
,
function
(){
return
q
}),
n
.
d
(
e
,
"_23"
,
function
(){
return
z
}),
n
.
d
(
e
,
"B"
,
function
(){
return
Y
}),
n
.
d
(
e
,
"m"
,
function
(){
return
V
}),
n
.
d
(
e
,
"R"
,
function
(){
return
K
}),
n
.
d
(
e
,
"_0"
,
function
(){
return
Q
}),
n
.
d
(
e
,
"Z"
,
function
(){
return
Z
}),
n
.
d
(
e
,
"c"
,
function
(){
return
tt
}),
n
.
d
(
e
,
"t"
,
function
(){
return
et
}),
n
.
d
(
e
,
"Y"
,
function
(){
return
nt
}),
n
.
d
(
e
,
"K"
,
function
(){
return
rt
}),
n
.
d
(
e
,
"_19"
,
function
(){
return
ot
}),
n
.
d
(
e
,
"_36"
,
function
(){
return
it
}),
n
.
d
(
e
,
"_7"
,
function
(){
return
ut
}),
n
.
d
(
e
,
"_34"
,
function
(){
return
at
}),
n
.
d
(
e
,
"_40"
,
function
(){
return
st
}),
n
.
d
(
e
,
"D"
,
function
(){
return
ft
}),
n
.
d
(
e
,
"_6"
,
function
(){
return
ct
}),
n
.
d
(
e
,
"_14"
,
function
(){
return
dt
}),
n
.
d
(
e
,
"_43"
,
function
(){
return
pt
}),
n
.
d
(
e
,
"_15"
,
function
(){
return
lt
}),
n
.
d
(
e
,
"_35"
,
function
(){
return
ht
}),
n
.
d
(
e
,
"_41"
,
function
(){
return
mt
}),
n
.
d
(
e
,
"y"
,
function
(){
return
yt
}),
n
.
d
(
e
,
"_22"
,
function
(){
return
gt
}),
n
.
d
(
e
,
"_37"
,
function
(){
return
_t
}),
n
.
d
(
e
,
"_42"
,
function
(){
return
vt
}),
n
.
d
(
e
,
"_21"
,
function
(){
return
Et
}),
n
.
d
(
e
,
"A"
,
function
(){
return
At
}),
n
.
d
(
e
,
"X"
,
function
(){
return
bt
}),
n
.
d
(
e
,
"b"
,
function
(){
return
wt
}),
n
.
d
(
e
,
"J"
,
function
(){
return
Rt
}),
n
.
d
(
e
,
"W"
,
function
(){
return
St
}),
n
.
d
(
e
,
"s"
,
function
(){
return
Ct
}),
n
.
d
(
e
,
"_32"
,
function
(){
return
$t
}),
n
.
d
(
e
,
"_17"
,
function
(){
return
Ht
}),
n
.
d
(
e
,
"T"
,
function
(){
return
xt
}),
n
.
d
(
e
,
"_8"
,
function
(){
return
Bt
}),
n
.
d
(
e
,
"z"
,
function
(){
return
Ot
}),
n
.
d
(
e
,
"_4"
,
function
(){
return
Tt
}),
n
.
d
(
e
,
"_18"
,
function
(){
return
Nt
}),
n
.
d
(
e
,
"v"
,
function
(){
return
Mt
}),
n
.
d
(
e
,
"f"
,
function
(){
return
kt
}),
n
.
d
(
e
,
"L"
,
function
(){
return
Ft
}),
n
.
d
(
e
,
"_3"
,
function
(){
return
Dt
}),
n
.
d
(
e
,
"_5"
,
function
(){
return
Ut
}),
n
.
d
(
e
,
"g"
,
function
(){
return
Pt
}),
n
.
d
(
e
,
"p"
,
function
(){
return
jt
}),
n
.
d
(
e
,
"w"
,
function
(){
return
It
}),
n
.
d
(
e
,
"_16"
,
function
(){
return
Xt
}),
n
.
d
(
e
,
"P"
,
function
(){
return
Gt
}),
n
.
d
(
e
,
"_33"
,
function
(){
return
Lt
}),
n
.
d
(
e
,
"H"
,
function
(){
return
Jt
}),
n
.
d
(
e
,
"_44"
,
function
(){
return
Wt
}),
n
.
d
(
e
,
"_20"
,
function
(){
return
qt
}),
n
.
d
(
e
,
"_29"
,
function
(){
return
zt
}),
n
.
d
(
e
,
"d"
,
function
(){
return
Yt
}),
n
.
d
(
e
,
"l"
,
function
(){
return
Vt
}),
n
.
d
(
e
,
"V"
,
function
(){
return
Kt
}),
n
.
d
(
e
,
"o"
,
function
(){
return
Qt
}),
n
.
d
(
e
,
"q"
,
function
(){
return
Zt
}),
n
.
d
(
e
,
"k"
,
function
(){
return
te
});
r
.
default
.
prototype
.
$post
=
function
(
t
){
var
e
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{};
return
new
Promise
(
function
(
n
,
r
){
i
.
a
.
post
(
t
,
e
).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
n
(
t
.
data
.
data
):
501
===
t
.
data
.
code
?
c
.
a
.
push
({
name
:
"login"
}):
503
===
t
.
data
.
code
?
f
.
Message
.
error
(
"请勿平凡操作"
):
f
.
Message
.
error
(
t
.
data
.
msg
)},
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})})},
r
.
default
.
prototype
.
$fetch
=
function
(
t
){
var
e
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{};
return
new
Promise
(
function
(
n
,
r
){
i
.
a
.
get
(
t
,{
params
:
e
}).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
n
(
t
.
data
.
data
):
501
===
t
.
data
.
code
?
c
.
a
.
push
({
name
:
"login"
}):
503
===
t
.
data
.
code
?
f
.
Message
.
error
(
"请勿平凡操作"
):
f
.
Message
.
error
(
t
.
data
.
msg
)}).
catch
(
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})})},
r
.
default
.
prototype
.
$patch
=
function
(
t
){
var
e
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{};
return
new
Promise
(
function
(
n
,
r
){
i
.
a
.
patch
(
t
,
e
).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
n
(
t
.
data
.
data
):
501
===
t
.
data
.
code
?
c
.
a
.
push
({
name
:
"login"
}):
503
===
t
.
data
.
code
?
f
.
Message
.
error
(
"请勿平凡操作"
):
f
.
Message
.
error
(
t
.
data
.
msg
)},
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})})},
r
.
default
.
prototype
.
$put
=
function
(
t
){
var
e
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{};
return
new
Promise
(
function
(
n
,
r
){
i
.
a
.
put
(
t
,
e
).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
n
(
t
.
data
.
data
):
501
===
t
.
data
.
code
?
c
.
a
.
push
({
name
:
"login"
}):
503
===
t
.
data
.
code
?
f
.
Message
.
error
(
"请勿平凡操作"
):
f
.
Message
.
error
(
t
.
data
.
msg
)},
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})})},
r
.
default
.
prototype
.
$del
=
function
(
t
){
var
e
=
arguments
.
length
>
1
&&
void
0
!==
arguments
[
1
]?
arguments
[
1
]:{};
return
new
Promise
(
function
(
n
,
r
){
i
.
a
.
delete
(
t
,
e
).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
n
(
t
.
data
.
data
):
501
===
t
.
data
.
code
?
c
.
a
.
push
({
name
:
"login"
}):
503
===
t
.
data
.
code
?
f
.
Message
.
error
(
"请勿平凡操作"
):
f
.
Message
.
error
(
t
.
data
.
msg
)},
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})})},
r
.
default
.
prototype
.
$upload
=
function
(
t
,
e
){
return
new
Promise
(
function
(
n
,
r
){
var
o
=
parseInt
(
Number
(
e
.
file
.
size
)
/
Number
(
10485760
)
+
1
),
u
=
0
;
!
function
a
(){
var
c
=
new
FormData
,
d
=
e
.
file
.
slice
(
1024
*
u
*
1024
*
10
,
1024
*
(
u
+
1
)
*
1024
*
10
);
c
.
append
(
"chunk"
,
u
),
c
.
append
(
"file_name"
,
e
.
file
.
name
),
c
.
append
(
"count"
,
o
),
c
.
append
(
"type"
,
e
.
type
),
c
.
append
(
"file"
,
d
),
i
.
a
.
post
(
t
,
c
,{
headers
:{
"Content-Type"
:
"multipart/form-data"
},
timeout
:
1
e5
,
onUploadProgress
:
function
(
t
){
if
(
s
.
a
.
state
.
progressList
.
find
(
function
(
t
){
return
t
.
id
===
e
.
file
.
uid
})){
var
n
=
(
Number
(
t
.
loaded
)
+
Number
(
1024
*
u
*
1024
*
10
))
/
Number
(
e
.
file
.
size
)
*
100
|
0
;
s
.
a
.
dispatch
(
"setProgress"
,{
type
:
"change"
,
id
:
e
.
file
.
uid
,
num
:
n
})}}}).
then
(
function
(
t
){
200
===
t
.
data
.
code
?
u
+
1
<
o
?(
u
++
,
a
()):(
u
=
0
,
n
(
t
.
data
.
data
)):
f
.
Message
.
error
(
t
.
data
.
msg
)}).
catch
(
function
(
t
){
r
(
t
);
var
e
=
"请求失败!请检查网络"
;
t
.
response
&&
(
e
=
t
.
response
.
data
.
message
),
Object
(
f
.
MessageBox
)({
title
:
"错误!"
,
message
:
e
,
type
:
"error"
})})}()})};
var
p
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/login"
,{
username
:
t
.
username
,
passwd
:
t
.
password
})},
l
=
function
(){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/logout"
)},
h
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/user/list"
,
t
)},
m
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/user/info/"
+
t
,
e
)},
y
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/user/add"
,
t
)},
g
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/user/"
+
t
)},
_
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/user/passwd/"
+
t
,
e
)},
v
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/student/list"
,
t
)},
E
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/student/info/"
+
t
)},
A
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/teacher/list"
,
t
)},
b
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/teacher/info/"
+
t
,
e
)},
w
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/teacher/add"
,
t
)},
R
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/teacher/info/"
+
t
,
e
)},
S
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/teacher/"
+
t
)},
C
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/course/list"
,
t
)},
$
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/course/info/"
+
t
,
e
)},
H
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/course/info/"
+
t
,
e
)},
x
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/course/"
+
t
)},
B
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/course/add"
,
t
)},
O
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/goods/list"
,
t
)},
T
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/goods/info/"
+
t
,
e
)},
N
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/goods/add"
,
t
)},
M
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/goods/info/"
+
t
,
e
)},
k
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/goods/"
+
t
)},
F
=
function
(
t
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/goods/putaway/"
+
t
)},
D
=
function
(
t
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/goods/soldout/"
+
t
)},
U
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/category/list/0"
,{
pid
:
t
})},
P
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/category/add/0"
,
t
)},
j
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/category/"
+
t
)},
I
=
function
(
t
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/category/sort"
,
t
)},
X
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/element/list/0"
,
t
)},
G
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/element/add/"
+
e
,
t
)},
L
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/element/"
+
t
)},
J
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/element/"
+
e
,
t
)},
W
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/element/"
+
t
)},
q
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/item/stock/list"
,
t
)},
z
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/item/stock/info/"
+
t
)},
Y
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/item/stock/"
+
t
)},
V
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/item/stock/add"
,
t
)},
K
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/item/stock/info/"
+
t
,
e
)},
Q
=
function
(){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/category/list/1"
)},
Z
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/item/box/list/"
+
t
)},
tt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/item/box/add/"
+
t
,
e
)},
et
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/item/box/"
+
t
)},
nt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/item/box/info/"
+
t
)},
rt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/item/box/info/"
+
t
,
e
)},
ot
=
function
(){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/open/menu"
)},
it
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/open/menu"
,
t
)},
ut
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/sys/config/list"
,
t
)},
at
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/sys/config"
,
t
)},
st
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/sys/config/"
+
t
,
e
)},
ft
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/sys/config/"
+
t
)},
ct
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/sys/config/"
+
t
)},
dt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/open/media/list"
,
t
)},
pt
=
function
(
t
){
return
r
.
default
.
prototype
.
$upload
(
"/api/public/upload/zone"
,
t
)},
lt
=
function
(){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/category/list/2"
)},
ht
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/category/add/2"
,
t
)},
mt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/category/"
+
t
,
e
)},
yt
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/category/"
+
t
)},
gt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/role/list"
,
t
)},
_t
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/role/add"
,
t
)},
vt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/role/info/"
+
t
,
e
)},
Et
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/role/info/"
+
t
)},
At
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/role/"
+
t
)},
bt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/banner/list"
,
t
)},
wt
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/banner/add"
,
t
)},
Rt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/banner/info/"
+
t
,
e
)},
St
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/banner/info/"
+
t
)},
Ct
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/banner/"
+
t
)},
$t
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/banner/sort"
,{
banner_up_id
:
t
,
banner_down_id
:
e
})},
Ht
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/periods/list"
,
t
)},
xt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/periods/add/"
+
t
,
e
)},
Bt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/periods/info/"
+
t
,
e
)},
Ot
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/periods/"
+
t
)},
Tt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/periods/class/list/"
+
t
,
e
)},
Nt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/periods/teacher/list/"
+
t
)},
Mt
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/periods/class/"
+
t
)},
k
t
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/periods/class/add/"
+
t
,
e
)},
Ft
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/periods/class/info/"
+
t
,
e
)},
Dt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/periods/class/info/"
+
t
,
e
)},
Ut
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/class/user/list/"
+
t
)},
Pt
=
function
(
t
,
e
,
n
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/class/user/add/"
+
t
+
"/"
+
e
,
n
)},
jt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/class/user/"
+
t
,
e
)},
It
=
function
(
t
){
return
r
.
default
.
prototype
.
$del
(
"/api/admin/class/user/"
+
t
)},
Xt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/order/list"
,
t
)},
Gt
=
function
(
t
,
e
,
n
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/order/desc/"
+
t
+
"/"
+
e
,
n
)},
Lt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/bill/refund/"
+
t
,
e
)},
Jt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/order/address/"
+
t
,
e
)},
Wt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$post
(
"//api/admin/order/withdraw/"
+
t
,
e
)},
qt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/order/refund/list"
,
t
)},
zt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/order/withdraw/list"
,
t
)},
Yt
=
function
(
t
){
return
r
.
default
.
prototype
.
$post
(
"/api/admin/category/add/1"
,
t
)},
Vt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/student/bind/"
+
t
,
e
)},
Kt
=
function
(
t
){
return
r
.
default
.
prototype
.
$fetch
(
"/api/admin/user/log"
,
t
)},
Qt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/goods/bind/"
+
t
+
"/"
+
e
)},
Zt
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$patch
(
"/api/admin/goods/conflict/"
+
t
,
e
)},
te
=
function
(
t
,
e
){
return
r
.
default
.
prototype
.
$put
(
"/api/admin/class/user/desc/"
+
t
,
e
)}},
DQCr
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"cGG2"
);
function
o
(
t
){
return
encodeURIComponent
(
t
).
replace
(
/%40/gi
,
"@"
).
replace
(
/%3A/gi
,
":"
).
replace
(
/%24/g
,
"$"
).
replace
(
/%2C/gi
,
","
).
replace
(
/%20/g
,
"+"
).
replace
(
/%5B/gi
,
"["
).
replace
(
/%5D/gi
,
"]"
)}
t
.
exports
=
function
(
t
,
e
,
n
){
if
(
!
e
)
return
t
;
var
i
;
if
(
n
)
i
=
n
(
e
);
else
if
(
r
.
isURLSearchParams
(
e
))
i
=
e
.
toString
();
else
{
var
u
=
[];
r
.
forEach
(
e
,
function
(
t
,
e
){
null
!==
t
&&
void
0
!==
t
&&
(
r
.
isArray
(
t
)?
e
+=
"[]"
:
t
=
[
t
],
r
.
forEach
(
t
,
function
(
t
){
r
.
isDate
(
t
)?
t
=
t
.
toISOString
():
r
.
isObject
(
t
)
&&
(
t
=
JSON
.
stringify
(
t
)),
u
.
push
(
o
(
e
)
+
"="
+
o
(
t
))}))}),
i
=
u
.
join
(
"&"
)}
return
i
&&
(
t
+=
(
-
1
===
t
.
indexOf
(
"?"
)?
"?"
:
"&"
)
+
i
),
t
}},
FtD3
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"t8qj"
);
t
.
exports
=
function
(
t
,
e
,
n
,
o
,
i
){
var
u
=
new
Error
(
t
);
return
r
(
u
,
e
,
n
,
o
,
i
)}},
GHBc
:
function
(
t
,
e
,
n
){
"use strict"
;
var
r
=
n
(
"cGG2"
);
t
.
exports
=
r
.
isStandardBrowserEnv
()?
function
(){
var
t
,
e
=
/
(
msie|trident
)
/i
.
test
(
navigator
.
userAgent
),
n
=
document
.
createElement
(
"a"
);
function
o
(
t
){
var
r
=
t
;
return
e
&&
(
n
.
setAttribute
(
"href"
,
r
),
r
=
n
.
href
),
n
.
setAttribute
(
"href"
,
r
),{
href
:
n
.
href
,
protocol
:
n
.
protocol
?
n
.
protocol
.
replace
(
/:$/
,
""
):
""
,
host
:
n
.
host
,
search
:
n
.
search
?
n
.
search
.
replace
(
/^
\?
/
,
""
):
""
,
hash
:
n
.
hash
?
n
.
hash
.
replace
(
/^#/
,
""
):
""
,
hostname
:
n
.
hostname
,
port
:
n
.
port
,
pathname
:
"/"
===
n
.
pathname
.
charAt
(
0
)?
n
.
pathname
:
"/"
+
n
.
pathname
}}
return
t
=
o
(
window
.
location
.
href
),
function
(
e
){
var
n
=
r
.
isString
(
e
)?
o
(
e
):
e
;
return
n
.
protocol
===
t
.
protocol
&&
n
.
host
===
t
.
host
}}():
function
(){
return
!
0
}},
"JP+z"
:
function
(
t
,
e
,
n
){
"use strict"
;
t
.
exports
=
function
(
t
,
e
){
return
function
(){
for
(
var
n
=
new
Array
(
arguments
.
length
),
r
=
0
;
r
<
n
.
length
;
r
++
)
n
[
r
]
=
arguments
[
r
];
return
t
.
apply
(
e
,
n
)}}},
JnGA
:
function
(
t
,
e
){},
KCLY
:
function
(
t
,
e
,
n
){
"use strict"
;(
function
(
e
){
var
r
=
n
(
"cGG2"
),
o
=
n
(
"5VQ+"
),
i
=
{
"Content-Type"
:
"application/x-www-form-urlencoded"
};
function
u
(
t
,
e
){
!
r
.
isUndefined
(
t
)
&&
r
.
isUndefined
(
t
[
"Content-Type"
])
&&
(
t
[
"Content-Type"
]
=
e
)}
var
a
,
s
=
{
adapter
:(
"undefined"
!=
typeof
XMLHttpRequest
?
a
=
n
(
"7GwW"
):
void
0
!==
e
&&
(
a
=
n
(
"7GwW"
)),
a
),
transformRequest
:[
function
(
t
,
e
){
return
o
(
e
,
"Content-Type"
),
r
.
isFormData
(
t
)
||
r
.
isArrayBuffer
(
t
)
||
r
.
isBuffer
(
t
)
||
r
.
isStream
(
t
)
||
r
.
isFile
(
t
)
||
r
.
isBlob
(
t
)?
t
:
r
.
isArrayBufferView
(
t
)?
t
.
buffer
:
r
.
isURLSearchParams
(
t
)?(
u
(
e
,
"application/x-www-form-urlencoded;charset=utf-8"
),
t
.
toString
()):
r
.
isObject
(
t
)?(
u
(
e
,
"application/json;charset=utf-8"
),
JSON
.
stringify
(
t
)):
t
}],
transformResponse
:[
function
(
t
){
if
(
"string"
==
typeof
t
)
try
{
t
=
JSON
.
parse
(
t
)}
catch
(
t
){}
return
t
}],
timeout
:
0
,
xsrfCookieName
:
"XSRF-TOKEN"
,
xsrfHeaderName
:
"X-XSRF-TOKEN"
,
maxContentLength
:
-
1
,
validateStatus
:
function
(
t
){
return
t
>=
200
&&
t
<
300
}};
s
.
headers
=
{
common
:{
Accept
:
"application/json, text/plain, */*"
}},
r
.
forEach
([
"delete"
,
"get"
,
"head"
],
function
(
t
){
s
.
headers
[
t
]
=
{}}),
r
.
forEach
([
"post"
,
"put"
,
"patch"
],
function
(
t
){
s
.
headers
[
t
]
=
r
.
merge
(
i
)}),
t
.
exports
=
s
}).
call
(
e
,
n
(
"W2nU"
))},
NC6I
:
function
(
module
,
exports
,
__webpack_require__
){(
function
(
process
,
global
){
var
__WEBPACK_AMD_DEFINE_RESULT__
;
/**
/**
* [js-md5]{@link https://github.com/emn178/js-md5}
* [js-md5]{@link https://github.com/emn178/js-md5}
*
*
...
...
dist/static/js/18.
d5570ab41c4a322b181a
.js
→
dist/static/js/18.
6bf99850f8cef153a916
.js
View file @
e0a08994
webpackJsonp
([
18
],{
"0HId"
:
function
(
e
,
s
,
t
){
"use strict"
;
Object
.
defineProperty
(
s
,
"__esModule"
,{
value
:
!
0
});
var
r
=
t
(
"CCn6"
),
n
=
t
(
"NC6I"
),
o
=
t
.
n
(
n
),
i
=
t
(
"Nr3E"
),
a
=
t
.
n
(
i
),
l
=
{
data
:
function
(){
return
{
bgUrl
:
a
.
a
,
login
:{
username
:
""
,
password
:
""
},
loginRules
:{
username
:[{
required
:
!
0
,
message
:
"请输入您的用户名"
,
trigger
:
"blur"
}],
password
:[{
required
:
!
0
,
message
:
"请输入您的密码"
,
trigger
:
"blur"
}]}}},
mounted
:
function
(){
var
e
=
this
;
document
.
onkeydown
=
function
(
s
){
var
t
=
s
||
window
.
event
;
if
(
13
===
(
t
.
keyCode
||
t
.
which
||
t
.
charCode
)
&&
"login"
===
e
.
$route
.
name
)
return
e
.
submitForm
(),
!
1
;
return
!
0
}},
methods
:{
submitForm
:
function
(){
var
e
=
this
;
this
.
$refs
.
loginForm
.
validate
(
function
(
s
){
if
(
s
){
var
t
=
{
username
:
e
.
login
.
username
,
password
:
o
()(
e
.
login
.
password
)};
Object
(
r
.
_30
)(
t
).
then
(
function
(
s
){
e
.
$store
.
dispatch
(
"setToken"
,
s
.
token
),
e
.
$store
.
dispatch
(
"setUserName"
,
s
.
desc
),
e
.
$store
.
dispatch
(
"setPermission"
,
JSON
.
parse
(
s
.
roles
.
menu_ids
))})}})}}},
u
=
{
render
:
function
(){
var
e
=
this
,
s
=
e
.
$createElement
,
t
=
e
.
_self
.
_c
||
s
;
return
t
(
"div"
,{
staticClass
:
"login"
},[
t
(
"div"
,{
staticClass
:
"wrap-main"
},[
t
(
"h1"
,{
staticClass
:
"title"
},[
e
.
_v
(
"唱唱启蒙——后台管理系统"
)]),
e
.
_v
(
" "
),
t
(
"el-form"
,{
ref
:
"loginForm"
,
attrs
:{
model
:
e
.
login
,
rules
:
e
.
loginRules
}},[
t
(
"el-form-item"
,{
attrs
:{
prop
:
"username"
}},[
t
(
"el-input"
,{
attrs
:{
placeholder
:
"用户名"
},
model
:{
value
:
e
.
login
.
username
,
callback
:
function
(
s
){
e
.
$set
(
e
.
login
,
"username"
,
s
)},
expression
:
"login.username"
}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
prop
:
"password"
}},[
t
(
"el-input"
,{
attrs
:{
type
:
"password"
,
placeholder
:
"密码"
},
model
:{
value
:
e
.
login
.
password
,
callback
:
function
(
s
){
e
.
$set
(
e
.
login
,
"password"
,
s
)},
expression
:
"login.password"
}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,[
t
(
"el-button"
,{
staticClass
:
"btn"
,
attrs
:{
size
:
"medium"
,
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"登陆"
)])],
1
)],
1
)],
1
)])},
staticRenderFns
:[]};
var
d
=
t
(
"VU/8"
)(
l
,
u
,
!
1
,
function
(
e
){
t
(
"8z2M"
)},
"data-v-1de29f64"
,
null
);
s
.
default
=
d
.
exports
},
"8z2M"
:
function
(
e
,
s
){},
Nr3E
:
function
(
e
,
s
,
t
){
e
.
exports
=
t
.
p
+
"static/img/skyBackground.d3b1524.png"
}});
webpackJsonp
([
18
],{
"0HId"
:
function
(
e
,
s
,
t
){
"use strict"
;
Object
.
defineProperty
(
s
,
"__esModule"
,{
value
:
!
0
});
var
r
=
t
(
"CCn6"
),
n
=
t
(
"NC6I"
),
o
=
t
.
n
(
n
),
i
=
t
(
"Nr3E"
),
a
=
t
.
n
(
i
),
l
=
{
data
:
function
(){
return
{
bgUrl
:
a
.
a
,
login
:{
username
:
""
,
password
:
""
},
loginRules
:{
username
:[{
required
:
!
0
,
message
:
"请输入您的用户名"
,
trigger
:
"blur"
}],
password
:[{
required
:
!
0
,
message
:
"请输入您的密码"
,
trigger
:
"blur"
}]}}},
mounted
:
function
(){
var
e
=
this
;
document
.
onkeydown
=
function
(
s
){
var
t
=
s
||
window
.
event
;
if
(
13
===
(
t
.
keyCode
||
t
.
which
||
t
.
charCode
)
&&
"login"
===
e
.
$route
.
name
)
return
e
.
submitForm
(),
!
1
;
return
!
0
}},
methods
:{
submitForm
:
function
(){
var
e
=
this
;
this
.
$refs
.
loginForm
.
validate
(
function
(
s
){
if
(
s
){
var
t
=
{
username
:
e
.
login
.
username
,
password
:
o
()(
e
.
login
.
password
)};
Object
(
r
.
_30
)(
t
).
then
(
function
(
s
){
e
.
$store
.
dispatch
(
"setToken"
,
s
.
token
),
e
.
$store
.
dispatch
(
"setUserName"
,
s
.
desc
),
e
.
$store
.
dispatch
(
"setPermission"
,
JSON
.
parse
(
s
.
roles
.
menu_ids
)),
window
.
location
.
href
=
"/"
})}})}}},
u
=
{
render
:
function
(){
var
e
=
this
,
s
=
e
.
$createElement
,
t
=
e
.
_self
.
_c
||
s
;
return
t
(
"div"
,{
staticClass
:
"login"
},[
t
(
"div"
,{
staticClass
:
"wrap-main"
},[
t
(
"h1"
,{
staticClass
:
"title"
},[
e
.
_v
(
"唱唱启蒙——后台管理系统"
)]),
e
.
_v
(
" "
),
t
(
"el-form"
,{
ref
:
"loginForm"
,
attrs
:{
model
:
e
.
login
,
rules
:
e
.
loginRules
}},[
t
(
"el-form-item"
,{
attrs
:{
prop
:
"username"
}},[
t
(
"el-input"
,{
attrs
:{
placeholder
:
"用户名"
},
model
:{
value
:
e
.
login
.
username
,
callback
:
function
(
s
){
e
.
$set
(
e
.
login
,
"username"
,
s
)},
expression
:
"login.username"
}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,{
attrs
:{
prop
:
"password"
}},[
t
(
"el-input"
,{
attrs
:{
type
:
"password"
,
placeholder
:
"密码"
},
model
:{
value
:
e
.
login
.
password
,
callback
:
function
(
s
){
e
.
$set
(
e
.
login
,
"password"
,
s
)},
expression
:
"login.password"
}})],
1
),
e
.
_v
(
" "
),
t
(
"el-form-item"
,[
t
(
"el-button"
,{
staticClass
:
"btn"
,
attrs
:{
size
:
"medium"
,
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"登陆"
)])],
1
)],
1
)],
1
)])},
staticRenderFns
:[]};
var
c
=
t
(
"VU/8"
)(
l
,
u
,
!
1
,
function
(
e
){
t
(
"iafJ"
)},
"data-v-19fb4cb5"
,
null
);
s
.
default
=
c
.
exports
},
Nr3E
:
function
(
e
,
s
,
t
){
e
.
exports
=
t
.
p
+
"static/img/skyBackground.d3b1524.png"
},
iafJ
:
function
(
e
,
s
){}});
\ No newline at end of file
\ No newline at end of file
dist/static/js/manifest.
59b8cf8117b2d2050955
.js
→
dist/static/js/manifest.
a49e1693c2b41aeac95a
.js
View file @
e0a08994
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
t
,
a
){
for
(
var
o
,
d
,
b
,
i
=
0
,
u
=
[];
i
<
f
.
length
;
i
++
)
d
=
f
[
i
],
n
[
d
]
&&
u
.
push
(
n
[
d
][
0
]),
n
[
d
]
=
0
;
for
(
o
in
t
)
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
o
)
&&
(
e
[
o
]
=
t
[
o
]);
for
(
c
&&
c
(
f
,
t
,
a
);
u
.
length
;)
u
.
shift
()();
if
(
a
)
for
(
i
=
0
;
i
<
a
.
length
;
i
++
)
b
=
r
(
r
.
s
=
a
[
i
]);
return
b
};
var
f
=
{},
n
=
{
32
:
0
};
function
r
(
c
){
if
(
f
[
c
])
return
f
[
c
].
exports
;
var
n
=
f
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
n
.
exports
,
n
,
n
.
exports
,
r
),
n
.
l
=!
0
,
n
.
exports
}
r
.
e
=
function
(
e
){
var
c
=
n
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
f
=
new
Promise
(
function
(
f
,
r
){
c
=
n
[
e
]
=
[
f
,
r
]});
c
[
2
]
=
f
;
var
t
=
document
.
getElementsByTagName
(
"head"
)[
0
],
a
=
document
.
createElement
(
"script"
);
a
.
type
=
"text/javascript"
,
a
.
charset
=
"utf-8"
,
a
.
async
=!
0
,
a
.
timeout
=
12
e4
,
r
.
nc
&&
a
.
setAttribute
(
"nonce"
,
r
.
nc
),
a
.
src
=
r
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"905ab761eb081f07ec1d"
,
1
:
"0052bf83b427b23f54b3"
,
2
:
"71ce0e8534ad0fb7a6cc"
,
3
:
"58df26638cb030357eb5"
,
4
:
"050046070d14b6d5dfef"
,
5
:
"2941036bd5eef756ecd2"
,
6
:
"090d3c91fe1290595ffc"
,
7
:
"77794e8aa5f30ed3bbf9"
,
8
:
"5dc8a96d8dc6aa6c173d"
,
9
:
"7d0140bc9f5f8fede1eb"
,
10
:
"8a113291e55554bd2281"
,
11
:
"0c81e93578aee6e54261"
,
12
:
"f67dc6647a7d0fec3ef3"
,
13
:
"ab7bad53bb2b286a5480"
,
14
:
"c5bff20c73cfa0fcec4e"
,
15
:
"beaedf43b9ef65d6531c"
,
16
:
"e51f5256213b5603773f"
,
17
:
"d10e46914ac273ee1e9e"
,
18
:
"d5570ab41c4a322b181a"
,
19
:
"23405634c017d755d44a"
,
20
:
"f5020fec0cbfc7819635"
,
21
:
"1cff5e892f2304c25d41"
,
22
:
"a13143900b034ede203b"
,
23
:
"b3ac04d0c021899a4fc3"
,
24
:
"2bca9087d93c1145e1e1"
,
25
:
"e24c5f35c405369b6432"
,
26
:
"ed25837110be08a8fd1d"
,
27
:
"aed1710fdee959b271f5"
,
28
:
"acc72ffbf31d9875340f"
,
29
:
"e6dadb057c2f8f3818c9"
}[
e
]
+
".js"
;
var
o
=
setTimeout
(
d
,
12
e4
);
function
d
(){
a
.
onerror
=
a
.
onload
=
null
,
clearTimeout
(
o
);
var
c
=
n
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
n
[
e
]
=
void
0
)}
return
a
.
onerror
=
a
.
onload
=
d
,
t
.
appendChild
(
a
),
f
},
r
.
m
=
e
,
r
.
c
=
f
,
r
.
d
=
function
(
e
,
c
,
f
){
r
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
r
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
r
.
d
(
c
,
"a"
,
c
),
c
},
r
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
r
.
p
=
"/"
,
r
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
!
function
(
e
){
var
c
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
f
,
t
,
a
){
for
(
var
o
,
d
,
b
,
i
=
0
,
u
=
[];
i
<
f
.
length
;
i
++
)
d
=
f
[
i
],
n
[
d
]
&&
u
.
push
(
n
[
d
][
0
]),
n
[
d
]
=
0
;
for
(
o
in
t
)
Object
.
prototype
.
hasOwnProperty
.
call
(
t
,
o
)
&&
(
e
[
o
]
=
t
[
o
]);
for
(
c
&&
c
(
f
,
t
,
a
);
u
.
length
;)
u
.
shift
()();
if
(
a
)
for
(
i
=
0
;
i
<
a
.
length
;
i
++
)
b
=
r
(
r
.
s
=
a
[
i
]);
return
b
};
var
f
=
{},
n
=
{
32
:
0
};
function
r
(
c
){
if
(
f
[
c
])
return
f
[
c
].
exports
;
var
n
=
f
[
c
]
=
{
i
:
c
,
l
:
!
1
,
exports
:{}};
return
e
[
c
].
call
(
n
.
exports
,
n
,
n
.
exports
,
r
),
n
.
l
=!
0
,
n
.
exports
}
r
.
e
=
function
(
e
){
var
c
=
n
[
e
];
if
(
0
===
c
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
c
)
return
c
[
2
];
var
f
=
new
Promise
(
function
(
f
,
r
){
c
=
n
[
e
]
=
[
f
,
r
]});
c
[
2
]
=
f
;
var
t
=
document
.
getElementsByTagName
(
"head"
)[
0
],
a
=
document
.
createElement
(
"script"
);
a
.
type
=
"text/javascript"
,
a
.
charset
=
"utf-8"
,
a
.
async
=!
0
,
a
.
timeout
=
12
e4
,
r
.
nc
&&
a
.
setAttribute
(
"nonce"
,
r
.
nc
),
a
.
src
=
r
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"0e8fd78747838febd4c0"
,
1
:
"0052bf83b427b23f54b3"
,
2
:
"71ce0e8534ad0fb7a6cc"
,
3
:
"58df26638cb030357eb5"
,
4
:
"050046070d14b6d5dfef"
,
5
:
"2941036bd5eef756ecd2"
,
6
:
"090d3c91fe1290595ffc"
,
7
:
"77794e8aa5f30ed3bbf9"
,
8
:
"5dc8a96d8dc6aa6c173d"
,
9
:
"7d0140bc9f5f8fede1eb"
,
10
:
"8a113291e55554bd2281"
,
11
:
"0c81e93578aee6e54261"
,
12
:
"f67dc6647a7d0fec3ef3"
,
13
:
"ab7bad53bb2b286a5480"
,
14
:
"c5bff20c73cfa0fcec4e"
,
15
:
"beaedf43b9ef65d6531c"
,
16
:
"e51f5256213b5603773f"
,
17
:
"d10e46914ac273ee1e9e"
,
18
:
"6bf99850f8cef153a916"
,
19
:
"23405634c017d755d44a"
,
20
:
"f5020fec0cbfc7819635"
,
21
:
"1cff5e892f2304c25d41"
,
22
:
"a13143900b034ede203b"
,
23
:
"b3ac04d0c021899a4fc3"
,
24
:
"2bca9087d93c1145e1e1"
,
25
:
"e24c5f35c405369b6432"
,
26
:
"ed25837110be08a8fd1d"
,
27
:
"aed1710fdee959b271f5"
,
28
:
"acc72ffbf31d9875340f"
,
29
:
"e6dadb057c2f8f3818c9"
}[
e
]
+
".js"
;
var
o
=
setTimeout
(
d
,
12
e4
);
function
d
(){
a
.
onerror
=
a
.
onload
=
null
,
clearTimeout
(
o
);
var
c
=
n
[
e
];
0
!==
c
&&
(
c
&&
c
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
n
[
e
]
=
void
0
)}
return
a
.
onerror
=
a
.
onload
=
d
,
t
.
appendChild
(
a
),
f
},
r
.
m
=
e
,
r
.
c
=
f
,
r
.
d
=
function
(
e
,
c
,
f
){
r
.
o
(
e
,
c
)
||
Object
.
defineProperty
(
e
,
c
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
f
})},
r
.
n
=
function
(
e
){
var
c
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
r
.
d
(
c
,
"a"
,
c
),
c
},
r
.
o
=
function
(
e
,
c
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
c
)},
r
.
p
=
"/"
,
r
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
\ No newline at end of file
src/components/login/index.vue
View file @
e0a08994
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
this
.
$store
.
dispatch
(
'setToken'
,
res
.
token
);
this
.
$store
.
dispatch
(
'setToken'
,
res
.
token
);
this
.
$store
.
dispatch
(
'setUserName'
,
res
.
desc
);
this
.
$store
.
dispatch
(
'setUserName'
,
res
.
desc
);
this
.
$store
.
dispatch
(
'setPermission'
,
JSON
.
parse
(
res
.
roles
.
menu_ids
));
this
.
$store
.
dispatch
(
'setPermission'
,
JSON
.
parse
(
res
.
roles
.
menu_ids
));
//
window.location.href = '/'
window
.
location
.
href
=
'/'
})
})
}
}
})
})
...
...
src/service/index.js
View file @
e0a08994
...
@@ -153,6 +153,12 @@ export function fetch(url,params={}){
...
@@ -153,6 +153,12 @@ export function fetch(url,params={}){
.
then
(
response
=>
{
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
200
){
if
(
response
.
data
.
code
===
200
){
resolve
(
response
.
data
.
data
);
resolve
(
response
.
data
.
data
);
}
else
if
(
response
.
data
.
code
===
501
){
router
.
push
({
name
:
'login'
//从哪个页面跳转
})
}
else
if
(
response
.
data
.
code
===
503
){
Message
.
error
(
'请勿平凡操作'
)
}
else
{
}
else
{
Message
.
error
(
response
.
data
.
msg
)
Message
.
error
(
response
.
data
.
msg
)
}
}
...
@@ -184,6 +190,12 @@ export function post(url,data = {}){
...
@@ -184,6 +190,12 @@ export function post(url,data = {}){
.
then
(
response
=>
{
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
200
){
if
(
response
.
data
.
code
===
200
){
resolve
(
response
.
data
.
data
);
resolve
(
response
.
data
.
data
);
}
else
if
(
response
.
data
.
code
===
501
){
router
.
push
({
name
:
'login'
//从哪个页面跳转
})
}
else
if
(
response
.
data
.
code
===
503
){
Message
.
error
(
'请勿平凡操作'
)
}
else
{
}
else
{
Message
.
error
(
response
.
data
.
msg
)
Message
.
error
(
response
.
data
.
msg
)
}
}
...
@@ -213,6 +225,12 @@ export function patch(url,data = {}){
...
@@ -213,6 +225,12 @@ export function patch(url,data = {}){
.
then
(
response
=>
{
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
200
){
if
(
response
.
data
.
code
===
200
){
resolve
(
response
.
data
.
data
);
resolve
(
response
.
data
.
data
);
}
else
if
(
response
.
data
.
code
===
501
){
router
.
push
({
name
:
'login'
//从哪个页面跳转
})
}
else
if
(
response
.
data
.
code
===
503
){
Message
.
error
(
'请勿平凡操作'
)
}
else
{
}
else
{
Message
.
error
(
response
.
data
.
msg
)
Message
.
error
(
response
.
data
.
msg
)
}
}
...
@@ -242,6 +260,12 @@ export function put(url,data = {}){
...
@@ -242,6 +260,12 @@ export function put(url,data = {}){
.
then
(
response
=>
{
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
200
){
if
(
response
.
data
.
code
===
200
){
resolve
(
response
.
data
.
data
);
resolve
(
response
.
data
.
data
);
}
else
if
(
response
.
data
.
code
===
501
){
router
.
push
({
name
:
'login'
//从哪个页面跳转
})
}
else
if
(
response
.
data
.
code
===
503
){
Message
.
error
(
'请勿平凡操作'
)
}
else
{
}
else
{
Message
.
error
(
response
.
data
.
msg
)
Message
.
error
(
response
.
data
.
msg
)
}
}
...
@@ -264,6 +288,12 @@ export function del(url,data = {}){
...
@@ -264,6 +288,12 @@ export function del(url,data = {}){
.
then
(
response
=>
{
.
then
(
response
=>
{
if
(
response
.
data
.
code
===
200
){
if
(
response
.
data
.
code
===
200
){
resolve
(
response
.
data
.
data
);
resolve
(
response
.
data
.
data
);
}
else
if
(
response
.
data
.
code
===
501
){
router
.
push
({
name
:
'login'
//从哪个页面跳转
})
}
else
if
(
response
.
data
.
code
===
503
){
Message
.
error
(
'请勿平凡操作'
)
}
else
{
}
else
{
Message
.
error
(
response
.
data
.
msg
)
Message
.
error
(
response
.
data
.
msg
)
}
}
...
...
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