Files
Wechat/pages/fighter-order-detail/fighter-order-detail.wxss

589 lines
11 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* pages/fighter-order-detail/fighter-order-detail.wxss */
/* 页面基础样式 */
.dsddxq-page {
min-height: 100vh;
background-color: #f8f9fa;
position: relative;
box-sizing: border-box;
}
/* 加载中状态 */
.loading-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 60vh;
}
.loading-spinner {
width: 80rpx;
height: 80rpx;
border: 8rpx solid #e0e0e0;
border-top-color: #2196f3;
border-radius: 50%;
animation: spin 1.2s linear infinite;
margin-bottom: 30rpx;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.loading-text {
font-size: 30rpx;
color: #666666;
}
/* 内容区域 */
.content-container {
padding: 25rpx 25rpx 220rpx; /* 减少底部内边距,避免过多空白 */
}
/* 商品图片和介绍区域 */
.shangpin-area {
display: flex;
background-color: #ffffff;
border-radius: 20rpx;
padding: 25rpx;
margin-bottom: 25rpx;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
}
.shangpin-image-container {
flex-shrink: 0;
width: 180rpx;
height: 180rpx;
margin-right: 25rpx;
}
.shangpin-image {
width: 100%;
height: 100%;
border-radius: 12rpx;
background-color: #f5f5f5;
}
.shangpin-jieshao {
flex: 1;
display: flex;
flex-direction: column;
}
.jieshao-text {
font-size: 28rpx;
line-height: 42rpx;
color: #333333;
font-weight: 400;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
overflow: hidden;
text-overflow: ellipsis;
}
.chakan-wanzheng {
margin-top: 10rpx;
}
.chakan-wanzheng text {
font-size: 24rpx;
color: #2196f3;
text-decoration: underline;
}
/* 通用区域样式 */
.info-title {
font-size: 32rpx;
color: #333333;
font-weight: 600;
margin-bottom: 20rpx;
padding-bottom: 12rpx;
border-bottom: 2rpx solid rgba(0, 0, 0, 0.08);
}
.section-subtitle {
font-size: 28rpx;
color: #555555;
font-weight: 500;
display: block;
margin: 15rpx 0 10rpx;
}
/* 订单信息区域 */
.dingdan-info-area,
.shangjia-area,
.tuikuan-area,
.chufa-area,
.dashou-jiaofu-area,
.tijiao-area {
background-color: #ffffff;
border-radius: 20rpx;
padding: 25rpx;
margin-bottom: 25rpx;
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
}
.info-item-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 18rpx;
padding: 12rpx 0;
}
.info-item-row:last-child {
margin-bottom: 0;
}
.item-label {
font-size: 28rpx;
color: #666666;
font-weight: 400;
flex-shrink: 0;
min-width: 150rpx;
}
/* 右侧区域容器 */
.item-right-area {
flex: 1;
display: flex;
align-items: center;
justify-content: flex-end;
}
.item-value {
font-size: 28rpx;
color: #333333;
font-weight: 500;
word-break: break-all;
text-align: right;
margin-right: 15rpx;
}
/* 特殊样式 */
.jine-green {
color: #4caf50 !important;
font-weight: 600 !important;
font-size: 32rpx !important;
}
.zhuangtai-text {
font-weight: 600 !important;
font-size: 30rpx !important;
color: #333333 !important;
}
/* 按钮样式(复制、查看) */
.copy-btn,
.chakan-btn {
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
color: #4caf50;
background-color: #e8f5e9;
padding: 6rpx 16rpx;
border-radius: 20rpx;
border: 1rpx solid #4caf50;
transition: all 0.2s ease;
white-space: nowrap;
flex-shrink: 0;
}
.chakan-btn {
color: #2196f3;
background-color: #e3f2fd;
border-color: #2196f3;
margin-left: 10rpx;
}
.copy-btn-hover,
.chakan-btn:active {
background-color: #c8e6c9;
transform: scale(0.95);
}
.copy-icon {
font-size: 20rpx;
margin-right: 6rpx;
}
.copy-text {
font-weight: 500;
}
/* 打手交付图片网格 */
.jiaofu-grid {
display: flex;
flex-wrap: wrap;
margin: -5rpx;
}
.jiaofu-image-item {
width: calc(33.333% - 10rpx);
margin: 5rpx;
aspect-ratio: 1/1;
}
.jiaofu-image {
width: 100%;
height: 100%;
border-radius: 12rpx;
background-color: #f5f5f5;
transition: transform 0.2s ease;
}
.jiaofu-image:active {
transform: scale(0.95);
}
/* 留言内容样式 */
.liuyan-content {
font-size: 26rpx;
line-height: 40rpx;
color: #555555;
padding: 15rpx;
background-color: #f9f9f9;
border-radius: 12rpx;
margin-top: 8rpx;
}
/* 选择图片区域 */
.yixuan-tupian-grid {
display: flex;
flex-wrap: wrap;
margin: -8rpx;
}
.yixuan-tupian-item {
width: calc(33.333% - 16rpx);
margin: 8rpx;
aspect-ratio: 1/1;
position: relative;
}
.yixuan-tupian {
width: 100%;
height: 100%;
border-radius: 12rpx;
background-color: #f5f5f5;
}
.shanchu-btn {
position: absolute;
top: -10rpx;
right: -10rpx;
width: 40rpx;
height: 40rpx;
background-color: #ff4444;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
font-weight: bold;
z-index: 10;
}
.tianjia-btn {
width: calc(33.333% - 16rpx);
margin: 8rpx;
aspect-ratio: 1/1;
background-color: #f5f5f5;
border-radius: 12rpx;
border: 2rpx dashed #cccccc;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #666666;
}
.tianjia-icon {
font-size: 48rpx;
font-weight: 300;
margin-bottom: 10rpx;
}
.tianjia-text {
font-size: 24rpx;
margin-bottom: 4rpx;
}
.tianjia-tip {
font-size: 20rpx;
color: #999999;
}
/* 上传进度 */
.shangchuan-jindu-container {
margin-top: 20rpx;
}
.jindu-bar {
width: 100%;
height: 20rpx;
background-color: #f0f0f0;
border-radius: 10rpx;
overflow: hidden;
margin-bottom: 10rpx;
}
.jindu-fill {
height: 100%;
background-color: #4caf50;
border-radius: 10rpx;
transition: width 0.3s ease;
}
.jindu-text {
font-size: 24rpx;
color: #666666;
text-align: center;
display: block;
}
/* 留言输入 */
.liuyan-textarea {
width: 100%;
min-height: 120rpx;
font-size: 28rpx;
color: #333333;
background-color: #f9f9f9;
border-radius: 12rpx;
padding: 20rpx;
margin-top: 10rpx;
box-sizing: border-box;
}
.zi-shu {
display: block;
text-align: right;
font-size: 24rpx;
color: #999999;
margin-top: 8rpx;
}
/* ==================== 底部按钮区域 ==================== */
.bottom-btns-container {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: #ffffff;
padding: 20rpx 30rpx;
border-top: 1rpx solid #f0f0f0;
box-shadow: 0 -2rpx 20rpx rgba(0, 0, 0, 0.08);
z-index: 100;
display: flex;
flex-direction: column;
gap: 10rpx; /* 减小按钮间距 */
}
/* 🆕 新增:按钮行布局(用于并排两个按钮) */
.btn-row {
display: flex;
justify-content: space-between;
width: 100%;
}
/* 🆕 当有两个按钮时各占一半减去gap的一半 */
.btn-row .bottom-btn {
width: calc(50% - 10rpx);
}
/* 🆕 当只有一个按钮时,占满 */
.btn-row .full-width {
width: 100%;
}
/* 统一底部按钮样式 */
.bottom-btn {
width: 100%;
height: 88rpx; /* 统一高度 */
border-radius: 44rpx; /* 圆角 */
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
font-weight: 600;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
border: none;
box-sizing: border-box;
}
.btn-hover {
opacity: 0.9;
transform: scale(0.98);
}
/* 联系客服按钮 */
.contact-btn {
background-color: #2196F3;
color: #ffffff;
box-shadow: 0 4rpx 15rpx rgba(33, 150, 243, 0.3);
}
/* 🆕 新增:联系老板按钮 */
.boss-btn {
background-color: #ff9800;
color: #ffffff;
box-shadow: 0 4rpx 15rpx rgba(255, 152, 0, 0.3);
}
/* 🆕 新增:修改按钮(黑色) */
.modify-btn {
background-color: #333333;
color: #ffffff;
box-shadow: 0 4rpx 15rpx rgba(51, 51, 51, 0.3);
}
/* 🆕 新增:取消修改按钮 */
.cancel-modify-btn {
background-color: #9e9e9e;
color: #ffffff;
box-shadow: 0 4rpx 15rpx rgba(158, 158, 158, 0.3);
}
/* 🆕 新增:确认修改按钮 */
.confirm-modify-btn {
background-color: #4caf50;
color: #ffffff;
box-shadow: 0 4rpx 15rpx rgba(76, 175, 80, 0.3);
}
/* 提交按钮 */
.submit-btn {
background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
color: #ffffff;
box-shadow: 0 4rpx 15rpx rgba(76, 175, 80, 0.3);
}
/* 提交按钮闪光特效 */
.submit-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
animation: flash 2s infinite;
}
@keyframes flash {
0% { left: -100%; }
100% { left: 100%; }
}
.btn-text {
position: relative;
z-index: 1;
}
/* ==================== 弹窗样式 ==================== */
.modal-container {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
.modal-mask {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
position: relative;
width: 600rpx;
max-height: 70vh;
background-color: #ffffff;
border-radius: 20rpx;
overflow: hidden;
box-shadow: 0 10rpx 40rpx rgba(0, 0, 0, 0.15);
z-index: 1001;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30rpx;
border-bottom: 1rpx solid #f0f0f0;
}
.modal-title {
font-size: 34rpx;
color: #333333;
font-weight: 600;
}
.modal-close {
font-size: 40rpx;
color: #999999;
width: 40rpx;
height: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.modal-body {
padding: 30rpx;
max-height: 50vh;
overflow: hidden;
}
.modal-scroll {
height: 100%;
max-height: 50vh;
}
.modal-content-text {
font-size: 28rpx;
line-height: 44rpx;
color: #333333;
white-space: pre-wrap;
}
/* 响应式调整 */
@media (max-width: 375px) {
.shangpin-image-container {
width: 160rpx;
height: 160rpx;
}
.bottom-btn {
height: 80rpx;
font-size: 30rpx;
}
.item-label {
min-width: 140rpx;
font-size: 26rpx;
}
.item-value {
font-size: 26rpx;
}
.modal-content {
width: 560rpx;
}
}