Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
c0b39e86
Commit
c0b39e86
authored
May 25, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置
parent
3f0b9475
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
apps/home/Tpl/default/Home/order_w3g.html
+11
-12
No files found.
apps/home/Tpl/default/Home/order_w3g.html
View file @
c0b39e86
...
@@ -99,16 +99,13 @@
...
@@ -99,16 +99,13 @@
innerTab
:
0
,
innerTab
:
0
,
options
:
[{
options
:
[{
title
:
"待支付"
,
title
:
"待支付"
,
k
:
'orderby'
,
v
:
1
,
v
:
1
,
options
:
[{
options
:
[{
title
:
"课程订单"
,
title
:
"课程订单"
,
k
:
'ordertype'
,
v
:
'course'
,
v
:
'course'
,
items
:
[]
items
:
[]
},
{
},
{
title
:
"考题订单"
,
title
:
"考题订单"
,
k
:
'ordertype'
,
v
:
'exams'
,
v
:
'exams'
,
items
:
[]
items
:
[]
},
{
},
{
...
@@ -117,16 +114,13 @@
...
@@ -117,16 +114,13 @@
}]
}]
},
{
},
{
title
:
"已完成"
,
title
:
"已完成"
,
k
:
'orderby'
,
v
:
3
,
v
:
3
,
options
:
[{
options
:
[{
title
:
"课程订单"
,
title
:
"课程订单"
,
k
:
'ordertype'
,
v
:
'course'
,
v
:
'course'
,
items
:
[]
items
:
[]
},
{
},
{
title
:
"考题订单"
,
title
:
"考题订单"
,
k
:
'ordertype'
,
v
:
'exams'
,
v
:
'exams'
,
items
:
[]
items
:
[]
},
{
},
{
...
@@ -135,16 +129,13 @@
...
@@ -135,16 +129,13 @@
}]
}]
},
{
},
{
title
:
"已取消"
,
title
:
"已取消"
,
k
:
'orderby'
,
v
:
2
,
v
:
2
,
options
:
[{
options
:
[{
title
:
"课程订单"
,
title
:
"课程订单"
,
k
:
'ordertype'
,
v
:
'course'
,
v
:
'course'
,
items
:
[]
items
:
[]
},
{
},
{
title
:
"考题订单"
,
title
:
"考题订单"
,
k
:
'ordertype'
,
v
:
'exams'
,
v
:
'exams'
,
items
:
[]
items
:
[]
},
{
},
{
...
@@ -203,14 +194,22 @@
...
@@ -203,14 +194,22 @@
getList
:
function
()
{
getList
:
function
()
{
let
options
=
this
.
options
[
this
.
tab
];
let
options
=
this
.
options
[
this
.
tab
];
let
item
=
options
[
'options'
][
this
.
innerTab
];
let
item
=
options
[
'options'
][
this
.
innerTab
];
console
.
log
(
options
,
item
);
let
_this
=
this
;
$
.
get
(
"{:U('home/Home/orderList')}"
,
{
orderby
:
options
[
'val'
],
ordertype
:
item
[
'val'
],
},
function
(
data
)
{
console
.
log
(
data
)
},
'json'
);
},
},
getQueryVariable
:
function
(
variable
)
{
getQueryVariable
:
function
(
variable
)
{
var
query
=
window
.
location
.
search
.
substring
(
1
);
var
query
=
window
.
location
.
search
.
substring
(
1
);
var
vars
=
query
.
split
(
"&"
);
var
vars
=
query
.
split
(
"&"
);
for
(
var
i
=
0
;
i
<
vars
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
vars
.
length
;
i
++
)
{
var
pair
=
vars
[
i
].
split
(
"="
);
var
pair
=
vars
[
i
].
split
(
"="
);
if
(
pair
[
0
]
==
variable
){
return
pair
[
1
];}
if
(
pair
[
0
]
==
variable
)
{
return
pair
[
1
];
}
}
}
return
0
;
return
0
;
},
},
...
...
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