优化下载页显示

pull/5/head
youngS 4 years ago
parent fbb5c85fcd
commit 74127bac08
  1. 24
      fir_client/src/components/FirDownload.vue
  2. 22
      fir_client/src/components/ShortDownload.vue

@ -93,7 +93,7 @@
</div> </div>
</div> </div>
<div v-else> <div v-else style="margin-top: 10%;margin-bottom: 10%">
<div v-if="currentappinfo.need_password" style="margin:0 auto; width:166px"> <div v-if="currentappinfo.need_password" style="margin:0 auto; width:166px">
<el-input prefix-icon="el-icon-lock" clearable <el-input prefix-icon="el-icon-lock" clearable
placeholder="请输入密码" v-model="password" placeholder="请输入密码" v-model="password"
@ -109,7 +109,7 @@
</button> </button>
<a v-if="currentappinfo.issupersign && !$route.query.udid" <a v-if="currentappinfo.issupersign && !$route.query.udid"
@click="jiaocheng('open')" @click="jiaocheng('open')"
style="float: right;width: 30px;height: 30px;text-align: center;border-radius: 15px;background-color:#32b2a7;color: white;font-size: 20px">?</a> class="jiaocheng" style="color: white;font-size: 20px;">?</a>
</div> </div>
</div> </div>
@ -120,7 +120,6 @@
</div> </div>
</div> </div>
</header> </header>
<div class="per-type-info section" v-if="currentappinfo.app_id && agent === ''"> <div class="per-type-info section" v-if="currentappinfo.app_id && agent === ''">
<div class="type" v-if="miscomboappinfo.release_id"> <div class="type" v-if="miscomboappinfo.release_id">
<div class="info"> <div class="info">
@ -183,7 +182,7 @@
</div> </div>
<div class="screenshots-section" v-if="imagelist && imagelist.length > 0"> <div class="screenshots-section" v-if="imagelist && imagelist.length > 0" style="margin-top: 30%">
<el-divider></el-divider> <el-divider></el-divider>
<div v-if="miscomboappinfo.release_id"> <div v-if="miscomboappinfo.release_id">
<h3 v-if="currentappinfo.type === 0"> <h3 v-if="currentappinfo.type === 0">
@ -205,7 +204,7 @@
</div> </div>
<div class="footer" style="margin-top: 20px;background-color: #d1eef9"> <div class="footer" style="margin-top: 30%;background-color: #d1eef9">
免责声明<br> 免责声明<br>
本网站仅提供下载托管应用为用户自行上传请甄别应用风险后进行下载 本网站仅提供下载托管应用为用户自行上传请甄别应用风险后进行下载
</div> </div>
@ -372,13 +371,15 @@
window.location.href = this.downloadurl; window.location.href = this.downloadurl;
} else { } else {
this.isdownload = false; this.isdownload = false;
this.password = '';
this.$message({ this.$message({
message: "密码错误,或者下载链接失效", message: "密码错误,或者下载链接失效",
type: 'error', type: 'error',
}); });
if (!this.password) {
window.location.reload(); window.location.reload();
} }
this.password = '';
}
}, { }, {
'data': { 'data': {
'token': this.mcurrentappinfo.download_token, 'token': this.mcurrentappinfo.download_token,
@ -629,6 +630,17 @@
color: #505556 color: #505556
} }
.jiaocheng {
float: right;
width: 30px;
height: 30px;
text-align: center;
border-radius: 15px;
background-color: #32b2a7;
margin-right: -30px;
margin-top: 7px;
}
.wechat_tip, .wechat_tip > i { .wechat_tip, .wechat_tip > i {
position: absolute; position: absolute;
right: 10px right: 10px

@ -114,7 +114,7 @@
</div> </div>
</div> </div>
<div v-else> <div v-else style="margin-top: 10%;margin-bottom: 10%">
<div v-if="currentappinfo.need_password" style="margin:0 auto; width:166px"> <div v-if="currentappinfo.need_password" style="margin:0 auto; width:166px">
<input class="passwd" placeholder="请输入密码" v-model="password"/> <input class="passwd" placeholder="请输入密码" v-model="password"/>
</div> </div>
@ -124,7 +124,7 @@
</button> </button>
<a v-if="currentappinfo.issupersign && !$route.query.udid" <a v-if="currentappinfo.issupersign && !$route.query.udid"
@click="jiaocheng('open')" @click="jiaocheng('open')"
style="float: right;width: 30px;height: 30px;text-align: center;border-radius: 15px;background-color:#32b2a7;color: white;font-size: 20px">?</a> class="jiaocheng" style="color: white;font-size: 20px;">?</a>
</div> </div>
</div> </div>
@ -196,7 +196,7 @@
</div> </div>
</div> </div>
<div class="screenshots-section" v-if="imagelist && imagelist.length > 0"> <div class="screenshots-section" v-if="imagelist && imagelist.length > 0" style="margin-top: 30%">
<br/> <br/>
<div v-if="miscomboappinfo.release_id"> <div v-if="miscomboappinfo.release_id">
<h3 v-if="currentappinfo.type === 0"> <h3 v-if="currentappinfo.type === 0">
@ -216,7 +216,7 @@
</div> </div>
</div> </div>
<div class="footer" style="margin-top: 20px;background-color: #d1eef9"> <div class="footer" style="margin-top: 30%;background-color: #d1eef9">
免责声明<br> 免责声明<br>
本网站仅提供下载托管应用为用户自行上传请甄别应用风险后进行下载 本网站仅提供下载托管应用为用户自行上传请甄别应用风险后进行下载
</div> </div>
@ -365,8 +365,11 @@
} else { } else {
this.isdownload = false; this.isdownload = false;
alert("密码错误,或者下载链接失效"); alert("密码错误,或者下载链接失效");
if (!this.password) {
window.location.reload(); window.location.reload();
} }
this.password = '';
}
}, { }, {
'data': { 'data': {
'token': this.mcurrentappinfo.download_token, 'token': this.mcurrentappinfo.download_token,
@ -609,6 +612,17 @@
color: #505556 color: #505556
} }
.jiaocheng {
float: right;
width: 30px;
height: 30px;
text-align: center;
border-radius: 15px;
background-color: #32b2a7;
margin-right: -30px;
margin-top: 7px;
}
.wechat_tip, .wechat_tip > i { .wechat_tip, .wechat_tip > i {
position: absolute; position: absolute;
right: 10px right: 10px

Loading…
Cancel
Save