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
2890bc4d
Commit
2890bc4d
authored
May 25, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置
parent
ad74c6c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
1 deletions
+61
-1
apps/home/Lib/Action/HomeAction.class.php
+59
-1
apps/home/Tpl/default/Home/order_w3g.html
+2
-0
No files found.
apps/home/Lib/Action/HomeAction.class.php
View file @
2890bc4d
...
@@ -160,6 +160,64 @@ class HomeAction extends UserAction
...
@@ -160,6 +160,64 @@ class HomeAction extends UserAction
$this
->
display
();
$this
->
display
();
}
}
public
function
orderList
()
{
$limit
=
1000
;
$orderby
=
t
(
$_GET
[
'orderby'
]);
$orderby
=
$orderby
?
$orderby
:
1
;
if
(
$orderby
)
{
if
(
$orderby
!=
0
)
{
$map
[
'pay_status'
]
=
$orderby
;
}
}
$map
[
'uid'
]
=
intval
(
$this
->
mid
);
$map
[
'is_del'
]
=
intval
(
0
);
$order
=
'ctime DESC'
;
$table
=
'zy_order_course'
;
$ordertype
=
'course'
;
$check_type
=
'zy_video'
;
if
(
$_GET
[
'ordertype'
]
==
'course'
)
{
$table
=
'zy_order_course'
;
}
else
if
(
$_GET
[
'ordertype'
]
==
'live'
)
{
$ordertype
=
'live'
;
$table
=
'zy_order_live'
;
$check_type
=
'zy_live'
;
}
else
if
(
$_GET
[
'ordertype'
]
==
'teacher'
)
{
$ordertype
=
'teacher'
;
$table
=
'zy_order_teacher'
;
$check_type
=
'zy_line_course'
;
}
else
if
(
$_GET
[
'ordertype'
]
==
'album'
)
{
$ordertype
=
'album'
;
$table
=
'zy_order_album'
;
$check_type
=
'zy_album'
;
}
else
if
(
$_GET
[
'ordertype'
]
==
'classes'
)
{
$ordertype
=
'classes'
;
$table
=
'zy_order_classes'
;
$check_type
=
'zy_classes'
;
}
else
if
(
$_GET
[
'ordertype'
]
==
'exams'
)
{
$ordertype
=
'exams'
;
$table
=
'exams_paper_order'
;
$check_type
=
'exams'
;
}
$data
=
M
(
$table
)
->
where
(
$map
)
->
order
(
$order
)
->
findPage
(
$limit
);
if
(
$data
[
'data'
])
{
$data
[
'data'
]
=
$this
->
haddleData
(
$data
[
'data'
],
$table
);
}
$this
->
assign
(
"orderby"
,
$orderby
);
$this
->
assign
(
"check_type"
,
$check_type
);
$this
->
assign
(
"ordertype"
,
$ordertype
);
$this
->
assign
(
"uid"
,
$this
->
mid
);
$this
->
assign
(
"data"
,
$data
);
echo
json_encode
(
$data
[
'data'
]);
exit
();
}
/**
/**
* 会员中心订单--列表处理
* 会员中心订单--列表处理
* @return void
* @return void
...
@@ -168,7 +226,7 @@ class HomeAction extends UserAction
...
@@ -168,7 +226,7 @@ class HomeAction extends UserAction
{
{
// H5页面
// H5页面
if
(
!
$this
->
is_pc
)
{
if
(
!
$this
->
is_pc
)
{
$limit
=
6
;
$limit
=
1000
;
$orderby
=
t
(
$_GET
[
'orderby'
]);
$orderby
=
t
(
$_GET
[
'orderby'
]);
$orderby
=
$orderby
?
$orderby
:
1
;
$orderby
=
$orderby
?
$orderby
:
1
;
if
(
$orderby
)
{
if
(
$orderby
)
{
...
...
apps/home/Tpl/default/Home/order_w3g.html
View file @
2890bc4d
...
@@ -208,6 +208,7 @@
...
@@ -208,6 +208,7 @@
},
},
listItem
:
function
()
{
listItem
:
function
()
{
return
function
(
opt
)
{
return
function
(
opt
)
{
console
.
log
(
this
.
innerTab
,
this
.
tab
);
return
opt
.
options
?
opt
.
options
[
this
.
innerTab
].
items
:
opt
.
items
return
opt
.
options
?
opt
.
options
[
this
.
innerTab
].
items
:
opt
.
items
}
}
},
},
...
@@ -225,6 +226,7 @@
...
@@ -225,6 +226,7 @@
},
},
onInnerTab
:
function
(
tab
)
{
onInnerTab
:
function
(
tab
)
{
console
.
log
(
tab
);
this
.
innerTab
=
tab
this
.
innerTab
=
tab
}
}
},
},
...
...
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