优化代码

super_signature
xiaoyu 4 years ago
parent 4af2212c9e
commit ffcc4efd89
  1. 7
      fir_client/src/components/FirDownload.vue
  2. 8
      fir_download/src/components/FirDownload.vue

@ -76,7 +76,7 @@
<div v-else> <div v-else>
<div class="actions type-ios"> <div class="actions type-ios">
<div><p>正在安装请按 Home 键在桌面查看</p> <div><p>正在安装请按 Home 键在桌面查看</p>
<p> <p v-if="!this.currentappinfo.issupersign">
<button @click="gomobileaction"> <button @click="gomobileaction">
<el-link icon="el-icon-loadings" type="primary" <el-link icon="el-icon-loadings" type="primary"
:underline="false"> :underline="false">
@ -239,6 +239,11 @@
if (this.agent !== '') { if (this.agent !== '') {
let download_url = res.data.download_url; let download_url = res.data.download_url;
this.downloadurl = "itms-services://?action=download-manifest&url=" + encodeURIComponent(download_url); this.downloadurl = "itms-services://?action=download-manifest&url=" + encodeURIComponent(download_url);
// eslint-disable-next-line no-unused-vars
this.timmer = setTimeout(data => {
this.gomobile = false;
}, 5000);
} }
} else { } else {
if (this.agent !== '') { if (this.agent !== '') {

@ -75,8 +75,8 @@
<div v-else> <div v-else>
<div class="actions type-ios"> <div class="actions type-ios">
<div><p>正在安装请按 Home 键在桌面查看</p> <div><p>正在安装请按 Home 键在桌面查看</p>
<p> <p v-if="!this.currentappinfo.issupersign">
<button @click="gomobileaction"> <button @click="gomobileaction">
<a icon="el-icon-loadings" type="primary" <a icon="el-icon-loadings" type="primary"
:underline="false"> :underline="false">
立即信任 立即信任
@ -234,6 +234,10 @@
if (this.agent !== '') { if (this.agent !== '') {
let download_url = res.data.download_url; let download_url = res.data.download_url;
this.downloadurl = "itms-services://?action=download-manifest&url=" + encodeURIComponent(download_url); this.downloadurl = "itms-services://?action=download-manifest&url=" + encodeURIComponent(download_url);
// eslint-disable-next-line no-unused-vars
this.timmer = setTimeout(data => {
this.gomobile = false;
}, 5000);
} }
} else { } else {
if (this.agent !== '') { if (this.agent !== '') {

Loading…
Cancel
Save