下载页显示应用截屏

pull/5/head
youngS 4 years ago
parent ecadd2a030
commit 0d9eb758a0
  1. 21
      fir_client/src/components/FirDownload.vue
  2. 19
      fir_client/src/components/ShortDownload.vue

@ -178,6 +178,21 @@
</div>
</div>
<el-divider></el-divider>
<div class="screenshots-section" v-if="imagelist && imagelist.length > 0">
<h3>应用截图</h3>
<div class="list-wrapper">
<ul>
<li v-for="screen in imagelist" :key="screen">
<img :src="screen"/>
</li>
</ul>
</div>
</div>
</div>
</el-container>
@ -202,6 +217,7 @@
name: "FirDownload",
data() {
return {
imagelist: [],
currentappinfo: {},
iscomboappinfo: {},
mcurrentappinfo: {},
@ -450,6 +466,11 @@
window.location.href = this.mcurrentappinfo.binary_url
}
}
if (this.currentappinfo.screenshots && this.currentappinfo.screenshots.length > 0) {
for (let i = 0; i < this.currentappinfo.screenshots.length; i++) {
this.imagelist.push(this.currentappinfo.screenshots[i].url)
}
}
} else {
if (data.msg) {
document.title = data.msg;

@ -172,6 +172,18 @@
</div>
</div>
<br/>
<div class="screenshots-section" v-if="imagelist && imagelist.length > 0">
<h3>应用截图</h3>
<div class="list-wrapper">
<ul>
<li v-for="screen in imagelist" :key="screen">
<img :src="screen"/>
</li>
</ul>
</div>
</div>
</div>
</div>
@ -204,6 +216,7 @@
name: "ShortDownload",
data() {
return {
imagelist: [],
currentappinfo: {},
iscomboappinfo: {},
mcurrentappinfo: {},
@ -440,7 +453,11 @@
window.location.href = this.mcurrentappinfo.binary_url
}
}
if (this.currentappinfo.screenshots && this.currentappinfo.screenshots.length > 0) {
for (let i = 0; i < this.currentappinfo.screenshots.length; i++) {
this.imagelist.push(this.currentappinfo.screenshots[i].url)
}
}
} else {
this.iserror = true;
if (data.msg) {

Loading…
Cancel
Save