有需求要弹窗有下划线。。。没找到方法,自己画一个
wxml
<view class="showErrorToastAafter"></view>
<view class="showErrorToast">
<view class="top">
<view class="title">提示</view>
<view class="content">
<view class="raw1">您的积分不足,<text>请完善信息</text></view>赚取积分后再参与活动哦
</view>
</view>
<view class="showErrorToastLine"></view>
<view class="bottom" hover-class="hoverclass">确定</view>
</view>
wxss
/* 活动新增,积分不足完善信息 */
.showErrorToast{
padding: 0;
margin: 0;
box-sizing: border-box;
position: absolute;
border: 1px solid #000;
width: 600rpx;
height: 340rpx;
border-radius: 30rpx;
box-sizing: border-box;
top: 50%;
left: 50%;
background: #fff;
z-index: 1;
transform: translate(-50%,-70%);
display: flex;
flex-direction: column;
align-items: center;
overflow: hidden;
}
.showErrorToast .top{
flex: 1;
padding: 0;
margin: 0;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.showErrorToast .title{
font-size: 31rpx
;
font-weight: bolder;
}
.showErrorToast .content{
color: rgb(127, 127, 127);
font-size: 31rpx;
margin-top: 30rpx;
}
.showErrorToast .raw1 text{
display: inline-block;
border-bottom: 1px solid rgb(127, 127, 127);
}
.hoverclass{
background: #ececec;
}
.showErrorToast .bottom{
padding: 0;
margin: 0;
box-sizing: border-box;
height: 90rpx;
font-weight: bolder;
color: #666;
font-size: 33rpx;
display: flex;
justify-content: center;
align-items: center;
}
.showErrorToastLine{
height: 0.5rpx;
width: 100%;
background: rgb(241, 238, 238);
}
.showErrorToastAafter{
position: fixed;
left: 0;
top: 0;
background-color: rgba(0, 0, 0, 0.596);
width: 100vw;
height: 100vh;
}