zoukankan      html  css  js  c++  java
  • vue.js 弹层

    <div class="open-box"  v-if="SystemShow" @click="ColseShow">
                <div class="open-box-content">
                    <h3>系统提示</h3>
                    <p>系统检测到您是天下医家的医护人员
                        <br>可以通过APP进行点餐
                        <br>获得更多优惠</p>
                    <div class="open-box-btn">
                        <div class="open-box-btn-left">
                            <button>继续使用</button>
                        </div>
                        <div class="open-box-btn-right">
                            <button>下载天下医家</button>
                        </div>
                    </div>
                </div>
            </div>

    <style>

    .open-box {
        position: fixed;
        background: rgba(0, 0, 0, 0.4);
        100%;
        height: 100%;
        left: 0;   /**定位时需注意  不然ios找不到显示地方**/
        top: 0;  /**定位时需注意  不然ios找不到显示地方**/
        z-index: 100;
        color: #fff;
        text-align: center;
    }

    .open-box-content {
        background: #fff;
        border-radius: 3px;
        305px;
        margin: 0 auto;
        margin-top: 35%;
    }

    .open-box-content h3 {
        100%;
        color: #5089fc;
        text-align: center;
        border-bottom: solid 1px #5089fc;
        height: 55px;
        line-height: 55px;
        font-size: 21px;
    }

    .open-box-content p {
        100%;
        text-align: center;
        line-height: 24px;
        color: #333333;
        font-size: 16px;
        margin-top: 20px;
    }

    .open-box-btn {
        100%;
        overflow: hidden;
        padding: 25px 0 18px;
    }

    .open-box-btn-left {
        50%;
        float: left;
    }

    .open-box-btn-left button {
        90%;
        border-radius: 2px;
        border: none;
        background: #e6e6e6;
        color: #656565;
        height: 40px;
        line-height: 38px;
        font-size: 16px;
        outline: none;
        cursor: pointer;
    }

    .open-box-btn-right {
        50%;
        float: right;
    }

    .open-box-btn-right button {
        90%;
        border-radius: 2px;
        border: none;
        background: #5089fc;
        color: #ffffff;
        height: 40px;
        line-height: 38px;
        font-size: 16px;
        outline: none;
        cursor: pointer;
    }

    </style>

    <script>
    export default {
        data() {
                return {
               
                    OpenAppShwo: true

                }
            },
            methods: {
              //在哪调用  就在哪@click="方法名" 
                OpenApp() {
                    this.OpenAppShwo = !this.OpenAppShwo

                },
                CloseAp() {

                    this.OpenAppShwo = !this.OpenAppShwo
                }
            }
    }
    </script>

  • 相关阅读:
    CRC校验码原理、实例、手动计算
    RAID级别
    ffmbc——广播电视以及专业用途量身定制的FFmpeg
    Linux查看物理CPU个数、核数、逻辑CPU个数
    Linux服务器高并发实践经历
    Linux解压命令大全
    针对文件系统和网络性能的测试
    代码覆盖工具(gcov、lcov)的使用
    MYSQL的卸载
    Moosefs源代码分析
  • 原文地址:https://www.cnblogs.com/gerry/p/6964774.html
Copyright © 2011-2022 走看看