zhouwx
2024-06-07 a309b65e80f3f21b5ab7c182acb9764f47c677f1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<template>
  <div class="key-box">
    <div class="header">
      <div class="title">
        <div style="width: 300px;text-align: center">
          自然灾害综合风险预警发布及响应联动系统
        </div>
        <div class="center"></div>
        <span style="color: #96aec5;">驱动下载</span>
      </div>
    </div>
    <div class="box-center">
      <div style="width: 1200px;margin: 30px auto 0;padding: 0 20px 0;" v-for="(item,index) in state.keyTypes" :key="index">
        <div class="title">{{item.name}}</div>
        <a-card style="width: 250px;margin:20px 80px;" hoverable title="">
          <template #extra>
            <span style="cursor: pointer;color: #1890ff" @click="downLoad(item)">立即下载</span>
          </template>
          <template #cover>
            <img
                style="width: 120px;height: 120px;margin: 1px auto"
                alt="example"
                :src= keyPic
            />
          </template>
          <template #actions>
            <span>{{item.name}}驱动</span>
          </template>
        </a-card>
      </div>
 
    </div>
  </div>
</template>
<script setup>
import {reactive} from "vue";
import { message } from 'ant-design-vue';
import keyPic from '@/assets/img/key.png'
 
const state = reactive({
  keyTypes: [
    {
      name: 'Windows 版',
      url: 'http://oss.bestong8.com/xinjiang/SetUp.exe'
    },
    {
      name: 'Linux 版',
      url: 'http://oss.bestong8.com/xinjiang/linux.zip'
    },
    {
      name: 'Mac 版',
      url: ''
    },
  ]
})
 
const downLoad = (item) => {
  if(item.url === ''){
    message.warning( "暂未开放苹果系统应用该加密工具。");
  }else{
    const link = document.createElement('a')
    link.href =item.url
    link.target = '_blank'
    link.download = item.name + '.exe'
    link.click()
  }
 
 
}
 
</script>
 
 
<style scoped lang="less">
.key-box{
  margin: 0 auto;
  .header{
    text-align: left;
    width: 1200px;
    margin: 30px auto;
    .title{
      display: flex;
      align-items: center;
      vertical-align: top;
      font-size: 24px;
 
      padding-left: 20px;
      .center{
        margin: 0 10px;
        content: "";
        height: 54px;
        border-left: 2px solid #c7cddc;
      }
 
    }
  }
  .box-center{
    padding-top: 20px;
    padding-bottom: 20px;
    min-width: 1200px;
    .title{
      font-size: 18px;
      font-weight: 600;
      border-bottom: 1px solid #d1d7e8;
      padding: 10px 0;
      margin-bottom: 6px;
    }
  }
}
</style>