应对 小程序内用户帐号登录规范调整 在授权前显示弹出框 ,模态框

.wxml:



  您还未登录
  请先登录再进行操作
  

  
    
    
  



.wxss:

.mask{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
    z-index: 9000;
    opacity: 0.7;
}
 
.modalDlg{
    width: 580rpx;
    height: 620rpx;
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 9999;
    margin: -370rpx 85rpx;
    background-color: #fff;
    border-radius: 36rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.custom{
  padding: 50rpx 0;
    justify-content:space-between;
  }
  .btn{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content:space-between;
    align-items: center;
  }

.js:

Page({
 
    data: {
        showModal: false
    },
 
    submit: function() {
        this.setData({
        showModal: true
        })
    },
 
    preventTouchMove: function() {
 
    },
 
 
    go: function() { 
        this.setData({
        showModal: false
        })
    }
 
})

你可能感兴趣的:(应对 小程序内用户帐号登录规范调整 在授权前显示弹出框 ,模态框)