下载页显示应用截屏

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>
</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> </div>
</el-container> </el-container>
@ -202,6 +217,7 @@
name: "FirDownload", name: "FirDownload",
data() { data() {
return { return {
imagelist: [],
currentappinfo: {}, currentappinfo: {},
iscomboappinfo: {}, iscomboappinfo: {},
mcurrentappinfo: {}, mcurrentappinfo: {},
@ -450,6 +466,11 @@
window.location.href = this.mcurrentappinfo.binary_url 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 { } else {
if (data.msg) { if (data.msg) {
document.title = data.msg; document.title = data.msg;

@ -172,6 +172,18 @@
</div> </div>
</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>
</div> </div>
@ -204,6 +216,7 @@
name: "ShortDownload", name: "ShortDownload",
data() { data() {
return { return {
imagelist: [],
currentappinfo: {}, currentappinfo: {},
iscomboappinfo: {}, iscomboappinfo: {},
mcurrentappinfo: {}, mcurrentappinfo: {},
@ -440,7 +453,11 @@
window.location.href = this.mcurrentappinfo.binary_url 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 { } else {
this.iserror = true; this.iserror = true;
if (data.msg) { if (data.msg) {

Loading…
Cancel
Save