由于小程序多在移动端,页面较小,很多东西,不好全部直接显示,所以一些,不是必须要放在页面上的旧选择了用弹出框的形式,用户自己需要查看的时候,点击去查看详情:
效果:
直接上代码:这是wxss部分,样式可根据需要自定义
.pop_bg {
background: rgb(0, 0, 0, 0.3);
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
}
.pop_box {
background: #fff;
position: absolute;
bottom: 0;
width: 100%;
box-sizing: border-box;
padding: 0 40rpx;
color: #333;
}
.pop_content {
display: flex;
justify-content: space-around;
width: 100%;
line-height: 98rpx;
}
.label_l {
text-align: left;
font-size: 28rpx;
color: #333;
width: 50%;
}
.pop_title {
color: #6a7fa5;
font-weight: bold;
}
.flex {
display: flex;
vertical-align: middle;
}
.title_text {
display: inline-block;
}
.pop_title image {
width: 36rpx;
height: 36rpx;
margin-top: 30rpx;
margin-right: 10rpx;
}
.