添加地址功能:手机号需要添加正则验证
This commit is contained in:
236
pages/mall/styles/confirm-order.scss
Normal file
236
pages/mall/styles/confirm-order.scss
Normal file
@@ -0,0 +1,236 @@
|
||||
.mall-confirm-order {
|
||||
padding: 32rpx 24rpx;
|
||||
|
||||
// 地址
|
||||
.address-box {
|
||||
padding: 34rpx 32rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
.wu-adres {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.left-name {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
font-weight: 500;
|
||||
.adres {
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
}
|
||||
.bottom-name {
|
||||
display: flex;
|
||||
margin-top: 32rpx;
|
||||
text {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
&:first-child {
|
||||
margin-right: 16rpx;
|
||||
padding-right: 16rpx;
|
||||
border-right: 2rpx solid #999999;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.right-box {
|
||||
height: 32rpx;
|
||||
}
|
||||
}
|
||||
|
||||
// 商品展示
|
||||
.product-box {
|
||||
margin: 16rpx 0;
|
||||
padding: 32rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.left-img {
|
||||
width: 192rpx;
|
||||
height: 192rpx;
|
||||
border-radius: 8rpx;
|
||||
flex-shrink: 0;
|
||||
margin-right: 32rpx;
|
||||
}
|
||||
.right-content {
|
||||
width: 100%;
|
||||
height: 192rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
.product-name {
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
color: #333333;
|
||||
|
||||
display: -webkit-box;
|
||||
display: box;
|
||||
-webkit-box-orient: vertical;
|
||||
box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
line-clamp: 2; /* 添加标准属性 */
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
.line-box {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
.rmb-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
text {
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
color: #eb3c39;
|
||||
// 第一个
|
||||
&:first-child {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
text-decoration-line: line-through;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.add-num {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.uni-number-box {
|
||||
width: 120rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 规格
|
||||
.spec-box {
|
||||
padding: 32rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #ffffff;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
font-weight: 500;
|
||||
.title {
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.spec-item {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 32rpx;
|
||||
text {
|
||||
padding: 8rpx 16rpx;
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
background: #f4f4f4;
|
||||
border-radius: 4rpx;
|
||||
border: 2rpx solid #f4f4f4;
|
||||
margin: 0 32rpx 16rpx 0;
|
||||
}
|
||||
.on-text {
|
||||
background: #eb1c261a;
|
||||
border-color: #eb1c26;
|
||||
color: #eb1c26;
|
||||
}
|
||||
.disabled {
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 合计
|
||||
.total-box {
|
||||
margin: 16rpx 0;
|
||||
padding: 32rpx;
|
||||
border-radius: 32rpx;
|
||||
background: #ffffff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
.name {
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.num {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
text {
|
||||
font-weight: 500;
|
||||
font-size: 24rpx;
|
||||
color: #eb1c26;
|
||||
// 最后一个
|
||||
&:last-child {
|
||||
margin-left: 10rpx;
|
||||
font-weight: bold;
|
||||
font-size: 48rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 付款方式
|
||||
.pay-way {
|
||||
border-radius: 32rpx;
|
||||
background: #ffffff;
|
||||
margin-bottom: 110rpx;
|
||||
.pay-way-item {
|
||||
padding: 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
.icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.left-icon {
|
||||
width: 37rpx;
|
||||
height: 37rpx;
|
||||
margin-right: 14rpx;
|
||||
}
|
||||
text {
|
||||
font-family: PingFang SC, PingFang SC;
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.check {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
border-radius: 34rpx;
|
||||
border: 2rpx solid #d9d9d9;
|
||||
.check-icon {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user