You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
244 lines
3.9 KiB
244 lines
3.9 KiB
/* pages/order/detail/index.wxss */
|
|
.order-detail-page {
|
|
min-height: 100vh;
|
|
background-color: #f5f5f5;
|
|
padding: 20rpx;
|
|
}
|
|
|
|
/* 加载中 */
|
|
.loading {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 120rpx 0;
|
|
background-color: #fff;
|
|
border-radius: 12rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
font-size: 32rpx;
|
|
color: #666;
|
|
}
|
|
|
|
/* 错误提示 */
|
|
.error {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 120rpx 40rpx;
|
|
background-color: #fff;
|
|
border-radius: 12rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
font-size: 32rpx;
|
|
color: #ff4d4f;
|
|
text-align: center;
|
|
}
|
|
|
|
.error button {
|
|
margin-top: 40rpx;
|
|
background-color: #1677ff;
|
|
color: #fff;
|
|
border: none;
|
|
padding: 20rpx 80rpx;
|
|
border-radius: 60rpx;
|
|
font-size: 28rpx;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 订单内容 */
|
|
.order-content {
|
|
background-color: #fff;
|
|
border-radius: 12rpx;
|
|
padding: 30rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* 订单头部 */
|
|
.order-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30rpx;
|
|
padding-bottom: 30rpx;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.order-no {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.order-date {
|
|
font-size: 26rpx;
|
|
color: #999;
|
|
}
|
|
|
|
/* 区块样式 */
|
|
.section {
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 30rpx;
|
|
color: #333;
|
|
font-weight: bold;
|
|
margin-bottom: 20rpx;
|
|
padding-left: 20rpx;
|
|
border-left: 6rpx solid #1677ff;
|
|
}
|
|
|
|
/* 客户信息 */
|
|
.customer-info {
|
|
background-color: #f9f9f9;
|
|
border-radius: 8rpx;
|
|
padding: 20rpx;
|
|
}
|
|
|
|
/* 订单摘要 */
|
|
.order-summary {
|
|
background-color: #f9f9f9;
|
|
border-radius: 8rpx;
|
|
padding: 20rpx;
|
|
}
|
|
|
|
/* 信息项 */
|
|
.info-item {
|
|
display: flex;
|
|
margin-bottom: 16rpx;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.info-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.label {
|
|
width: 140rpx;
|
|
font-size: 26rpx;
|
|
color: #666;
|
|
font-weight: bold;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.value {
|
|
flex: 1;
|
|
font-size: 26rpx;
|
|
color: #333;
|
|
word-break: break-all;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* 总金额样式 */
|
|
.total-amount {
|
|
font-size: 28rpx;
|
|
color: #ff4d4f;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 状态样式 */
|
|
.payment-status {
|
|
color: #52c41a;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.order-status {
|
|
color: #1677ff;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 产品列表 */
|
|
.products-list {
|
|
background-color: #f9f9f9;
|
|
border-radius: 8rpx;
|
|
padding: 20rpx;
|
|
}
|
|
|
|
/* 产品项 */
|
|
.product-item {
|
|
background-color: #fff;
|
|
border-radius: 8rpx;
|
|
padding: 20rpx;
|
|
margin-bottom: 16rpx;
|
|
box-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.product-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* 产品头部 */
|
|
.product-header {
|
|
margin-bottom: 16rpx;
|
|
padding-bottom: 16rpx;
|
|
border-bottom: 1rpx solid #f0f0f0;
|
|
}
|
|
|
|
.product-name {
|
|
font-size: 28rpx;
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 产品详情 */
|
|
.product-details {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 16rpx;
|
|
}
|
|
|
|
@media (max-width: 375px) {
|
|
.product-details {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* 无数据提示 */
|
|
.no-data {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 120rpx 0;
|
|
background-color: #fff;
|
|
border-radius: 12rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
font-size: 32rpx;
|
|
color: #999;
|
|
}
|
|
|
|
/* 二维码 */
|
|
.qrcode-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #f9f9f9;
|
|
border-radius: 8rpx;
|
|
padding: 40rpx;
|
|
}
|
|
|
|
.qrcode-image {
|
|
width: 300rpx;
|
|
height: 300rpx;
|
|
border-radius: 8rpx;
|
|
}
|
|
|
|
.qrcode-placeholder {
|
|
width: 300rpx;
|
|
height: 300rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #f0f0f0;
|
|
border-radius: 8rpx;
|
|
color: #999;
|
|
font-size: 24rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
.qrcode-placeholder text {
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.qrcode-placeholder text:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|