185 lines
8.2 KiB
Plaintext
185 lines
8.2 KiB
Plaintext
/* pages/sjddxq/sjddxq.wxss - 商家订单详情页样式(正方形九宫格,圆形头像) */
|
|
/* 页面全局背景 */
|
|
page { background: #f5f7fa; }
|
|
/* 页面底部留出固定栏的空间 */
|
|
.sjddxq-page { padding-bottom: 160rpx; }
|
|
|
|
/* 加载状态居中布局 */
|
|
.loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 60vh; }
|
|
/* 加载旋转动画图标 */
|
|
.loading-spinner { width: 64rpx; height: 64rpx; border: 6rpx solid #e0e0e0; border-top-color: #4caf50; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20rpx; }
|
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
/* 加载文字 */
|
|
.loading-text { color: #666; font-size: 28rpx; }
|
|
|
|
/* 内容区域的内边距 */
|
|
.content-container { padding: 24rpx; }
|
|
|
|
/* 通用卡片样式 */
|
|
.card { background: #fff; border-radius: 24rpx; padding: 28rpx; margin-bottom: 24rpx; box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.04); }
|
|
/* 卡片标题样式 */
|
|
.card-title { font-size: 32rpx; font-weight: 600; color: #1a1a1a; margin-bottom: 20rpx; padding-bottom: 12rpx; border-bottom: 1rpx solid #f0f0f0; }
|
|
|
|
/* 商品卡片:左右布局 */
|
|
.shangpin-card { display: flex; align-items: center; }
|
|
/* 商品图片:固定宽高为正方形 */
|
|
.shangpin-img { width: 180rpx; height: 180rpx; border-radius: 16rpx; background: #f5f5f5; margin-right: 24rpx; flex-shrink: 0; }
|
|
.shangpin-text { flex: 1; }
|
|
.jieshao-text { font-size: 28rpx; color: #333; line-height: 1.6; }
|
|
|
|
/* 信息行:左右分布,底部虚线 */
|
|
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 14rpx 0; border-bottom: 1rpx dashed #f5f5f5; }
|
|
.info-row:last-child { border-bottom: none; }
|
|
.label { font-size: 28rpx; color: #888; min-width: 140rpx; }
|
|
.value { font-size: 28rpx; color: #333; text-align: right; word-break: break-all; }
|
|
.value-with-copy { display: flex; align-items: center; }
|
|
/* 复制按钮 */
|
|
.copy-btn { margin-left: 12rpx; color: #4caf50; font-size: 26rpx; padding: 4rpx 12rpx; background: #e8f5e9; border-radius: 16rpx; }
|
|
/* 红色价格 */
|
|
.price-red { color: #ff4444; font-weight: 600; }
|
|
.zhuangtai-text { font-weight: 600; }
|
|
|
|
/* 打手卡片头部 */
|
|
.dashou-header { display: flex; align-items: center; }
|
|
/* 打手头像:固定宽高,圆形 */
|
|
.dashou-avatar { width: 88rpx; height: 88rpx; border-radius: 50%; margin-right: 20rpx; }
|
|
.dashou-detail { flex: 1; }
|
|
.dashou-nicheng { font-size: 30rpx; font-weight: 500; margin-bottom: 6rpx; }
|
|
.dashou-id-row { display: flex; align-items: center; font-size: 26rpx; }
|
|
|
|
/* 服务详情子标题 */
|
|
.sub-title { font-size: 28rpx; color: #555; margin: 16rpx 0 8rpx; }
|
|
/* 内容框(留言、理由等) */
|
|
.content-box { background: #f9f9f9; border-radius: 12rpx; padding: 16rpx; font-size: 26rpx; color: #444; line-height: 1.5; margin-bottom: 16rpx; }
|
|
|
|
/* ========= 核心:交付图片九宫格,强制正方形 ========= */
|
|
.image-grid { display: flex; flex-wrap: wrap; margin-bottom: 16rpx; }
|
|
/* 每个图片的外层容器 */
|
|
.grid-img-wrapper {
|
|
width: calc(33.33% - 8rpx); /* 每行三个,减去间距 */
|
|
margin: 4rpx;
|
|
position: relative; /* 为绝对定位的图片提供锚点 */
|
|
overflow: hidden;
|
|
border-radius: 12rpx;
|
|
}
|
|
/* 使用伪元素撑出 1:1 的正方形高度 */
|
|
.grid-img-wrapper::after {
|
|
content: '';
|
|
display: block;
|
|
padding-bottom: 100%; /* 100% 相对于自身宽度,实现正方形 */
|
|
}
|
|
/* 图片绝对定位填满整个容器 */
|
|
.grid-img {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover; /* 保持比例裁剪,不变形 */
|
|
}
|
|
|
|
/* 结算区域:星星评分 */
|
|
.star-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20rpx; }
|
|
.stars { display: flex; }
|
|
.star { font-size: 48rpx; color: #ccc; margin-left: 8rpx; transition: all 0.2s; }
|
|
.star-active { color: #ffc107; transform: scale(1.1); }
|
|
/* 留言输入框 */
|
|
.liuyan-input { width: 100%; height: 120rpx; background: #f9f9f9; border-radius: 12rpx; padding: 16rpx; font-size: 28rpx; margin-bottom: 20rpx; }
|
|
/* 结算按钮 */
|
|
.jiesuan-btn { background: #4caf50; color: #fff; text-align: center; padding: 20rpx; border-radius: 48rpx; font-size: 30rpx; font-weight: 600; margin-top: 10rpx; }
|
|
|
|
/* 底部固定操作栏 */
|
|
.bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 16rpx 24rpx; box-shadow: 0 -4rpx 20rpx rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 12rpx; z-index: 100; }
|
|
.bottom-btn-group { display: flex; gap: 16rpx; }
|
|
.btn-outline { flex: 1; text-align: center; padding: 18rpx 0; border-radius: 44rpx; font-size: 28rpx; font-weight: 500; border: 2rpx solid #1976D2; color: #1976D2; background: #fff; }
|
|
.btn-primary { background: #2196F3; color: #fff; flex: 1; text-align: center; padding: 18rpx 0; border-radius: 44rpx; font-weight: 600; font-size: 28rpx; }
|
|
.btn-warn { background: #ff9800; color: #fff; flex: 1; text-align: center; padding: 18rpx 0; border-radius: 44rpx; font-weight: 600; font-size: 28rpx; }
|
|
.btn-danger { background: #f44336; color: #fff; flex: 1; text-align: center; padding: 18rpx 0; border-radius: 44rpx; font-weight: 600; font-size: 28rpx; }
|
|
|
|
/* 弹窗通用样式 */
|
|
.modal { 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; width: 100%; height: 100%; background: rgba(0,0,0,0.45); }
|
|
.modal-content { position: relative; width: 620rpx; background: #fff; border-radius: 32rpx; overflow: hidden; }
|
|
.modal-hd { padding: 32rpx; font-size: 34rpx; font-weight: 600; display: flex; justify-content: space-between; border-bottom: 1rpx solid #f0f0f0; }
|
|
.modal-close { color: #999; font-size: 40rpx; }
|
|
.modal-body { padding: 32rpx; }
|
|
.modal-tip { font-size: 28rpx; color: #555; margin-bottom: 12rpx; }
|
|
.modal-input { width: 100%; height: 140rpx; background: #f5f5f5; border-radius: 12rpx; padding: 16rpx; font-size: 28rpx; margin-bottom: 20rpx; }
|
|
.modal-input-num { width: 100%; height: 80rpx; background: #f5f5f5; border-radius: 12rpx; padding: 0 20rpx; font-size: 32rpx; margin-bottom: 20rpx; }
|
|
.toggle-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20rpx; }
|
|
.toggle { width: 100rpx; height: 50rpx; border-radius: 50rpx; background: #e0e0e0; display: flex; align-items: center; padding: 0 4rpx; transition: background 0.2s; }
|
|
.toggle-on { background: #4caf50; }
|
|
.toggle-knob { width: 42rpx; height: 42rpx; border-radius: 50%; background: #fff; transition: transform 0.2s; }
|
|
.toggle-on .toggle-knob { transform: translateX(50rpx); }
|
|
.fenhong-tip { text-align: center; font-size: 28rpx; color: #ff9800; margin: 16rpx 0 0; }
|
|
.modal-btns { display: flex; border-top: 1rpx solid #f0f0f0; }
|
|
.modal-btn { flex: 1; text-align: center; padding: 28rpx; font-size: 30rpx; font-weight: 500; }
|
|
.modal-btn.cancel { color: #888; background: #f5f5f5; }
|
|
.modal-btn.confirm { color: #4caf50; background: #e8f5e9; }
|
|
|
|
|
|
|
|
|
|
/* ========== 新增:罚单/订单操作按钮样式 ========== */
|
|
.fakuan-actions, .refund-actions {
|
|
display: flex;
|
|
gap: 20rpx;
|
|
margin-top: 24rpx;
|
|
padding-top: 16rpx;
|
|
border-top: 1rpx solid #f0f0f0;
|
|
}
|
|
.action-btn {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 16rpx 0;
|
|
border-radius: 44rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 500;
|
|
}
|
|
.action-modify {
|
|
background: #2196F3;
|
|
color: #fff;
|
|
}
|
|
.action-cancel {
|
|
background: #ff9800;
|
|
color: #fff;
|
|
}
|
|
.action-resubmit {
|
|
background: #4caf50;
|
|
color: #fff;
|
|
}
|
|
|
|
/* ========== 新增:教程按钮样式 ========== */
|
|
.tutorial-btn {
|
|
position: fixed;
|
|
right: 0;
|
|
top: 20%;
|
|
transform: translateY(-50%);
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
background: rgba(0, 0, 0, 0.75);
|
|
backdrop-filter: blur(15rpx);
|
|
border-radius: 60rpx 0 0 60rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 10001;
|
|
box-shadow: -8rpx 0 20rpx rgba(0,0,0,0.3);
|
|
transition: right 0.3s ease-out;
|
|
border: 2rpx solid rgba(255,215,0,0.5);
|
|
border-right: none;
|
|
}
|
|
.tutorial-btn-text {
|
|
color: #FFD700;
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
writing-mode: vertical-rl;
|
|
letter-spacing: 6rpx;
|
|
}
|
|
.tutorial-btn-hidden {
|
|
right: -80rpx;
|
|
}
|
|
.tutorial-btn-hover {
|
|
background: rgba(0, 0, 0, 0.9);
|
|
transform: translateY(-50%) scale(1.05);
|
|
} |