Commit 1b778b3a by 刘海龙

no message

parent 65272668
......@@ -117,7 +117,7 @@
<div @click="showYulan(index)" v-else-if="item.price > 0" class="button_orange layout_center">
下载预览
<!-- 下载预览提示 -->
<div v-show="yulan==index" v-model="yulan">
<!-- <div v-show="yulan==index" v-model="yulan">
<div class="yulanBox">
<div class="tips_box">
<img class="close_yulan" @click="close_yulan" src="/addons/theme/stv1/_static/img/guanbi@2x.png">
......@@ -129,11 +129,25 @@
</div>
</div>
</div>
</div>
</div> -->
</div>
</div>
</div>
<div class="doneBox" v-show="loadDone==1&&download.length>0">
<!-- 下载提示 -->
<div v-show="yulan">
<div class="yulanBox">
<div class="tips_box">
<img class="close_yulan" @click="close_yulan" src="/addons/theme/stv1/_static/img/guanbi@2x.png">
<div class="tips_title">提示</div>
<div class="tips_body">套餐下架后用户便无法找到该商品进行购买,你确定要下架吗?</div>
<div class="tips_foot">
<div @click="onDownload()" class="tips_foot_L" >下载预览</div>
<div @click="onPay()" class="tips_foot_R">下载全部</div>
</div>
</div>
</div>
</div>
<div class="doneBox" v-show="loadDone==1&&download.length>0">
<div class="hengxian"></div>
<div class="loadDone">试题已全部加载</div>
<div class="hengxian"></div>
......@@ -248,9 +262,10 @@
download: [],
myYiZuo: [],
myCollect: [],
yulan: 0,
yulan: false,
page: 1,
loadDone: 0, // 0未加载完 1试题已全部加载
loadDone: 0, //0未加载完 1试题已全部加载
index:0, // 当前选中的试题
}
},
created:function() {
......@@ -340,7 +355,8 @@
window.location.href = url
},
onPay: function(item) {
onPay: function() {
var item = this.download[this.index]
console.log(item)
// $.ajax({
// type: "POST",
......@@ -360,8 +376,9 @@
// })
},
onDownload: function(index){
console.log(index)
onDownload: function(){
console.log(this.index)
var index = this.index
// if (item.attach) {
// window.location.href = item.attach;
// }
......@@ -384,13 +401,14 @@
if(!this.download[index].attach){
alert('当前课程无文件下载');
} else {
this.yulan = index;
this.yulan = true;
this.index = index
}
},
// 关闭预览
close_yulan:function(){
// console.log(this.yulan)
this.yulan = 0;
this.yulan = false;
console.log(this.yulan)
},
......
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