This commit is contained in:
faiz 2024-06-27 19:47:14 +08:00
parent 4ed14c6517
commit ff630901e4
1 changed files with 12 additions and 2 deletions

View File

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