Files
PartsInquiry/frontend/unpackage/dist/dev/mp-weixin/pages/order/create.wxss
2025-09-27 22:57:59 +08:00

280 lines
5.5 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.

/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 藏青系主色(高亮) */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.order {
padding-bottom: 140rpx;
}
.tabs {
display: flex;
justify-content: space-around;
padding: 16rpx 24rpx;
}
.tabs text {
color: #444;
}
.tabs text.active {
color: #111;
font-weight: 700;
}
/* 三段式胶囊切换 */
.seg3 {
display: flex;
gap: 0;
margin: 12rpx 16rpx;
padding: 6rpx;
background: #fff;
border-radius: 999rpx;
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.04);
}
.seg3-item {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 8rpx;
padding: 12rpx 0;
color: #111;
border-radius: 999rpx;
transition: box-shadow 0.2s ease, background 0.2s ease;
}
/* 间隔通过内边距处理,避免空选择器 */
.seg3-item.active {
background: #fff;
color: #4C8DFF;
box-shadow: 0 3rpx 10rpx rgba(76, 141, 255, 0.16);
}
.seg3-icon {
width: 28rpx;
height: 28rpx;
opacity: 0.9;
}
.field {
display: flex;
align-items: center;
justify-content: flex-start;
padding: 22rpx 24rpx;
background: #f8faff;
gap: 16rpx;
}
.label {
width: 160rpx;
color: #444;
}
.value {
flex: 1;
color: #111;
text-align: right;
}
/* 汇总卡片:白底卡片+主色按钮 */
.summary {
display: flex;
justify-content: space-between;
align-items: center;
padding: 18rpx 20rpx;
margin: 16rpx 18rpx 10rpx;
background: none;
border-radius: 18rpx;
color: #111;
}
/* 加号改为图标按钮 */
.add {
margin: 24rpx auto 18rpx;
width: 120rpx;
height: 120rpx;
border-radius: 28rpx;
background: none;
border: 0;
color: #4C8DFF;
font-size: 72rpx;
display: flex;
align-items: center;
justify-content: center;
box-shadow: none;
}
.empty {
display: flex;
flex-direction: column;
align-items: center;
padding: 60rpx 0;
color: #444;
}
.empty-img {
width: 160rpx;
margin-bottom: 16rpx;
}
.empty-text {
margin-bottom: 8rpx;
}
.list {
background: #fff;
margin: 0 18rpx 20rpx;
border-radius: 18rpx;
overflow: hidden;
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.06);
}
.row {
display: grid;
grid-template-columns: 1.5fr 1fr 1fr 1fr;
gap: 12rpx;
padding: 18rpx 16rpx;
align-items: center;
}
.col.name {
padding-left: 12rpx;
}
.col.amount {
text-align: right;
padding-right: 12rpx;
color: #111;
}
.bottom {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: #ffffff;
padding: 6rpx 18rpx calc(env(safe-area-inset-bottom) + 2rpx);
box-shadow: 0 -4rpx 12rpx rgba(0, 0, 0, 0.16);
}
.order .bottom button {
margin: 0;
}
/* 仅限开单页底部按钮样式(缩小高度) */
.order .bottom .primary {
width: 100%;
background: #4C8DFF;
color: #fff;
border-radius: 999rpx;
padding: 14rpx 0;
font-weight: 700;
font-size: 28rpx;
}
.order .bottom .ghost {
background: transparent;
color: #4C8DFF;
border: 0;
border-radius: 999rpx;
padding: 12rpx 0;
font-size: 28rpx;
}
/* 收款/付款页样式 */
.pay-row .pay-input {
text-align: right;
color: #111;
}
.textarea {
position: relative;
padding: 16rpx 24rpx;
background: #f8faff;
}
.amount-badge {
position: absolute;
right: 24rpx;
top: -32rpx;
background: #4C8DFF;
color: #fff;
padding: 10rpx 20rpx;
border-radius: 14rpx;
font-size: 24rpx;
}
.date-mini {
position: absolute;
right: 24rpx;
bottom: 20rpx;
color: #444;
font-size: 24rpx;
}
/* 分类chips样式选中后文字变红 */
.chips {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12rpx 16rpx;
padding: 12rpx 24rpx;
}
.chip {
padding: 12rpx 20rpx;
border-radius: 999rpx;
background: #f1f1f1;
color: #444;
text-align: center;
}
.chip.active {
background: rgba(76, 141, 255, 0.15);
color: #4C8DFF;
}
/* 顶部业务 Tabs 显示 */
/* 快捷操作宫格 */
/* 信息卡片式表达(更稳重) */
.info-card {
display: grid;
grid-template-columns: 1fr 1fr auto;
gap: 10rpx;
margin: 10rpx 12rpx 0;
background: transparent;
padding: 0;
align-items: center;
}
.info-field {
background: #fff;
border: 0;
border-radius: 14rpx;
padding: 12rpx 14rpx;
box-shadow: 0 6rpx 16rpx rgba(0, 0, 0, 0.06);
}
.info-label {
color: #444;
font-size: 24rpx;
margin-right: 8rpx;
}
.info-value {
color: #111;
font-weight: 700;
}
/* 缩小“加商品”按钮尺寸,仅在本页卡片内 */
.order .info-card .info-action {
display: flex;
align-items: center;
gap: 6rpx;
background: #4C8DFF;
color: #fff;
border-radius: 12rpx;
padding: 8rpx 12rpx;
box-shadow: 0 5rpx 12rpx rgba(76, 141, 255, 0.18);
font-size: 26rpx;
}
.order .info-card .info-icon {
width: 24rpx;
height: 24rpx;
}