Blame view

src/views/down/index.vue 1.9 KB
4c4f7640   梁保满   路由表,路由前端文件
1
  <template>
ca39cc52   阿宝   飞书问题处理
2
    <div class="content-box">
560c12f2   阿宝   学校设置,软件下载
3
      <back-box>
23a6dc5f   阿宝   学校管理相关接口简单对接
4
5
6
7
        <template slot="title">
          <span>软件下载</span>
        </template>
      </back-box>
560c12f2   阿宝   学校设置,软件下载
8
9
10
11
12
13
14
      <div class="page-content">
        <div class="down-item">
          <p class="txt">
            K12公私立学校、高等院校、教育培训机构的课堂互动教学、即时课堂测验
          </p>
          <el-button plan round @click="links">授课端下载</el-button>
        </div>
3ba60a63   梁保满   发卡补卡,设备状态上传下载接口联调
15
        <div class="down-item" v-loading="loading">
560c12f2   阿宝   学校设置,软件下载
16
17
18
          <p class="txt">
            配合发卡器硬件,方便学校管理员进行发卡补卡操作的软件。
          </p>
3ba60a63   梁保满   发卡补卡,设备状态上传下载接口联调
19
          <el-button plan round @click="downCard">发卡软件下载</el-button>
560c12f2   阿宝   学校设置,软件下载
20
21
        </div>
      </div>
4c4f7640   梁保满   路由表,路由前端文件
22
23
24
25
26
    </div>
  </template>
  
  <script>
  export default {
3ba60a63   梁保满   发卡补卡,设备状态上传下载接口联调
27
28
29
30
31
    data() {
      return {
        loading: false,
      };
    },
ca39cc52   阿宝   飞书问题处理
32
33
    methods: {
      links() {
560c12f2   阿宝   学校设置,软件下载
34
        this.$router.push({
ca39cc52   阿宝   飞书问题处理
35
36
37
          path: "/downClient",
        });
      },
3ba60a63   梁保满   发卡补卡,设备状态上传下载接口联调
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
      async downCard() {
        if (this.loading == true) return;
        this.loading = true;
        const { data, status, info } = await this.$request.latestClickersApp();
        this.loading = false;
        if (status == 0) {
          const a = document.createElement("a");
          a.href = data.downloadUrl;
          a.download = data.appName;
          document.body.appendChild(a);
          a.click();
          a.remove();
        } else {
          this.$message.error(info);
        }
      },
ca39cc52   阿宝   飞书问题处理
54
    },
560c12f2   阿宝   学校设置,软件下载
55
  };
4c4f7640   梁保满   路由表,路由前端文件
56
57
  </script>
  
560c12f2   阿宝   学校设置,软件下载
58
  <style lang="scss" scoped>
ca39cc52   阿宝   飞书问题处理
59
60
61
  .content-box {
    width: 100%;
  }
560c12f2   阿宝   学校设置,软件下载
62
  .page-content {
560c12f2   阿宝   学校设置,软件下载
63
    display: flex;
ca39cc52   阿宝   飞书问题处理
64
65
    padding-top: 50px;
    margin-left: 240px;
560c12f2   阿宝   学校设置,软件下载
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
    .down-item {
      width: 200px;
      padding: 50px 20px;
      border-radius: 20px;
      margin: 20px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background: #f8f8f8;
      box-shadow: 2px 2px 5px #ccc;
      .txt {
        font-size: 16px;
        color: #7f7f7f;
        line-height: 24px;
        height: 120px;
      }
    }
  }
4c4f7640   梁保满   路由表,路由前端文件
85
  </style>