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
5cfc6640
Commit
5cfc6640
authored
May 14, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T
parent
6c82c8bd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
apps/course/Lib/Action/VideoAction.class.php
+4
-0
apps/course/Tpl/default/Video/index_w3g.html
+1
-1
No files found.
apps/course/Lib/Action/VideoAction.class.php
View file @
5cfc6640
...
@@ -276,6 +276,10 @@ class VideoAction extends CommonAction
...
@@ -276,6 +276,10 @@ class VideoAction extends CommonAction
//如果是ajax并且为h5访问 直接输出后边的数据
//如果是ajax并且为h5访问 直接输出后边的数据
if
(
$this
->
isAjax
()
&&
$this
->
is_wap
)
{
if
(
$this
->
isAjax
()
&&
$this
->
is_wap
)
{
if
(
$_GET
[
'api'
])
{
echo
json_encode
(
$data
);
exit
();
}
$html
=
$this
->
fetch
(
'index_w3g_ajax'
);
$html
=
$this
->
fetch
(
'index_w3g_ajax'
);
$data
[
'data'
]
=
$html
;
$data
[
'data'
]
=
$html
;
echo
json_encode
(
$data
);
echo
json_encode
(
$data
);
...
...
apps/course/Tpl/default/Video/index_w3g.html
View file @
5cfc6640
...
@@ -372,7 +372,7 @@
...
@@ -372,7 +372,7 @@
$
.
ajax
({
$
.
ajax
({
type
:
"GET"
,
type
:
"GET"
,
url
:
"{:U('course/Video/index')}"
,
url
:
"{:U('course/Video/index')}"
,
data
:
"p="
+
(
this
.
page
+
1
)
+
data
:
"
api=1&
p="
+
(
this
.
page
+
1
)
+
"&orderBy=&cateId="
+
this
.
cate
+
"&vtype=1&charge=&videofile=&eaxm_id=&lower="
+
this
.
minPrice
+
"&mhm_id=&best={$_GET['best']}&vip_id="
,
"&orderBy=&cateId="
+
this
.
cate
+
"&vtype=1&charge=&videofile=&eaxm_id=&lower="
+
this
.
minPrice
+
"&mhm_id=&best={$_GET['best']}&vip_id="
,
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
...
...
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