#
whycq
2023-01-25 236bcb2b593235e2c530f21a1cfadff98c0218a0
#
4个文件已修改
1个文件已添加
145 ■■■■■ 已修改文件
Monitor-APP/App.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/index.html 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/pages.json 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/pages/index.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/static/css/common.css 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/App.vue
@@ -14,5 +14,4 @@
<style>
    /*每个页面公共css */
    @import '@/common/uni.css';
</style>
Monitor-APP/index.html
@@ -1,20 +1,22 @@
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <script>
      var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
        CSS.supports('top: constant(a)'))
      document.write(
        '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
        (coverSupport ? ', viewport-fit=cover' : '') + '" />')
    </script>
    <title></title>
    <!--preload-links-->
    <!--app-context-->
  </head>
  <body>
    <div id="app"><!--app-html--></div>
    <script type="module" src="/main.js"></script>
  </body>
    <head>
        <meta charset="UTF-8" />
        <script>
            var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
                CSS.supports('top: constant(a)'))
            document.write(
                '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
                (coverSupport ? ', viewport-fit=cover' : '') + '" />')
        </script>
        <title></title>
        <!--preload-links-->
        <!--app-context-->
    </head>
    <body>
        <div id="app">
            <!--app-html-->
        </div>
        <script type="module" src="/main.js"></script>
    </body>
</html>
Monitor-APP/pages.json
@@ -1,9 +1,19 @@
{
    "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
        {
            "path": "pages/index",
            "style": {
                "navigationStyle": "custom",
                // 去掉顶部导航栏
                "app-plus": {
                    "titleNView": false
                }
            }
        },
        {
            "path": "pages/home/home",
            "style": {
                "navigationStyle":"home",
                "navigationStyle": "custom",
                // 去掉顶部导航栏
                "app-plus": {
                    "titleNView": false
@@ -13,7 +23,7 @@
        {
            "path": "pages/index/index",
            "style": {
                "navigationStyle":"custom",
                "navigationStyle": "custom",
                // 去掉顶部导航栏
                "app-plus": {
                    "titleNView": false
@@ -23,11 +33,11 @@
        {
            "path": "pages/index/monitor",
            "style": {
                "navigationStyle":"custom"
                "navigationStyle": "custom"
            }
        }
    ],
    "globalStyle": {
        "navigationBarTextStyle": "black",
Monitor-APP/pages/index.vue
New file
@@ -0,0 +1,23 @@
<template>
    <view class="container">
    </view>
</template>
<script setup lang="ts">
</script>
<style lang="less" scoped>
    // page 设置可以重置这些
    page {
      width: 100%;
      height: 100%;
    }
    .container {
        height: 100%;
        width: 100%;
        background-image: url(../static/background.png);
        background-size: 100% 100%;
    }
</style>
Monitor-APP/static/css/common.css
@@ -1,25 +1,48 @@
/* @media (max-width: 1900px) {
    view {
        font-size: 100px;
    }
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
@media (max-width: 1400px) {
    view {
        font-size: 25px;
    }
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
@media (max-width: 1200px) {
    view {
        font-size: 20px;
    }
body {
    line-height: 1;
}
@media (max-width: 992px) {
    view {
        font-size: 12px;
    }
ol, ul {
    list-style: none;
}
@media (max-width: 768px) {
    view {
        font-size: 10px;
    }
} */
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}