ZaiZai 1 년 전
부모
커밋
f016b55e36
6개의 변경된 파일151개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      package.json
  2. BIN
      src/assets/index/1242_2208.png
  3. BIN
      src/assets/index/app-icon.png
  4. 7 1
      src/router/index.js
  5. 136 0
      src/views/app.vue
  6. 7 0
      yarn.lock

+ 1 - 0
package.json

@@ -14,6 +14,7 @@
         "vue-router": "^4.3.1"
     },
     "devDependencies": {
+        "@iconify-json/ic": "^1.1.17",
         "@iconify-json/iconoir": "^1.1.43",
         "@vitejs/plugin-vue": "^4.5.2",
         "@vue/compiler-sfc": "^3.4.23",

BIN
src/assets/index/1242_2208.png


BIN
src/assets/index/app-icon.png


+ 7 - 1
src/router/index.js

@@ -2,7 +2,7 @@ import * as vueRouter from 'vue-router'
 
 //设置路由数据
 const router = vueRouter.createRouter({
-    history: vueRouter.createWebHashHistory(),
+    history: vueRouter.createWebHistory(),
     routes: [
         {
             path: '/',
@@ -39,6 +39,12 @@ const router = vueRouter.createRouter({
             name: 'Archives',
             meta: { title: '档案' },
             component: () => import( '~src/views/archives.vue')
+        },
+        {
+            path: '/app',
+            name: 'app',
+            meta: { title: 'App下载' },
+            component: () => import( '~src/views/app.vue')
         }
     ],
 })

+ 136 - 0
src/views/app.vue

@@ -0,0 +1,136 @@
+<template>
+    <div class="hc-app-body h-full w-full">
+        <img class="bg-img h-full w-full" :src="bgImg" alt="">
+        <div class="app-body h-full w-full">
+            <div class="app-company-name hc-flex-center">
+                <img :src="companyName" alt="">
+            </div>
+            <div class="app-title">
+                <div class="icon-box hc-flex-center">
+                    <img :src="appIcon" alt="">
+                </div>
+                <div class="title-box">
+                    <div class="name">工程云家</div>
+                    <div class="version">当前版本:1.0.0</div>
+                    <div class="time">更新时间:2023-04-23</div>
+                </div>
+            </div>
+            <div class="app-img hc-flex-center">
+                <img :src="appImg" alt="">
+            </div>
+            <div class="app-btn">
+                <el-row :gutter="20">
+                    <el-col :span="12">
+                        <el-button type="success">
+                            <i class="i-ic-baseline-android"/>
+                            <span class="ml-1">下载安卓APP</span>
+                        </el-button>
+                    </el-col>
+                    <el-col :span="12">
+                        <el-button type="success">
+                            <i class="i-ic-baseline-apple"/>
+                            <span class="ml-1">下载苹果APP</span>
+                        </el-button>
+                    </el-col>
+                </el-row>
+            </div>
+            <div class="h-100px"/>
+        </div>
+    </div>
+</template>
+
+<script setup>
+import {onMounted, onUnmounted} from "vue";
+import bgImg from '~src/assets/archives/topHead.png'
+import companyName from '~src/assets/index/companyName.png'
+import appIcon from '~src/assets/index/app-icon.png'
+import appImg from '~src/assets/index/1242_2208.png'
+
+//渲染完成
+onMounted(() => {
+    const dom = document.documentElement
+    dom.setAttribute('class', `${dom.offsetWidth > 700 ?'hc-app-pc':'hc-app-mobile'}`)
+})
+
+//页面卸载
+onUnmounted(() => {
+    document.documentElement.removeAttribute('class')
+})
+</script>
+
+<style lang="scss">
+html.hc-app-mobile,
+html.hc-app-mobile body,
+html.hc-app-mobile body #app {
+    position: relative;
+    padding: 0;
+    margin: 0;
+    width: 100%;
+    height: 100%;
+}
+.hc-app-body {
+    position: relative;
+    .bg-img {
+        position: fixed;
+        inset: 0;
+        object-fit: cover;
+    }
+    .app-body {
+        position: relative;
+        .app-company-name {
+            position: relative;
+            padding: 20px;
+            height: 30px;
+            img {
+                height: 100%;
+            }
+        }
+        .app-title {
+            position: relative;
+            padding: 0 20px;
+            color: white;
+            display: flex;
+            .icon-box {
+                position: relative;
+                width: 80px;
+                img {
+                    width: 100%;
+                }
+            }
+            .title-box {
+                position: relative;
+                width: calc(100% - 80px);
+                padding-left: 14px;
+                font-size: 13px;
+                .name {
+                    font-size: 18px;
+                    margin-top: 6px;
+                    margin-bottom: 2px;
+                }
+            }
+        }
+        .app-img {
+            position: relative;
+            margin-top: 20px;
+            padding: 0 24px;
+            img {
+                width: 100%;
+                border-radius: 5px;
+            }
+        }
+        .app-btn {
+            position: relative;
+            padding: 24px;
+            overflow: hidden;
+            .el-button {
+                width: 100%;
+                height: 40px;
+                font-size: 16px;
+                i {
+                    font-size: 18px;
+                }
+            }
+        }
+    }
+}
+</style>

+ 7 - 0
yarn.lock

@@ -444,6 +444,13 @@
   resolved "http://39.108.216.210:9000/@floating-ui/utils/-/utils-0.2.1.tgz#16308cea045f0fc777b6ff20a9f25474dd8293d2"
   integrity sha512-9TANp6GPoMtYzQdt54kfAyMmz1+osLlXdg2ENroU7zzrtflTLrrC/lgrIfaSe+Wu0b89GKccT7vxXA0MoAIO+Q==
 
+"@iconify-json/ic@^1.1.17":
+  version "1.1.17"
+  resolved "http://39.108.216.210:9000/@iconify-json/ic/-/ic-1.1.17.tgz#d1676582fccb45cfbc5e3dd0e100b2ec974c13c9"
+  integrity sha512-EvAjZzVESmN36zlyefylePUNaU2BQ3eRKVZ6KQSQ2bG01ppoZaiFZRri74VTyvp5Mlv2yn68ux1fgCoT+etGmA==
+  dependencies:
+    "@iconify/types" "*"
+
 "@iconify-json/iconoir@^1.1.43":
   version "1.1.43"
   resolved "http://39.108.216.210:9000/@iconify-json/iconoir/-/iconoir-1.1.43.tgz#8a4916c033f21204875418860686f0bf8f86687c"