博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
vue.js 弹层
阅读量:4492 次
发布时间:2019-06-08

本文共 1770 字,大约阅读时间需要 5 分钟。

 

<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);
    width: 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;
    width: 305px;
    margin: 0 auto;
    margin-top: 35%;
}
.open-box-content h3 {
    width: 100%;
    color: #5089fc;
    text-align: center;
    border-bottom: solid 1px #5089fc;
    height: 55px;
    line-height: 55px;
    font-size: 21px;
}
.open-box-content p {
    width: 100%;
    text-align: center;
    line-height: 24px;
    color: #333333;
    font-size: 16px;
    margin-top: 20px;
}
.open-box-btn {
    width: 100%;
    overflow: hidden;
    padding: 25px 0 18px;
}
.open-box-btn-left {
    width: 50%;
    float: left;
}
.open-box-btn-left button {
    width: 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 {
    width: 50%;
    float: right;
}
.open-box-btn-right button {
    width: 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>

转载于:https://www.cnblogs.com/gerry/p/6964774.html

你可能感兴趣的文章
[Luogu 3902]Increasing
查看>>
16个Web开发的IDE
查看>>
Java动态代理与Cglib库
查看>>
libevent源码深度剖析一
查看>>
SSH隧道技术简介
查看>>
PAT乙级1025
查看>>
找的好网站(macdow语法,扫描二维码,)
查看>>
浏览器插件开发遇到的问题
查看>>
EF Core 1.0 和 SQLServer 2008 分页的问题
查看>>
BZOJ1798: [Ahoi2009]Seq 维护序列seq
查看>>
PS--人物黄金色调
查看>>
开启ucosii的移植之旅
查看>>
推荐一款能写原创诗词的小程序
查看>>
Codeforces Round #496 (Div. 3) ABCDE1
查看>>
《程序是怎样跑起来的》第三章
查看>>
Jquery回到顶部效果
查看>>
开园第一笔
查看>>
Spark项目之电商用户行为分析大数据平台之(七)数据调研--基本数据结构介绍...
查看>>
Codeforces Round #FF (Div. 2) D. DZY Loves Modification 优先队列
查看>>
Delphi APP 開發入門(十)REST Client 開發
查看>>