9.20界面
This commit is contained in:
@@ -1,59 +1,184 @@
|
||||
/**
|
||||
* 这里是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;
|
||||
}
|
||||
.subtabs {
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
padding: 0 24rpx 16rpx;
|
||||
}
|
||||
.subbtn {
|
||||
padding: 10rpx 20rpx;
|
||||
border-radius: 999rpx;
|
||||
background: #f1f1f1;
|
||||
color: #444;
|
||||
}
|
||||
.subbtn.active {
|
||||
background: #4C8DFF;
|
||||
color: #fff;
|
||||
}
|
||||
.field {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 22rpx 24rpx;
|
||||
background: #ffffff;
|
||||
border-bottom: 1rpx solid #e5e7eb;
|
||||
}
|
||||
.label {
|
||||
color: #444;
|
||||
}
|
||||
.value {
|
||||
color: #111;
|
||||
}
|
||||
.summary {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 22rpx 24rpx;
|
||||
color: #111;
|
||||
}
|
||||
.add {
|
||||
margin: 24rpx auto;
|
||||
width: 120rpx;
|
||||
height: 120rpx;
|
||||
border-radius: 20rpx;
|
||||
background: #4C8DFF;
|
||||
color: #fff;
|
||||
font-size: 72rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 60rpx 0;
|
||||
color: #444;
|
||||
}
|
||||
.empty-img {
|
||||
width: 220rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.empty-text {
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
.list {
|
||||
background: #ffffff;
|
||||
}
|
||||
.row {
|
||||
display: grid;
|
||||
grid-template-columns: 1.5fr 1fr 1fr 1fr;
|
||||
gap: 12rpx;
|
||||
padding: 16rpx 12rpx;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #e5e7eb;
|
||||
}
|
||||
.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: 16rpx 24rpx calc(env(safe-area-inset-bottom) + 16rpx);
|
||||
box-shadow: 0 -4rpx 12rpx rgba(0, 0, 0, 0.16);
|
||||
}
|
||||
.primary {
|
||||
width: 100%;
|
||||
background: #4C8DFF;
|
||||
color: #fff;
|
||||
border-radius: 999rpx;
|
||||
padding: 20rpx 0;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.order { padding-bottom: 140rpx;
|
||||
/* 收款/付款页样式 */
|
||||
.pay-row .pay-input {
|
||||
text-align: right;
|
||||
color: #111;
|
||||
}
|
||||
.tabs { display: flex; justify-content: space-around; padding: 16rpx 24rpx;
|
||||
.textarea {
|
||||
position: relative;
|
||||
padding: 16rpx 24rpx;
|
||||
background: #ffffff;
|
||||
border-top: 1rpx solid #e5e7eb;
|
||||
}
|
||||
.tabs text { color: #666;
|
||||
.amount-badge {
|
||||
position: absolute;
|
||||
right: 24rpx;
|
||||
top: -36rpx;
|
||||
background: #4C8DFF;
|
||||
color: #fff;
|
||||
padding: 8rpx 16rpx;
|
||||
border-radius: 12rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.tabs text.active { color: #333; font-weight: 700;
|
||||
.date-mini {
|
||||
position: absolute;
|
||||
right: 24rpx;
|
||||
bottom: 20rpx;
|
||||
color: #444;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.subtabs { display: flex; gap: 16rpx; padding: 0 24rpx 16rpx;
|
||||
|
||||
/* 分类chips样式:选中后文字变红 */
|
||||
.chips {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12rpx;
|
||||
padding: 12rpx 24rpx;
|
||||
}
|
||||
.subbtn { padding: 10rpx 20rpx; border-radius: 999rpx; background: #f4f4f4; color: #666;
|
||||
}
|
||||
.subbtn.active { background: #ffe69a; color: #3f320f;
|
||||
}
|
||||
.field { display:flex; justify-content: space-between; padding: 22rpx 24rpx; background: #fff; border-bottom: 1rpx solid #eee;
|
||||
}
|
||||
.label { color:#666;
|
||||
}
|
||||
.value { color:#333;
|
||||
}
|
||||
.summary { display:flex; justify-content: space-between; padding: 22rpx 24rpx; color:#333;
|
||||
}
|
||||
.add { margin: 24rpx auto; width: 120rpx; height: 120rpx; border-radius: 20rpx; background: #c7eef7; color:#16a1c4; font-size: 72rpx; display:flex; align-items:center; justify-content:center;
|
||||
}
|
||||
.empty { display:flex; flex-direction: column; align-items:center; padding: 60rpx 0; color:#888;
|
||||
}
|
||||
.empty-img { width: 220rpx; margin-bottom: 20rpx;
|
||||
}
|
||||
.empty-text { margin-bottom: 8rpx;
|
||||
}
|
||||
.list { background:#fff;
|
||||
}
|
||||
.row { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 12rpx; padding: 16rpx 12rpx; align-items:center; border-bottom: 1rpx solid #f3f3f3;
|
||||
}
|
||||
.col.name { padding-left: 12rpx;
|
||||
}
|
||||
.col.amount { text-align:right; padding-right: 12rpx; color:#333;
|
||||
}
|
||||
.bottom { position: fixed; left:0; right:0; bottom:0; background:#fff; padding: 16rpx 24rpx calc(env(safe-area-inset-bottom) + 16rpx); box-shadow: 0 -4rpx 12rpx rgba(0,0,0,0.06);
|
||||
}
|
||||
.primary { width: 100%; background: linear-gradient(135deg, #FFE69A 0%, #F4CF62 45%, #D7A72E 100%); color:#493c1b; border-radius: 999rpx; padding: 20rpx 0; font-weight:800;
|
||||
}
|
||||
/* 收款/付款页样式 */
|
||||
.pay-row .pay-input { text-align: right; color:#333;
|
||||
}
|
||||
.textarea { position: relative; padding: 16rpx 24rpx; background:#fff; border-top: 1rpx solid #eee;
|
||||
}
|
||||
.amount-badge { position: absolute; right: 24rpx; top: -36rpx; background: #d1f0ff; color:#107e9b; padding: 8rpx 16rpx; border-radius: 12rpx; font-size: 24rpx;
|
||||
}
|
||||
.date-mini { position: absolute; right: 24rpx; bottom: 20rpx; color:#666; font-size: 24rpx;
|
||||
}
|
||||
/* 分类chips样式:选中后文字变红 */
|
||||
.chips { display:flex; flex-wrap: wrap; gap: 12rpx; padding: 12rpx 24rpx;
|
||||
}
|
||||
.chip { padding: 10rpx 20rpx; border-radius: 999rpx; background: #f4f4f4; color:#666;
|
||||
}
|
||||
.chip.active { color: #e54d42;
|
||||
.chip {
|
||||
padding: 10rpx 20rpx;
|
||||
border-radius: 999rpx;
|
||||
background: #f1f1f1;
|
||||
color: #444;
|
||||
}
|
||||
.chip.active {
|
||||
background: #4C8DFF;
|
||||
color: #fff;
|
||||
}
|
||||
Reference in New Issue
Block a user