Commit 34b86e87 by 冷斌

fix bug

parent 1a47bb12
...@@ -119,9 +119,9 @@ ...@@ -119,9 +119,9 @@
</if> </if>
<else /> <else />
<if condition="$vo['price'] eq 0 or $vo['is_buy'] eq 1"> <if condition="$vo['price'] eq 0 or $vo['is_buy'] eq 1">
<div @click="onStart({$vo['exams_paper_id']})" class="home_button_green layout_center">下载试题</div> <div @click="onDownload({$vo['exams_paper_id']})" class="home_button_green layout_center">下载试题</div>
<else /> <else />
<div @click="onStart({$vo['exams_paper_id']})" class="home_button_orange layout_center">下载预览</div> <div @click="onDownload({$vo['exams_paper_id']})" class="home_button_orange layout_center">下载预览</div>
</if> </if>
</if> </if>
...@@ -137,14 +137,14 @@ ...@@ -137,14 +137,14 @@
</div> </div>
<!-- 下载预览提示 --> <!-- 下载预览提示 -->
<!-- <div v-show="yulan==index"> --> <!-- <div v-show="yulan==index"> -->
<div class="yulanBox" v-if="false"> <div class="yulanBox" v-show="exams_paper_id == {$vo['exams_paper_id']}">
<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" 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">
<div @click="onDownload(index)" class="tips_foot_L" >下载预览</div> <div @click="onDownload(index)" class="tips_foot_L" >下载预览</div>
<div @click="onPay(item)" class="tips_foot_R">下载全部</div> <div @click="onPay({$vo['exams_paper_id']})" class="tips_foot_R">下载全部</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -205,7 +205,8 @@ ...@@ -205,7 +205,8 @@
el: '#app', el: '#app',
data: function() { data: function() {
return { return {
active: 0 active: 0,
exams_paper_id: 0
} }
}, },
created: function() { created: function() {
...@@ -237,9 +238,10 @@ ...@@ -237,9 +238,10 @@
} }
}, },
onDownload: function (isBuy, price, path) { onDownload: function (isBuy, price, path) {
if ( path ) { // if ( path ) {
window.location.href = path; // window.location.href = path;
} // }
this.exams_paper_id = isBuy;
}, },
onPay: function(id) { onPay: function(id) {
if (MID <= 0) { if (MID <= 0) {
......
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