Commit bf2328e4 by 刘海龙

111

parent 8babf192
...@@ -99,7 +99,21 @@ ...@@ -99,7 +99,21 @@
}, },
methods: { methods: {
onChange: function(tab) { onChange: function(tab) {
console.log(tab) console.log(tab)
switch(tab){
case 0:
window.location.href = "{:U('classroom/Index/index')}"
break;
case 1:
window.location.href = "{:U('home/Home/exams')}"
break;
case 2:
window.location.href = "{:U('classroom/Index/find')}"
break;
case 3:
window.location.href = "{:U('home/User/index')}"
break;
}
} }
} }
}) })
......
...@@ -179,6 +179,20 @@ ...@@ -179,6 +179,20 @@
methods: { methods: {
onChange: function(tab) { onChange: function(tab) {
console.log(tab) console.log(tab)
switch(tab){
case 0:
window.location.href = "{:U('classroom/Index/index')}"
break;
case 1:
window.location.href = "{:U('home/Home/exams')}"
break;
case 2:
window.location.href = "{:U('classroom/Index/find')}"
break;
case 3:
window.location.href = "{:U('home/User/index')}"
break;
}
}, },
onDownload: function (isBuy, price, path) { onDownload: function (isBuy, price, path) {
if ( (isBuy || price == 0) && path ) { if ( (isBuy || price == 0) && path ) {
......
...@@ -229,6 +229,20 @@ ...@@ -229,6 +229,20 @@
onChange: function(tab) { onChange: function(tab) {
console.log(tab) console.log(tab)
switch(tab){
case 0:
window.location.href = "{:U('classroom/Index/index')}"
break;
case 1:
window.location.href = "{:U('home/Home/exams')}"
break;
case 2:
window.location.href = "{:U('classroom/Index/find')}"
break;
case 3:
window.location.href = "{:U('home/User/index')}"
break;
}
}, },
startDo: function(item) { startDo: function(item) {
......
...@@ -450,6 +450,20 @@ ...@@ -450,6 +450,20 @@
methods: { methods: {
onChange: function(tab) { onChange: function(tab) {
console.log(tab) console.log(tab)
switch(tab){
case 0:
window.location.href = "{:U('classroom/Index/index')}"
break;
case 1:
window.location.href = "{:U('home/Home/exams')}"
break;
case 2:
window.location.href = "{:U('classroom/Index/find')}"
break;
case 3:
window.location.href = "{:U('home/User/index')}"
break;
}
}, },
onCellTap: function(url) { onCellTap: function(url) {
window.location.href = url window.location.href = url
......
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