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
a6740beb
Commit
a6740beb
authored
Aug 06, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
86
parent
f655e094
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
65 additions
and
38 deletions
+65
-38
index.html
dev/index.html
+1
-1
0.ccb4d601a2af64b32ce2.js
dev/static/js/0.ccb4d601a2af64b32ce2.js
+20
-0
8.9f80bdcf1310ef1f4d40.js
dev/static/js/8.9f80bdcf1310ef1f4d40.js
+1
-0
manifest.2ec45d57dd81ca4353b2.js
dev/static/js/manifest.2ec45d57dd81ca4353b2.js
+1
-0
index.vue
src/components/order/index.vue
+11
-5
api.js
src/service/api.js
+30
-32
index.js
src/service/index.js
+1
-0
No files found.
dev/index.html
View file @
a6740beb
<!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_x1rivf5f5.css
><link
rel=
stylesheet
href=
https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title></head><body><script
src=
https://cdn.bootcss.com/vue/2.5.17/vue.js
></script><script
src=
https://unpkg.com/vuex@3.0.1
></script><script
src=
https://cdn.bootcss.com/axios/0.18.0/axios.min.js
></script><script
src=
https://lib.baomitu.com/element-ui/2.7.2/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.
f50c28635bfaeaa8908a
.js
></script><script
type=
text/javascript
src=
/static/js/vendor.6a18832950b1e06cbd55.js
></script><script
type=
text/javascript
src=
/static/js/app.607bd306fb9aee58c3c4.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
<!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_x1rivf5f5.css
><link
rel=
stylesheet
href=
https://lib.baomitu.com/element-ui/2.7.2/theme-chalk/index.css
><title>
唱唱启蒙-后台
</title></head><body><script
src=
https://cdn.bootcss.com/vue/2.5.17/vue.js
></script><script
src=
https://unpkg.com/vuex@3.0.1
></script><script
src=
https://cdn.bootcss.com/axios/0.18.0/axios.min.js
></script><script
src=
https://lib.baomitu.com/element-ui/2.7.2/index.js
></script><div
id=
app
></div><script
type=
text/javascript
src=
/static/js/manifest.
2ec45d57dd81ca4353b2
.js
></script><script
type=
text/javascript
src=
/static/js/vendor.6a18832950b1e06cbd55.js
></script><script
type=
text/javascript
src=
/static/js/app.607bd306fb9aee58c3c4.js
></script></body><script>
let
el
=
document
.
getElementsByTagName
(
"script"
);
el
.
onerror
=
function
(
a
,
b
,
c
){
console
.
log
(
'error:'
,
a
,
b
,
c
);
};
...
...
dev/static/js/0.ccb4d601a2af64b32ce2.js
0 → 100644
View file @
a6740beb
This diff is collapsed.
Click to expand it.
dev/static/js/8.9f80bdcf1310ef1f4d40.js
0 → 100644
View file @
a6740beb
This diff is collapsed.
Click to expand it.
dev/static/js/manifest.2ec45d57dd81ca4353b2.js
0 → 100644
View file @
a6740beb
!
function
(
e
){
var
f
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
a
[
t
]
&&
u
.
push
(
a
[
t
][
0
]),
a
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
f
&&
f
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
a
=
{
72
:
0
};
function
d
(
f
){
if
(
c
[
f
])
return
c
[
f
].
exports
;
var
a
=
c
[
f
]
=
{
i
:
f
,
l
:
!
1
,
exports
:{}};
return
e
[
f
].
call
(
a
.
exports
,
a
,
a
.
exports
,
d
),
a
.
l
=!
0
,
a
.
exports
}
d
.
e
=
function
(
e
){
var
f
=
a
[
e
];
if
(
0
===
f
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
f
)
return
f
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
f
=
a
[
e
]
=
[
c
,
d
]});
f
[
2
]
=
c
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"ccb4d601a2af64b32ce2"
,
1
:
"4667f1574aa22b84609c"
,
2
:
"e94f60b077910deb18bb"
,
3
:
"c6779c9b3aa0c8780991"
,
4
:
"a4f7f1d7ae5c1cc16528"
,
5
:
"6d1a9f7a2e30dd44d02d"
,
6
:
"f1925ca55ec5c7d41887"
,
7
:
"f0e8b03080b3b4ebf31c"
,
8
:
"9f80bdcf1310ef1f4d40"
,
9
:
"523f6b2142e0b1a59de8"
,
10
:
"4af583c4dd796e3360f9"
,
11
:
"aec2a9fb6041eb630d55"
,
12
:
"2c72155b2154e8815c00"
,
13
:
"af9f03f63888b915fd7f"
,
14
:
"8cd0f3a8b31d5e64931e"
,
15
:
"4bd927c46272193f9e72"
,
16
:
"51a8748901c539c9d7f6"
,
17
:
"c6ca0315d005d11917f2"
,
18
:
"4bc4d53a32507fa89c2d"
,
19
:
"2b43d74d0aa30e036698"
,
20
:
"f42b11252eb62efb59cd"
,
21
:
"574b6484dc28d94bef1f"
,
22
:
"aeadcb935f4215bd1bd5"
,
23
:
"080a8966b3305c3ae15b"
,
24
:
"277d9ff15010e8edf386"
,
25
:
"586027709dea49f5116f"
,
26
:
"d77cdbd1bc2f9789ae81"
,
27
:
"62a380e3075bb9f61234"
,
28
:
"24b6f10c46ca1efeb87a"
,
29
:
"aba6b471e6c95a1907f4"
,
30
:
"0bc70212b94eb5665fff"
,
31
:
"135568f2f6466e39320c"
,
32
:
"24c59027060f0ebec47f"
,
33
:
"489760d45a9fef30bb4a"
,
34
:
"6c63eb8d60c5be1dc2f3"
,
35
:
"974841988630e681632c"
,
36
:
"512280620f6044f06ebd"
,
37
:
"40a0dd48806323a37f8b"
,
38
:
"508b9a742a79cdae432c"
,
39
:
"50ccfca6c1306cff512a"
,
40
:
"7cde0e1c3d8e909777cc"
,
41
:
"23e1be9d61c60e87d43b"
,
42
:
"0e33d8489572470ad249"
,
43
:
"a8d1fc3389fd795b2bce"
,
44
:
"a5af5802ec28b6068e5b"
,
45
:
"fe6e1551696349b29668"
,
46
:
"12a517ba912b03aab935"
,
47
:
"f0665b8c5b8f3af0c10f"
,
48
:
"fb608a4f603e4a31cade"
,
49
:
"f97d79f4daec8f87df42"
,
50
:
"7dd0676cbb72e6f2fd1a"
,
51
:
"939577234b61aded2624"
,
52
:
"b2ed992be8294772a938"
,
53
:
"c3b179b20a856816890a"
,
54
:
"212816b171eafd1488bc"
,
55
:
"f9539545129dd1bad64b"
,
56
:
"501b516cd393780837db"
,
57
:
"aa460a73c9c018520800"
,
58
:
"a08c9ad93f421380be9d"
,
59
:
"4b383cfca408a639edd1"
,
60
:
"9469909bde10400ad51e"
,
61
:
"e058805f6e7edf48bd52"
,
62
:
"95820125712b6f2ace7f"
,
63
:
"b469807b5322df1168f0"
,
64
:
"83207fa7cfec7327665c"
,
65
:
"c1554131ce716a3b677c"
,
66
:
"3b61402de44f86c4ef2a"
,
67
:
"09ced7442ae82f25505e"
,
68
:
"0456ffd7b429ae2463ac"
,
69
:
"1478ab9bf52f6eef71d3"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
f
=
a
[
e
];
0
!==
f
&&
(
f
&&
f
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
a
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
f
,
c
){
d
.
o
(
e
,
f
)
||
Object
.
defineProperty
(
e
,
f
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
f
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
f
,
"a"
,
f
),
f
},
d
.
o
=
function
(
e
,
f
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
f
)},
d
.
p
=
"/"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/order/index.vue
View file @
a6740beb
...
...
@@ -365,7 +365,10 @@ export default {
}
},
exportTable
()
{
let
json
=
{};
let
json
=
{
limit
:
this
.
limit
,
page
:
this
.
nowPage
};
if
(
this
.
searchFrom
.
nickname
)
{
json
.
nickname
=
this
.
searchFrom
.
nickname
;
}
...
...
@@ -384,21 +387,24 @@ export default {
if
(
this
.
searchFrom
.
buy_type
)
{
json
.
buy_type
=
this
.
searchFrom
.
buy_type
;
}
if
(
this
.
searchFrom
.
status
)
{
json
.
status
=
this
.
searchFrom
.
status
.
toString
();
}
if
(
this
.
searchFrom
.
goods_id
)
{
json
.
goods_id
=
this
.
searchFrom
.
goods_id
;
}
if
(
this
.
searchFrom
.
is_captain
||
this
.
searchFrom
.
is_captain
==
0
)
{
json
.
is_captain
=
this
.
searchFrom
.
is_captain
;
}
if
(
this
.
searchFrom
.
out_trade_no
)
{
json
.
out_trade_no
=
this
.
searchFrom
.
out_trade_no
;
}
if
(
this
.
searchFrom
.
is_captain
||
this
.
searchFrom
.
is_captain
==
0
)
{
json
.
is_captain
=
this
.
searchFrom
.
is_captain
;
}
if
(
this
.
searchFrom
.
receive_mobile
)
{
json
.
receive_mobile
=
this
.
searchFrom
.
receive_mobile
;
}
if
(
this
.
searchFrom
.
payTime
&&
this
.
searchFrom
.
payTime
.
length
>
0
)
{
json
.
pay_start_at
=
this
.
searchFrom
.
payTime
[
0
]
json
.
pay_end_at
=
this
.
searchFrom
.
payTime
[
1
]
json
.
pay_end_at
=
this
.
searchFrom
.
payTime
[
1
]
}
if
(
this
.
searchFrom
.
wait_into_course
)
{
json
.
wait_into_course
=
this
.
searchFrom
.
wait_into_course
...
...
src/service/api.js
View file @
a6740beb
...
...
@@ -714,46 +714,44 @@ function exportExcel(form) {
responseType
:
'blob'
,
// 表明返回服务器返回的数据类型
headers
:
{
'Content-Type'
:
'application/json'
}
})
// return Vue.prototype.$post(form.url, form.params)
}
export
const
exportExcelApi
=
function
(
url
,
params
,
fname
)
{
url
=
`
${
url
}
`
;
let
json
=
JSON
.
parse
(
JSON
.
stringify
(
params
))
for
(
let
k
in
json
)
{
let
reg
=
/^
[
0-9
]
+$/
u
;
if
(
reg
.
test
(
json
[
k
]))
{
json
[
k
]
=
Number
(
json
[
k
])
}
if
(
json
[
k
]
===
null
)
{
json
[
k
]
=
''
}
if
(
typeof
json
[
k
]
===
"string"
)
{
params
[
k
]
=
params
[
k
].
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
);
json
[
k
]
=
json
[
k
].
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
);
}
json
[
k
]
=
md5
(
json
[
k
].
toString
())
}
json
.
sing
=
"singsingenglish21000"
;
params
.
param_token
=
md5
(
JSON
.
stringify
(
json
));
let
urlEncode
=
function
(
param
,
key
,
encode
)
{
if
(
param
==
null
)
return
''
;
let
paramStr
=
[];
let
t
=
typeof
(
param
);
if
(
t
===
'string'
||
t
===
'number'
||
t
===
'boolean'
)
{
paramStr
.
push
(
key
+
'='
+
((
encode
==
null
||
encode
)
?
encodeURIComponent
(
param
)
:
param
))
}
else
{
for
(
let
i
in
param
)
{
let
k
=
key
==
null
?
i
:
key
+
(
param
instanceof
Array
?
'['
+
i
+
']'
:
'.'
+
i
);
paramStr
.
push
(
urlEncode
(
param
[
i
],
k
,
encode
));
}
}
return
paramStr
.
join
(
'&'
);
};
// let json = JSON.parse(JSON.stringify(params))
// for (let k in json) {
// if (json[k] === null) {
// json[k] = ''
// }
// if (typeof json[k] === "string") {
// params[k] = params[k].replace(/(^\s*)|(\s*$)/g, "");
// json[k] = json[k].replace(/(^\s*)|(\s*$)/g, "");
// }
// json[k] = md5(json[k].toString())
// }
// json.sing = "singsingenglish21000";
// params.param_token = md5(JSON.stringify(json));
// console.log(params.param_token)
// let urlEncode = function (param, key, encode) {
// if (param == null) return '';
// let paramStr = [];
// let t = typeof (param);
// if (t === 'string' || t === 'number' || t === 'boolean') {
// paramStr.push(key + '=' + ((encode == null || encode) ? encodeURIComponent(param) : param))
// } else {
// for (let i in param) {
// let k = key == null ? i : key + (param instanceof Array ? '[' + i + ']' : '.' + i);
// paramStr.push(urlEncode(param[i], k, encode));
// }
// }
// return paramStr.join('&');
// };
// url += urlEncode(params);
url
;
console
.
log
(
url
)
console
.
log
(
params
,
754
)
// window.open(url)
let
obj
=
{
'url'
:
url
,
...
...
src/service/index.js
View file @
a6740beb
...
...
@@ -79,6 +79,7 @@ axios.interceptors.request.use(
if
(
process
.
env
.
NODE_ENV
===
'development'
){
config
.
data
.
special_token
=
"changchangenglish"
;
}
console
.
log
(
54
)
console
.
log
(
JSON
.
stringify
(
json2
))
config
.
data
.
param_token
=
md5
(
JSON
.
stringify
(
json2
));
}
...
...
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