feat 添加下载apk模块
This commit is contained in:
parent
01cfb2cacf
commit
4f1ee1915a
@ -614,6 +614,29 @@ const routes = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/download',
|
||||||
|
component: Layout,
|
||||||
|
redirect: '/download/index',
|
||||||
|
meta: {
|
||||||
|
title: '软件下载',
|
||||||
|
icon: 'iconfont icon-dingdantongji',
|
||||||
|
roles: ['master', 'admin', 'editor'],
|
||||||
|
tapName: 'admin'
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '/download/index',
|
||||||
|
component: () => import('@/views/layout/components/main/download/index'),
|
||||||
|
meta: {
|
||||||
|
title: '软件下载',
|
||||||
|
icon: 'iconfont icon-a-SalesOrderManagement',
|
||||||
|
roles: ['master', 'admin', 'editor'],
|
||||||
|
tapName: 'admin'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/404',
|
path: '/404',
|
||||||
component: Page404,
|
component: Page404,
|
||||||
|
@ -13,7 +13,8 @@ const defaultModuleVisibilityMap = {
|
|||||||
category: true,
|
category: true,
|
||||||
broadcast: true,
|
broadcast: true,
|
||||||
order: true,
|
order: true,
|
||||||
nofly: true
|
nofly: true,
|
||||||
|
download: true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 从 localStorage 读取已有配置,合并覆盖默认配置
|
// 从 localStorage 读取已有配置,合并覆盖默认配置
|
||||||
|
61
src/views/layout/components/main/download/index.vue
Normal file
61
src/views/layout/components/main/download/index.vue
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-row class="m-t-0">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-container>
|
||||||
|
<el-header height="42px" class="l-h-42 p-l-10 p-r-10 border border-b-n">
|
||||||
|
<div class="l">
|
||||||
|
<i class="iconfont icon-xiazai f-s-20"></i>
|
||||||
|
<font class="m-l-10 f-s-18 fb">软件下载</font>
|
||||||
|
</div>
|
||||||
|
</el-header>
|
||||||
|
<el-main class="border p-20">
|
||||||
|
|
||||||
|
<!-- 安卓端下载 -->
|
||||||
|
<el-card class="box-card" shadow="hover">
|
||||||
|
<div slot="header" class="clearfix">
|
||||||
|
<span class="f-s-16 fb">安卓端</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="m-b-10">
|
||||||
|
<p><b>软件名称:</b>鲲鹏堂 / KPT-SP 运载无机监管平台</p>
|
||||||
|
<p><b>版本号:</b>v1.01</p>
|
||||||
|
<p><b>系统要求:</b>安卓 14 及以上</p>
|
||||||
|
<p><b>建议分辨率:</b>3200 × 2136</p>
|
||||||
|
<p><b>建议设备:</b>小米 Pad 7</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<el-button type="primary" icon="el-icon-download" @click="downloadApk">
|
||||||
|
下载 APK
|
||||||
|
</el-button>
|
||||||
|
</el-card>
|
||||||
|
|
||||||
|
</el-main>
|
||||||
|
</el-container>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'SoftwareDownload',
|
||||||
|
methods: {
|
||||||
|
downloadApk () {
|
||||||
|
const link = document.createElement('a')
|
||||||
|
link.href = 'https://szdot.top/app-release.apk'
|
||||||
|
link.target = '_blank'
|
||||||
|
link.download = 'KPT-SP_v1.01.apk'
|
||||||
|
document.body.appendChild(link)
|
||||||
|
link.click()
|
||||||
|
document.body.removeChild(link)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.box-card {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
</style>
|
@ -60,7 +60,8 @@ export default {
|
|||||||
{ value: 'category', label: '分类管理' },
|
{ value: 'category', label: '分类管理' },
|
||||||
{ value: 'product', label: '商品管理' },
|
{ value: 'product', label: '商品管理' },
|
||||||
{ value: 'broadcast', label: '广告管理' },
|
{ value: 'broadcast', label: '广告管理' },
|
||||||
{ value: 'order', label: '订单与统计' }
|
{ value: 'order', label: '订单与统计' },
|
||||||
|
{ value: 'download', label: '软件下载' }
|
||||||
],
|
],
|
||||||
selectedModules: []
|
selectedModules: []
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user