Commit 5cfc6640 by 陈超

T

parent 6c82c8bd
......@@ -276,6 +276,10 @@ class VideoAction extends CommonAction
//如果是ajax并且为h5访问 直接输出后边的数据
if ($this->isAjax() && $this->is_wap) {
if ($_GET['api']) {
echo json_encode($data);
exit();
}
$html = $this->fetch('index_w3g_ajax');
$data['data'] = $html;
echo json_encode($data);
......
......@@ -372,7 +372,7 @@
$.ajax({
type: "GET",
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=",
dataType: "json",
success: function(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment