This commit is contained in:
parent
4ed14c6517
commit
ff630901e4
|
@ -23,8 +23,8 @@
|
|||
<li class="problem_right_container" v-for="item in getQaLists">
|
||||
<div class="title">
|
||||
<span v-html="item.title"></span>
|
||||
<el-button type="primary">下载图片</el-button>
|
||||
<el-button type="primary">下载行程</el-button>
|
||||
<el-button @click="handleZip(item.img_zip)" type="primary">下载图片</el-button>
|
||||
<el-button @click="handleZip(item.trip_zip)" type="primary">下载行程</el-button>
|
||||
</div>
|
||||
<div class="desc" v-html="item.content"></div>
|
||||
</li>
|
||||
|
@ -59,6 +59,16 @@ export default {
|
|||
this.getQaLists = res.data.data
|
||||
})
|
||||
},
|
||||
handleZip(url){
|
||||
if(url){
|
||||
window.open(url)
|
||||
}else{
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: '暂无下载链接'
|
||||
})
|
||||
}
|
||||
},
|
||||
load(){
|
||||
console.log('load')
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue