微信小程序自定义弹窗样式====提示文字带下划线

有需求要弹窗有下划线。。。没找到方法,自己画一个
在这里插入图片描述

在这里插入图片描述
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;
}
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值