微信小程序> 小程序——点击添加账户

小程序——点击添加账户

浏览量:1293 时间: 来源:小彡朱

效果示例
小程序

小程序

html代码///
小程序

css
page{
background: #f4f4f4;
}
.show-btn {
margin-top: 100rpx;
width: 80%;
background: white;
color: #696969;
border: 1px solid #303030;
}

.modal-mask {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: #000;
opacity: 0.5;
overflow: hidden;
z-index: 9000;
color: #fff;
}

.modal-dialog {
width: 540rpx;
height:419rpx;
overflow: hidden;
position: fixed;
top: 50%;
left: 0;
z-index: 9999;
background: white;
margin: -180rpx 105rpx;
border-radius: 36rpx;
}

.modal-title {
padding-top: 50rpx;
font-size: 36rpx;
color: #030303;
text-align: center;
}
.modal-ti{
font-size: 26rpx;
text-align: center;
color: #030303;
padding-top: 20rpx;
}
.modal-content {
padding: 50rpx 32rpx;
}

.modal-input .moda_1,.modal-input .moda_2 {
width: 85%;
display: flex;
background: #fff;
border-top: 2rpx solid #ddd;
margin: auto;
text-align: center;
}
.modal-input .moda_1 navigator,.modal-input .moda_2 navigator{
width: 100%;
text-align: center;
line-height: 100rpx;
font-size: 30rpx;
color: #59B550;
}
js
Page({
data: {
showModal: false,
},
onLoad: function () {
},
/**

  • 弹窗
    /
    showDialogBtn: function () {
    this.setData({
    showModal: true
    })
    },
    /
    *
  • 弹出框蒙层截断touchmove事件
    /
    preventTouchMove: function () {
    },
    /
    *
  • 隐藏模态对话框
    /
    hideModal: function () {
    this.setData({
    showModal: false
    });
    },
    /
    *
  • 对话框取消按钮点击事件
    /
    onCancel: function () {
    this.hideModal();
    },
    /
    *
  • 对话框确认按钮点击事件
    */
    onConfirm: function () {
    this.hideModal();
    }
    })

版权声明

即速应用倡导尊重与保护知识产权。如发现本站文章存在版权问题,烦请提供版权疑问、身份证明、版权证明、联系方式等发邮件至197452366@qq.com ,我们将及时处理。本站文章仅作分享交流用途,作者观点不等同于即速应用观点。用户与作者的任何交易与本站无关,请知悉。

产品经理

手机 : 13312967497

擅长 : 小程序流量变现

扫码领取礼包

热门模板

  • 头条
  • 搜狐
  • 微博
  • 百家
  • 一点资讯
  • 知乎