Commit b11e98fc by 冷斌

fix bug

parent 309c45f7
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
</div> </div>
</div> </div>
<div class="class_right layout_center"> <div class="class_right layout_center">
<div v-if="item.price == 0|| item.is_buy" class="button_green layout_center">下载试题</div> <div v-if="item.price == 0|| item.is_buy" @click="onDownload(item)" class="button_green layout_center">下载试题</div>
<div @click="onPay(item)" v-else-if="item.price > 0" class="button_orange layout_center">¥{{item.price}}</div> <div @click="onPay(item)" v-else-if="item.price > 0" class="button_orange layout_center">¥{{item.price}}</div>
</div> </div>
</div> </div>
...@@ -248,6 +248,10 @@ ...@@ -248,6 +248,10 @@
}) })
}, },
onDownload: function(item){
window.location.href = item.attach;
},
onTopTab: function(tab) { onTopTab: function(tab) {
if(this.tab == 0) { if(this.tab == 0) {
this.loadZhenti() this.loadZhenti()
...@@ -327,7 +331,8 @@ ...@@ -327,7 +331,8 @@
count: r.questions_count, count: r.questions_count,
time: r.reply_time, time: r.reply_time,
person: r.exams_user + "已做", person: r.exams_user + "已做",
is_buy: r.is_buy is_buy: r.is_buy,
attach: r.attach
} }
})) }))
if(that.condition.length == 0) { if(that.condition.length == 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