Commit 06a16095 by 陈超

T

parent 33caa888
...@@ -275,13 +275,13 @@ ...@@ -275,13 +275,13 @@
tab: 0, tab: 0,
options: [{ options: [{
title: '视频', title: '视频',
items: [1,2] items: []
},{ },{
title: '真题', title: '真题',
items: [1,2] items: []
},{ },{
title: '实物', title: '实物',
items: [1,2] items: []
}] }]
} }
}, },
...@@ -307,6 +307,23 @@ ...@@ -307,6 +307,23 @@
}, },
onTab: function(idx) { onTab: function(idx) {
this.tab = idx this.tab = idx
},
searchCourse: function() {
let that = this
$.ajax({
type: "GET",
url: "{:U('course/Video/index')}" + "?api=1&search=" + that.keyword,
dataType: "json",
success: function(data) {
console.log(data)
}
})
},
searchQuestion: function() {
},
searchGoods: function() {
} }
} }
}) })
......
...@@ -104,7 +104,11 @@ ...@@ -104,7 +104,11 @@
type:'post', type:'post',
success: function(data){ success: function(data){
let res = JSON.parse(data) let res = JSON.parse(data)
console.log(res) if(res.status == 1) {
} else {
ui.error(res.data)
}
}}) }})
}, },
checkPayStatus: function(num) { checkPayStatus: function(num) {
......
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
type: "GET", type: "GET",
url: "{:U('course/Video/index')}", url: "{:U('course/Video/index')}",
data: "api=1&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=&vip_id=",
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
that.loading =false that.loading =false
......
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