Files
Wechat/pages/dingdanxiangqing/dingdanxiangqing.wxss

337 lines
6.8 KiB
Plaintext

/* 页面整体 */
.page {
min-height: 100vh;
background: #F2F2F7;
padding-bottom: 40rpx;
}
/* 加载 */
.loading-box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 60vh;
}
.spinner {
width: 70rpx; height: 70rpx;
border: 6rpx solid #E0E0E0;
border-top-color: #007AFF;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: 20rpx;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 28rpx; color: #888; }
/* 主内容 */
.main { padding: 30rpx; }
/* 商品区块 */
.goods-box {
display: flex;
background: #fff;
border-radius: 20rpx;
padding: 25rpx;
margin-bottom: 25rpx;
box-shadow: 0 4rpx 15rpx rgba(0,0,0,0.03);
}
.goods-img {
width: 180rpx; height: 180rpx;
border-radius: 14rpx;
margin-right: 20rpx;
background: #EFEFEF;
}
.goods-text {
flex: 1;
font-size: 30rpx;
line-height: 44rpx;
color: #1A1A1A;
font-weight: 500;
}
/* 通用信息块 */
.block {
background: #FFFFFF;
border-radius: 20rpx;
padding: 30rpx 25rpx;
margin-bottom: 25rpx;
box-shadow: 0 4rpx 15rpx rgba(0,0,0,0.03);
}
.block-title {
font-size: 32rpx;
font-weight: 700;
color: #1A1A1A;
margin-bottom: 25rpx;
padding-bottom: 10rpx;
border-bottom: 1rpx solid #EFEFEF;
}
/* 行 */
.row {
display: flex;
align-items: center;
padding: 10rpx 0;
}
.row.vertical {
flex-direction: column;
align-items: flex-start;
}
.label {
font-size: 28rpx;
color: #666;
width: 160rpx;
flex-shrink: 0;
font-weight: 500;
}
.label-row {
display: flex;
justify-content: space-between;
width: 100%;
}
.value {
font-size: 28rpx;
color: #1A1A1A;
font-weight: 500;
flex: 1;
word-break: break-all;
}
.price {
color: #FF3B30;
font-weight: 700;
font-size: 32rpx;
}
.status-text {
font-weight: 700;
color: #007AFF;
}
.highlight {
color: #007AFF;
font-weight: 600;
}
/* 复制按钮 */
.copy-btn {
font-size: 24rpx;
color: #007AFF;
background: #F0F0F5;
padding: 6rpx 18rpx;
border-radius: 30rpx;
flex-shrink: 0;
margin-left: 15rpx;
}
/* 头像 */
.avatar {
width: 80rpx; height: 80rpx;
border-radius: 50%;
background: #EFEFEF;
}
/* 联系打手按钮 */
.contact-btn {
margin-top: 20rpx;
width: 100%;
height: 80rpx;
line-height: 80rpx;
text-align: center;
background: #007AFF;
color: #fff;
font-size: 30rpx;
border-radius: 40rpx;
font-weight: 600;
}
/* 九宫格图片(正方形) */
.grid-nine {
display: flex;
flex-wrap: wrap;
margin: -6rpx;
}
.grid-img {
width: 210rpx;
height: 210rpx;
margin: 6rpx;
border-radius: 10rpx;
background: #F2F2F2;
}
/* 打手留言 */
.msg-text {
background: #F9F9F9;
padding: 20rpx;
border-radius: 12rpx;
font-size: 28rpx;
color: #333;
line-height: 42rpx;
}
/* 选项 */
.options-grid {
display: flex;
flex-wrap: wrap;
margin: 15rpx 0 5rpx;
}
.option-card {
background: #F7F7F9;
border: 2rpx solid transparent;
padding: 12rpx 24rpx;
border-radius: 30rpx;
margin-right: 15rpx;
margin-bottom: 12rpx;
transition: all 0.2s;
}
.option-card.active {
background: #007AFF;
border-color: #007AFF;
color: #fff;
font-weight: 700;
box-shadow: 0 4rpx 10rpx rgba(0,122,255,0.3);
}
.option-label {
font-size: 26rpx;
color: inherit;
}
/* 解释文字(大号清晰) */
.explain-text {
font-size: 28rpx;
color: #007AFF;
font-weight: 500;
margin-top: 12rpx;
line-height: 1.6;
}
/* 标准详情链接 */
.standard-link {
font-size: 24rpx;
color: #007AFF;
text-decoration: underline;
}
/* 输入框 */
.input {
width: 100%;
height: 90rpx;
background: #F9F9F9;
border-radius: 12rpx;
border: 1rpx solid #E0E0E0;
padding: 0 18rpx;
font-size: 28rpx;
margin-top: 10rpx;
box-sizing: border-box;
}
.textarea {
width: 100%;
height: 180rpx;
background: #F9F9F9;
border-radius: 12rpx;
border: 1rpx solid #E0E0E0;
padding: 15rpx 18rpx;
font-size: 28rpx;
margin-top: 10rpx;
box-sizing: border-box;
}
.hint {
font-size: 24rpx;
color: #FF9500;
margin-top: 8rpx;
}
.count {
text-align: right;
font-size: 24rpx;
color: #999;
margin-top: 5rpx;
}
/* 结算按钮 */
.settle-btn {
margin-top: 40rpx;
margin-bottom: 40rpx;
width: 100%;
height: 90rpx;
line-height: 90rpx;
text-align: center;
background: linear-gradient(135deg, #007AFF, #5856D6);
color: #fff;
font-size: 32rpx;
font-weight: 700;
border-radius: 45rpx;
}
/* 弹窗 */
.standard-modal, .confirm-modal {
position: fixed;
top: 0; left: 0;
width: 100%; height: 100%;
background: rgba(0,0,0,0.4);
display: flex;
align-items: flex-end;
justify-content: center;
z-index: 1000;
animation: fadeIn 0.2s;
}
.modal-content {
width: 100%;
background: #fff;
border-radius: 30rpx 30rpx 0 0;
padding: 40rpx 30rpx 50rpx;
max-height: 70vh;
overflow: hidden;
}
.modal-title {
font-size: 34rpx;
font-weight: 700;
text-align: center;
margin-bottom: 30rpx;
}
.modal-body {
max-height: 50vh;
}
.standard-item {
padding: 20rpx 0;
border-bottom: 1rpx solid #F0F0F0;
}
.s-label { font-size: 28rpx; font-weight: 600; color: #1A1A1A; }
.s-desc { font-size: 26rpx; color: #666; margin-top: 8rpx; }
.modal-close {
margin-top: 25rpx;
text-align: center;
font-size: 30rpx;
color: #007AFF;
font-weight: 600;
}
/* 结算确认弹窗 */
.confirm-modal {
align-items: center;
}
.confirm-box {
width: 85%;
background: #fff;
border-radius: 24rpx;
padding: 50rpx 35rpx;
text-align: center;
box-shadow: 0 20rpx 40rpx rgba(0,0,0,0.1);
}
.confirm-title { font-size: 36rpx; font-weight: 700; color: #1A1A1A; margin-bottom: 20rpx; }
.confirm-desc { font-size: 26rpx; color: #666; margin-bottom: 40rpx; line-height: 1.6; }
.confirm-btn {
width: 100%;
height: 90rpx;
line-height: 90rpx;
background: #E0E0E0;
color: #999;
font-size: 32rpx;
border-radius: 45rpx;
margin-bottom: 20rpx;
}
.confirm-btn.active {
background: #007AFF;
color: #fff;
font-weight: 700;
box-shadow: 0 6rpx 15rpx rgba(0,122,255,0.3);
}
.cancel-btn { font-size: 28rpx; color: #888; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10rpx); } to { opacity: 1; transform: translateY(0); } }