Commit a374ef88 by 刘海龙

no message

parent 6831cb46
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<div v-show="yulan==index"> <div v-show="yulan==index">
<div class="yulanBox"> <div class="yulanBox">
<div class="tips_box"> <div class="tips_box">
<img class="close_yulan" src="/addons/theme/stv1/_static/img/guanbi@2x.png"> <img class="close_yulan" @click="close_yulan" src="/addons/theme/stv1/_static/img/guanbi@2x.png">
<div class="tips_title">提示</div> <div class="tips_title">提示</div>
<div class="tips_body">套餐下架后用户便无法找到该商品进行购买,你确定要下架吗?</div> <div class="tips_body">套餐下架后用户便无法找到该商品进行购买,你确定要下架吗?</div>
<div class="tips_foot"> <div class="tips_foot">
...@@ -254,7 +254,11 @@ ...@@ -254,7 +254,11 @@
}else if(that.tab == 1) { }else if(that.tab == 1) {
that.loadDownload() that.loadDownload()
} else { } else {
that.onMyTab(that.myTab) if(that.myTab==0){
this.loadMy()
}else{
this.loadMyTi()
}
} }
}else if(scrollTop<=0){ }else if(scrollTop<=0){
//滚动条到达顶部 //滚动条到达顶部
...@@ -353,6 +357,8 @@ ...@@ -353,6 +357,8 @@
document.body.removeChild(link); document.body.removeChild(link);
this.yulan = 0; this.yulan = 0;
}, },
// 下载预览
showYulan: function (index) { showYulan: function (index) {
if(!this.download[index].attach){ if(!this.download[index].attach){
alert('当前课程无文件下载'); alert('当前课程无文件下载');
...@@ -360,7 +366,12 @@ ...@@ -360,7 +366,12 @@
this.yulan = index; this.yulan = index;
} }
}, },
// 关闭预览
close_yulan:function(){
this.yulan = 0;
},
// 顶部导航栏切换
onTopTab: function(tab) { onTopTab: function(tab) {
if(this.tab == 0) { if(this.tab == 0) {
this.page=1 this.page=1
...@@ -370,15 +381,17 @@ ...@@ -370,15 +381,17 @@
this.page=1 this.page=1
this.loadDownload() this.loadDownload()
} else { } else {
this.page=1
this.onMyTab(this.myTab) this.onMyTab(this.myTab)
} }
}, },
// 已做和收藏切换
onMyTab: function(tab) { onMyTab: function(tab) {
this.myTab = tab this.myTab = tab
console.log(this.myTab) console.log(this.myTab)
if(tab == 0) { if(tab == 0) {
this.page=1 this.page=1
this.myYiZuo=[]
this.loadMy() this.loadMy()
} else { } else {
this.page=1 this.page=1
...@@ -387,6 +400,7 @@ ...@@ -387,6 +400,7 @@
this.loadMyTi() this.loadMyTi()
} }
}, },
// 筛选条件
onCondition: function(condition) { onCondition: function(condition) {
this.condition.forEach( r => { r.select = false }) this.condition.forEach( r => { r.select = false })
condition.select = true condition.select = true
......
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