Commit 8c45612a by 李伟康

style(css): 统一使用toRpx函数替换rpx单位

- 将所有CSS样式中的rpx单位替换为toRpx()函数调用
- 包括padding、margin、width、height、font-size、border-radius等属性
- 添加了新的line-height样式定义
- 统一了组件间的尺寸单位处理方式
1 parent cd4d85e5
......@@ -219,14 +219,14 @@ export default {
.popup-box {
width: 56.265985vw;
height: 79.947917vh;
border-radius: 32rpx;
border-radius: toRpx(32);
background: linear-gradient(180deg, #E6F0FF 0%, #FFFFFF 40%, #FFFFFF 100%);
.title {
font-size: 40rpx;
font-size: toRpx(40);
font-weight: 500;
color: #292D33;
height: 128rpx;
height: toRpx(128);
justify-content: center;
position: relative;
......@@ -243,26 +243,25 @@ export default {
.customer-detail {
background: #FFFFFF;
border: 2rpx solid #F5F7FA;
margin: 0 64rpx;
// height: 232rpx;
border-radius: 32rpx;
border: toRpx(2) solid #F5F7FA;
margin: 0 toRpx(64);
border-radius: toRpx(32);
display: flex;
flex-wrap: wrap;
gap: 24rpx 40rpx;
gap: toRpx(24) toRpx(40);
box-sizing: border-box;
padding: 28rpx 40rpx;
padding: toRpx(28) toRpx(40);
.customer-item {
width: calc(50% - #{toRpx(20)});
box-sizing: border-box;
font-size: 26rpx;
gap: 16rpx;
font-size: toRpx(26);
gap: toRpx(16);
display: flex;
align-items: flex-start;
.item-title {
width: 120rpx;
width: toRpx(120);
color: #999EA8;
}
......@@ -275,11 +274,11 @@ export default {
.block {
display: inline-block;
padding: 0 16rpx;
border-radius: 8rpx;
font-size: 24rpx;
line-height: 44rpx;
height: 44rpx;
padding: 0 toRpx(16);
border-radius: toRpx(8);
font-size: toRpx(24);
line-height: toRpx(44);
height: toRpx(44);
&.success {
background-color: #EAF9F1;
......@@ -306,31 +305,31 @@ export default {
}
.sub-title {
font-size: 34rpx;
font-size: toRpx(34);
font-weight: 500;
color: #292D33;
height: 124rpx;
margin: 0 64rpx;
height: toRpx(124);
margin: 0 toRpx(64);
.sprite-icon {
margin-right: 18rpx;
margin-right: toRpx(18);
}
.btn {
margin-left: auto;
background-color: #2C66F7;
color: #FFFFFF;
padding: 0 32rpx;
border-radius: 16rpx;
height: 64rpx;
line-height: 64rpx;
font-size: 28rpx;
padding: 0 toRpx(32);
border-radius: toRpx(16);
height: toRpx(64);
line-height: toRpx(64);
font-size: toRpx(28);
}
}
.p-b {
height: 28rpx;
height: toRpx(28);
}
}
.scroll-content{
......
......@@ -33,7 +33,7 @@
<view class="row-item tag-col">
<view class="tag-list" :id="`tag-list-${index}`">
<view v-for="(tag, tagIndex) in item.tagList" :key="tagIndex" class="tag"
<view v-for="(tag, tagIndex) in item.tagList" :key="tagIndex" class="tag flex"
:id="`tag-${index}-${tagIndex}`">
{{ tag }}
</view>
......@@ -188,33 +188,33 @@ export default {
display: flex;
align-items: center;
background-color: #F5F7FA;
font-size: 26rpx;
font-size: toRpx(26);
color: #6C6F75;
font-weight: 500;
height: 72rpx;
border-radius: 16rpx;
height: toRpx(72);
border-radius: toRpx(16);
.header-item {
text-align: center;
&.customer-col {
width: 588rpx;
width: toRpx(588);
}
&.order-col {
width: 226rpx;
width: toRpx(226);
}
&.tag-col {
width: 656rpx;
width: toRpx(656);
}
&.follower-col {
width: 224rpx;
width: toRpx(224);
}
&.action-col {
width: 284rpx;
width: toRpx(284);
}
}
......@@ -226,38 +226,38 @@ export default {
.table-row {
display: flex;
align-items: center;
padding: 32rpx 0;
border-bottom: 1rpx solid #F0F1F5;
padding: toRpx(32) 0;
border-bottom: toRpx(1) solid #F0F1F5;
&:last-child {
// border-bottom: none;
}
.row-item {
font-size: 26rpx;
font-size: toRpx(26);
color: #333333;
&.customer-col {
width: 588rpx;
width: toRpx(588);
box-sizing: border-box;
padding: 0 32rpx;
padding: 0 toRpx(32);
.customer-info {
display: flex;
align-items: flex-start;
.avatar {
width: 64rpx;
height: 64rpx;
width: toRpx(64);
height: toRpx(64);
border-radius: 50%;
background: #2C66F71A;
color: #2C66F7;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
font-size: toRpx(28);
font-weight: 500;
margin-right: 20rpx;
margin-right: toRpx(20);
flex-shrink: 0;
}
......@@ -268,37 +268,37 @@ export default {
.name-row {
display: flex;
align-items: center;
margin-bottom: 16rpx;
margin-bottom: toRpx(16);
.name {
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 500;
color: #1A1A2E;
margin-right: 12rpx;
margin-right: toRpx(12);
max-width: 20%;
}
.car-model {
font-size: 24rpx;
font-size: toRpx(24);
color: #6C6F75;
padding: 0 16rpx;
padding: 0 toRpx(16);
box-sizing: border-box;
border-radius: 8rpx;
border-radius: toRpx(8);
border: 1px solid #DCE1E6;
max-width: calc(80% - #{toRpx(8)});
margin-left: 8rpx;
margin-left: toRpx(8);
}
}
.phone {
font-size: 26rpx;
font-size: toRpx(26);
color: #999EA8;
margin-bottom: 16rpx;
margin-bottom: toRpx(16);
}
.customer-group {
font-size: 26rpx;
font-size: toRpx(26);
color: #999EA8;
overflow: hidden;
text-overflow: ellipsis;
......@@ -309,18 +309,18 @@ export default {
}
&.order-col {
width: 226rpx;
width: toRpx(226);
box-sizing: border-box;
padding-left: 32rpx;
padding-left: toRpx(32);
.order-status {
display: inline-block;
padding: 0 16rpx;
border-radius: 8rpx;
font-size: 24rpx;
margin-bottom: 16rpx;
line-height: 44rpx;
height: 44rpx;
padding: 0 toRpx(16);
border-radius: toRpx(8);
font-size: toRpx(24);
margin-bottom: toRpx(16);
line-height: toRpx(44);
height: toRpx(44);
&.success {
background-color: #EAF9F1;
......@@ -344,71 +344,72 @@ export default {
}
.order-date {
font-size: 26rpx;
font-size: toRpx(26);
color: #999EA8;
}
}
&.tag-col {
width: 656rpx;
width: toRpx(656);
box-sizing: border-box;
padding: 0 32rpx;
padding: 0 toRpx(32);
.tag-list {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
gap: toRpx(16);
color: #6C6F75;
font-size: 26rpx;
max-height: 100rpx;
font-size: toRpx(26);
max-height: toRpx(100);
overflow: hidden;
// align-content: center;
.tag {
padding: 0 16rpx;
border-radius: 8rpx;
border: 1px solid #DCE1E6;
padding: 0 toRpx(16);
border-radius: toRpx(8);
border: toRpx(2) solid #DCE1E6;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: toRpx(38);
}
.more-tags {
border: 1px solid #DCE1E6;
border: toRpx(2) solid #DCE1E6;
}
}
}
&.follower-col {
width: 224rpx;
font-size: 26rpx;
width: toRpx(224);
font-size: toRpx(26);
color: #292D33;
text-align: center;
word-break: break-all;
.date {
color: #999EA8;
margin-top: 10rpx;
margin-top: toRpx(10);
}
}
&.action-col {
width: 284rpx;
width: toRpx(284);
display: flex;
flex-direction: column;
gap: 20rpx;
gap: toRpx(20);
box-sizing: border-box;
padding: 0 32rpx;
padding: 0 toRpx(32);
.action-btn {
padding: 0 24rpx;
border-radius: 8rpx;
font-size: 24rpx;
padding: 0 toRpx(24);
border-radius: toRpx(8);
font-size: toRpx(24);
text-align: center;
cursor: pointer;
transition: all 0.2s;
height: 56rpx;
line-height: 56rpx;
height: toRpx(56);
line-height: toRpx(56);
box-sizing: border-box;
display: flex;
align-items: center;
......@@ -417,7 +418,7 @@ export default {
&.primary-btn {
background-color: #2C66F70D;
color: #2C66F7;
border: 2rpx solid #2C66F71A;
border: toRpx(2) solid #2C66F71A;
&:active {
background-color: #D4E4FF;
......@@ -427,7 +428,7 @@ export default {
&.secondary-btn {
background-color: #FFFFFF;
color: #292D33;
border: 2rpx solid #DCE1E6;
border: toRpx(2) solid #DCE1E6;
&:active {
background-color: #F5F7FA;
......@@ -444,6 +445,6 @@ export default {
font-size: toRpx(26);
color: #808291;
text-align: center;
line-height: 80rpx;
line-height: toRpx(80);
}
</style>
\ No newline at end of file
......@@ -164,32 +164,32 @@ export default {
</script>
<style scoped lang='scss'>
.task-item {
border-radius: 32rpx;
padding: 28rpx;
border-radius: toRpx(32);
padding: toRpx(28);
background-color: #F8FAFC;
margin: 0 64rpx 28rpx;
margin: 0 toRpx(64) toRpx(28);
&-title {
margin-bottom: 16rpx;
margin-bottom: toRpx(16);
.tag {
border: 2rpx solid #DCE1E6;
padding: 0 16rpx;
border-radius: 8rpx;
border: toRpx(2) solid #DCE1E6;
padding: 0 toRpx(16);
border-radius: toRpx(8);
color: #6C6F75;
font-size: 26rpx;
margin-right: 16rpx;
font-size: toRpx(26);
margin-right: toRpx(16);
}
.text {
font-size: 30rpx;
font-size: toRpx(30);
color: #292D33;
}
.line {
width: 2rpx;
height: 32rpx;
margin: 0 16rpx;
width: toRpx(2);
height: toRpx(32);
margin: 0 toRpx(16);
background-color: #999EA8;
}
}
......@@ -198,14 +198,14 @@ export default {
margin-left: auto;
.btn {
margin-left: 16rpx;
padding: 0 32rpx;
border-radius: 8rpx;
border: 2rpx solid #DCE1E6;
margin-left: toRpx(16);
padding: 0 toRpx(32);
border-radius: toRpx(8);
border: toRpx(2) solid #DCE1E6;
color: #292D33;
font-size: 26rpx;
height: 56rpx;
line-height: 56rpx;
font-size: toRpx(26);
height: toRpx(56);
line-height: toRpx(56);
}
.primary-btn {
......@@ -216,11 +216,11 @@ export default {
.status {
display: inline-block;
padding: 0 32rpx;
border-radius: 8rpx;
font-size: 24rpx;
line-height: 56rpx;
height: 56rpx;
padding: 0 toRpx(32);
border-radius: toRpx(8);
font-size: toRpx(24);
line-height: toRpx(56);
height: toRpx(56);
background-color: #ECECEC;
color: #999EA8;
......@@ -238,27 +238,27 @@ export default {
&-content {
background-color: #fff;
padding: 28rpx 32rpx;
border-radius: 32rpx;
padding: toRpx(28) toRpx(32);
border-radius: toRpx(32);
display: flex;
flex-wrap: wrap;
gap: 28rpx 40rpx;
gap: toRpx(28) toRpx(40);
.content-item {
width: calc(50% - 20rpx);
font-size: 26rpx;
width: calc(50% - #{toRpx(20)});
font-size: toRpx(26);
&-title {
color: #999EA8;
flex-shrink: 0;
width: 120rpx;
width: toRpx(120);
}
&-content {
width: calc(100% - 136rpx);
width: calc(100% - #{toRpx(136)});
color: #292D33;
flex-shrink: 0;
margin-left: 16rpx;
margin-left: toRpx(16);
.link {
&-text {
......@@ -266,7 +266,7 @@ export default {
}
.copy {
margin-left: 16rpx;
margin-left: toRpx(16);
color: #2C66F7;
flex-shrink: 0;
}
......@@ -274,16 +274,16 @@ export default {
.video,
.image {
width: 160rpx;
height: 160rpx;
border-radius: 16rpx;
width: toRpx(160);
height: toRpx(160);
border-radius: toRpx(16);
}
.img-box {
display: flex;
flex-wrap: wrap;
gap: 24rpx;
gap: toRpx(24);
}
}
}
......
......@@ -141,21 +141,23 @@ export default {
.customer-box {
width: 100%;
height: 100%;
padding: 32rpx 40rpx 0;
padding: toRpx(32) toRpx(40) 0;
box-sizing: border-box;
.sprite-icon {
margin-right: 8rpx;
margin-right: toRpx(8);
}
.tips {
height: 64rpx;
height: toRpx(64);
background: #2C66F70D;
padding: 0 24rpx;
font-size: 26rpx;
padding: 0 toRpx(24);
font-size: toRpx(26);
color: #6C6F75;
border-radius: 20rpx;
border-radius: toRpx(20);
.today{
line-height: toRpx(38);
}
.text {
margin-left: auto;
}
......@@ -163,15 +165,16 @@ export default {
.tabs-box {
display: flex;
margin: 28rpx 0;
gap: 28rpx;
margin: toRpx(28) 0;
gap: toRpx(28);
.tab {
height: 64rpx;
padding: 0 32rpx;
border-radius: 16rpx;
line-height: toRpx(64);
height: toRpx(64);
padding: 0 toRpx(32);
border-radius: toRpx(16);
background: #F2F2F2;
font-size: 28rpx;
font-size: toRpx(28);
color: #292D33;
justify-content: center;
transition: all 0.2s ease-in-out;
......
......@@ -169,7 +169,7 @@ export default {
font-size: toRpx(24);
justify-content: center;
background: linear-gradient(90deg, #5C8AFF 0%, #49B6FF 100%);
padding: 0 20rpx;
padding: 0 toRpx(20);
border-radius: 0 toRpx(16) 0 toRpx(16);
}
......@@ -223,8 +223,8 @@ export default {
&::after {
position: absolute;
content: '';
width: 296rpx;
height: 228rpx;
width: toRpx(296);
height: toRpx(228);
top: 0;
right: 0;
background: url('https://img02.glsx.com.cn/weapp/resource/app-tape/common/goods-status-1.webp') no-repeat center center;
......
......@@ -474,7 +474,7 @@ export default {
.img-bg-1 {
position: absolute;
width: 100%;
height: 718rpx;
height: toRpx(718);
background: #fff;
opacity: 0.6;
z-index: -1;
......@@ -483,7 +483,7 @@ export default {
.img-bg-2 {
position: absolute;
width: 100%;
height: 766rpx;
height: toRpx(766);
background: #fff;
opacity: 0.3;
z-index: -2;
......@@ -498,7 +498,7 @@ export default {
zoom: 2;
transform: translate(-50%, -50%);
z-index: -3;
filter: blur(64rpx);
filter: blur(toRpx(64));
.icon {
width: 100%;
......@@ -608,7 +608,7 @@ export default {
background: #fff;
border-radius: toRpx(16);
transition: all 0.15s;
box-shadow: 0px 2rpx 6rpx 0px #0000001A;
box-shadow: 0px toRpx(2) toRpx(6) 0px #0000001A;
}
.block-0 {
......@@ -645,14 +645,14 @@ export default {
z-index: -1;
.icon {
width: 300rpx;
height: 236rpx;
margin-bottom: 8rpx;
width: toRpx(300);
height: toRpx(236);
margin-bottom: toRpx(8);
}
.text {
font-size: 26rpx;
line-height: 28rpx;
font-size: toRpx(26);
line-height: toRpx(28);
color: #999EA8;
}
}
......
......@@ -213,17 +213,17 @@ export default {
.box {
width: 46vw;
height: 100vh;
border-radius: 32rpx 0 0 32rpx;
border-radius: toRpx(32) 0 0 toRpx(32);
background-color: #fff;
.popup-title {
height: 112rpx;
height: toRpx(112);
position: relative;
justify-content: center;
color: #333333;
font-size: 36rpx;
font-size: toRpx(36);
font-weight: 500;
line-height: 48rpx;
line-height: toRpx(48);
.text {
max-width: 50%;
......@@ -242,9 +242,9 @@ export default {
.popup-calendar {
position: relative;
height: 96rpx;
height: toRpx(96);
justify-content: center;
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 700;
color: #37393D;
......@@ -257,62 +257,62 @@ export default {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 56rpx;
height: 56rpx;
border-radius: 16rpx;
width: toRpx(56);
height: toRpx(56);
border-radius: toRpx(16);
justify-content: center;
border: 2rpx solid #DCDFE6;
border: toRpx(2) solid #DCDFE6;
font-weight: 400;
}
&-right {
right: 90rpx;
right: toRpx(90);
}
&-left {
left: 90rpx;
left: toRpx(90);
}
}
.popup-content {
height: calc(100vh - 368rpx);
height: calc(100vh - #{toRpx(368)});
overflow-y: auto;
box-sizing: border-box;
padding: 0;
.customer-list {
width: 100%;
padding: 0 16rpx;
padding: 0 toRpx(16);
.list-header {
display: flex;
align-items: center;
background-color: #EDF3FF;
padding: 0;
border-bottom: 2rpx solid #F5F7FA;
border-bottom: toRpx(2) solid #F5F7FA;
position: sticky;
top: 0;
z-index: 10;
.header-item {
font-size: 28rpx;
font-size: toRpx(28);
color: #000;
font-weight: 500;
padding: 28rpx 0 28rpx 24rpx;
padding: toRpx(28) 0 toRpx(28) toRpx(24);
}
.checkbox-col {
width: 102rpx;
min-width: 102rpx;
width: toRpx(102);
min-width: toRpx(102);
flex-shrink: 0;
display: flex;
align-items: center;
.custom-checkbox {
width: 28rpx;
height: 28rpx;
border: 2.4rpx solid #DCDFE6;
border-radius: 8rpx;
width: toRpx(28);
height: toRpx(28);
border: toRpx(2) solid #DCDFE6;
border-radius: toRpx(8);
display: flex;
align-items: center;
justify-content: center;
......@@ -330,8 +330,8 @@ export default {
border-color: #2c66f7;
.partial-indicator {
width: 16rpx;
height: 3rpx;
width: toRpx(16);
height: toRpx(3);
background-color: #ffffff;
}
}
......@@ -351,7 +351,7 @@ export default {
}
.phone-col {
width: 224rpx;
width: toRpx(224);
flex-shrink: 0;
overflow: hidden;
text-overflow: ellipsis;
......@@ -359,7 +359,7 @@ export default {
}
.car-col {
width: 208rpx;
width: toRpx(208);
flex-shrink: 0;
overflow: hidden;
text-overflow: ellipsis;
......@@ -367,7 +367,7 @@ export default {
}
.date-col {
width: 218rpx;
width: toRpx(218);
flex-shrink: 0;
overflow: hidden;
text-overflow: ellipsis;
......@@ -380,7 +380,7 @@ export default {
display: flex;
align-items: center;
padding: 0;
border-bottom: 1rpx solid #F5F7FA;
border-bottom: toRpx(2) solid #F5F7FA;
transition: background-cols;
&.selected {
......@@ -392,24 +392,24 @@ export default {
}
.row-item {
font-size: 28rpx;
font-size: toRpx(28);
color: #333333;
padding: 28rpx 0 28rpx 24rpx;
line-height: 40rpx;
padding: toRpx(28) 0 toRpx(28) toRpx(24);
line-height: toRpx(40);
}
.checkbox-col {
width: 102rpx;
min-width: 102rpx;
width: toRpx(102);
min-width: toRpx(102);
flex-shrink: 0;
display: flex;
align-items: center;
.custom-checkbox {
width: 28rpx;
height: 28rpx;
border: 2.4rpx solid #DCDFE6;
border-radius: 8rpx;
width: toRpx(28);
height: toRpx(28);
border: toRpx(2) solid #DCDFE6;
border-radius: toRpx(8);
display: flex;
align-items: center;
justify-content: center;
......@@ -427,8 +427,8 @@ export default {
border-color: #2c66f7;
.partial-indicator {
width: 16rpx;
height: 3rpx;
width: toRpx(16);
height: toRpx(3);
background-color: #ffffff;
}
}
......@@ -444,7 +444,7 @@ export default {
}
.phone-col {
width: 224rpx;
width: toRpx(224);
flex-shrink: 0;
overflow: hidden;
text-overflow: ellipsis;
......@@ -452,7 +452,7 @@ export default {
}
.car-col {
width: 208rpx;
width: toRpx(208);
flex-shrink: 0;
overflow: hidden;
text-overflow: ellipsis;
......@@ -460,7 +460,7 @@ export default {
}
.date-col {
width: 218rpx;
width: toRpx(218);
flex-shrink: 0;
overflow: hidden;
text-overflow: ellipsis;
......@@ -472,15 +472,15 @@ export default {
}
.popup-footer {
padding: 16rpx 0 64rpx 0;
padding: toRpx(16) 0 toRpx(64) 0;
justify-content: center;
gap: 0 32rpx;
margin: 0 48rpx;
gap: 0 toRpx(32);
margin: 0 toRpx(48);
.del {
border-radius: 64rpx;
border-radius: toRpx(64);
background: #2c66f71a;
padding: 20rpx 32rpx;
padding: toRpx(20) toRpx(32);
}
.popup-btn {
......@@ -488,11 +488,11 @@ export default {
align-items: center;
justify-content: center;
width: 100%;
height: 80rpx;
border-radius: 64rpx;
height: toRpx(80);
border-radius: toRpx(64);
background: #f0f1f5;
color: #333333;
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 500;
transition: all 0.2s;
}
......
......@@ -112,7 +112,7 @@ export default {
.daily-report {
height: 100%;
position: relative;
padding: 48rpx 0;
padding: toRpx(48) 0;
.common-title {
position: absolute;
top: 0;
......@@ -121,20 +121,20 @@ export default {
.report-content {
height: 100%;
overflow-y: auto;
border-radius: 32rpx;
border-radius: toRpx(32);
background: #fff;
margin: 0 48rpx;
margin: 0 toRpx(48);
box-sizing: border-box;
padding-bottom: 32rpx;
padding-bottom: toRpx(32);
}
.list-box {
padding-left: 32rpx;
padding-left: toRpx(32);
overflow-x: auto;
.list-title {
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 600;
line-height: 44rpx;
padding: 32rpx 0 24rpx;
line-height: toRpx(44);
padding: toRpx(32) 0 toRpx(24);
position: sticky;
top: 0;
z-index: 50;
......
......@@ -212,51 +212,51 @@ export default {
position: relative;
.fixed-box {
height: 144rpx;
height: toRpx(144);
box-sizing: border-box;
padding: 48rpx 48rpx 32rpx;
padding: toRpx(48) toRpx(48) toRpx(32);
position: relative;
z-index: 2;
.fixed-title {
font-size: 34rpx;
font-size: toRpx(34);
font-weight: 500;
line-height: 40rpx;
line-height: toRpx(40);
color: #292D33;
.sprite-icon {
margin-right: 18rpx;
margin-right: toRpx(18);
}
.text-primary {
margin-left: 18rpx;
margin-left: toRpx(18);
color: #2c66f7;
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 700;
}
}
.fixed-btn {
margin-left: auto;
height: 64rpx;
border-radius: 16rpx;
border: 2rpx solid #2C66F71A;
font-size: 32rpx;
height: toRpx(64);
border-radius: toRpx(16);
border: toRpx(2) solid #2C66F71A;
font-size: toRpx(32);
font-weight: 500;
color: #2C66F7;
font-size: 28rpx;
padding: 0 32rpx;
gap: 8rpx;
font-size: toRpx(28);
padding: 0 toRpx(32);
gap: toRpx(8);
background-color: #2C66F70D;
}
}
&-container {
height: calc(100% - #{toRpx(280)});
padding: 0 48rpx;
padding: 0 toRpx(48);
box-sizing: border-box;
overflow-y: auto;
// transform: translateY(48rpx);
// transform: translateY(toRpx(48));
}
.common-title {
......@@ -271,35 +271,35 @@ export default {
.list-box {
width: 100%;
border-radius: 16rpx;
border-radius: toRpx(16);
background: #fff;
padding: 0 0 32rpx 32rpx;
margin-bottom: 32rpx;
padding: 0 0 toRpx(32) toRpx(32);
margin-bottom: toRpx(32);
.list-title {
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 600;
line-height: 44rpx;
padding: 32rpx 32rpx 24rpx 0;
line-height: toRpx(44);
padding: toRpx(32) toRpx(32) toRpx(24) 0;
transition: all .25s ease-in-out;
.add {
margin-left: auto;
height: 64rpx;
padding: 20rpx 32rpx;
height: toRpx(64);
padding: toRpx(20) toRpx(32);
justify-content: center;
align-items: center;
border-radius: 32rpx;
border-radius: toRpx(32);
background: #2c66f71a;
font-size: 30rpx;
font-size: toRpx(30);
font-weight: 500;
color: #2c66f7;
&-icon {
position: relative;
width: 28rpx;
height: 28rpx;
margin-right: 10rpx;
width: toRpx(28);
height: toRpx(28);
margin-right: toRpx(10);
&::before,
&::after {
......@@ -309,17 +309,17 @@ export default {
left: 50%;
transform: translate(-50%, -50%);
background: #4673ff;
border-radius: 4rpx;
border-radius: toRpx(4);
}
&::before {
width: 4rpx;
height: 28rpx;
width: toRpx(4);
height: toRpx(28);
}
&::after {
width: 28rpx;
height: 4rpx;
width: toRpx(28);
height: toRpx(4);
}
}
}
......@@ -334,25 +334,25 @@ export default {
padding-bottom: 0;
.list-title {
padding-bottom: 32rpx;
padding-bottom: toRpx(32);
}
}
.footer {
// transform: translateY(48rpx);
height: 136rpx;
// transform: translateY(toRpx(48));
height: toRpx(136);
.btn {
margin: 0 168rpx;
margin: 0 toRpx(168);
width: 100%;
height: 80rpx;
height: toRpx(80);
display: flex;
justify-content: center;
align-items: center;
border-radius: 80rpx;
border-radius: toRpx(80);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: 28rpx;
font-size: toRpx(28);
font-weight: 500;
}
......
......@@ -137,25 +137,25 @@ export default {
.content {
height: calc(100% - #{toRpx(120)});
overflow-y: auto;
padding: 0 48rpx 32rpx;
padding: 0 toRpx(48) toRpx(32);
box-sizing: border-box;
}
.divider {
color: #333333;
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 500;
line-height: 48rpx;
margin-bottom: 24rpx;
padding-top: 16rpx;
line-height: toRpx(48);
margin-bottom: toRpx(24);
padding-top: toRpx(16);
}
.item {
display: flex;
align-items: flex-start;
gap: 32rpx;
gap: toRpx(32);
background-color: #fff;
box-sizing: border-box;
padding: 0 32rpx 16rpx;
font-size: 28rpx;
padding: 0 toRpx(32) toRpx(16);
font-size: toRpx(28);
font-weight: 400;
color: #333333;
.label,
......@@ -168,29 +168,29 @@ export default {
}
}
.item.before-divider {
padding-bottom: 28rpx;
border-radius: 0 0 16rpx 16rpx;
padding-bottom: toRpx(28);
border-radius: 0 0 toRpx(16) toRpx(16);
}
.frist {
padding-top: 28rpx;
border-radius: 16rpx 16rpx 0 0;
padding-top: toRpx(28);
border-radius: toRpx(16) toRpx(16) 0 0;
}
.group-box {
width: 100%;
margin-top: 16rpx;
margin-top: toRpx(16);
.group-title {
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 600;
line-height: 44rpx;
padding: 16rpx 0 24rpx;
line-height: toRpx(44);
padding: toRpx(16) 0 toRpx(24);
}
.group-list {
display: flex;
flex-direction: column;
gap: 12rpx;
border-radius: 16rpx;
gap: toRpx(12);
border-radius: toRpx(16);
background: #fff;
padding: 28rpx 32rpx;
padding: toRpx(28) toRpx(32);
.item {
padding: 0;
}
......
......@@ -192,17 +192,17 @@ export default {
&-container {
height: calc(100% - #{toRpx(256)});
padding: 0 48rpx;
padding: 0 toRpx(48);
box-sizing: border-box;
overflow-y: auto;
display: flex;
flex-wrap: wrap;
gap: 24rpx 32rpx;
gap: toRpx(24) toRpx(32);
align-content: start;
.list-item,
.form-item {
width: calc((100% - 32rpx) / 2);
width: calc((100% - #{toRpx(32)}) / 2);
}
.block {
......@@ -211,14 +211,14 @@ export default {
.divider {
color: #999999;
font-size: 24rpx;
line-height: 32rpx;
font-size: toRpx(24);
line-height: toRpx(32);
position: relative;
justify-content: center;
.text {
position: relative;
padding: 0 24rpx;
padding: 0 toRpx(24);
}
&::before,
......@@ -243,18 +243,18 @@ export default {
.list-box {
width: 100%;
border-radius: 32rpx;
border-radius: toRpx(32);
display: flex;
flex-wrap: wrap;
gap: 24rpx 32rpx;
gap: toRpx(24) toRpx(32);
.list-title {
color: #333333;
width: 100%;
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 500;
line-height: 48rpx;
padding: 8rpx 32rpx 0 0;
line-height: toRpx(48);
padding: toRpx(8) toRpx(32) 0 0;
}
}
......@@ -267,19 +267,19 @@ export default {
position: absolute;
width: calc(100% - #{toRpx(96)});
height: calc(100% - #{toRpx(80)});
border-radius: 32rpx;
border-radius: toRpx(32);
background: #fff;
top: 48rpx;
top: toRpx(48);
left: 50%;
transform: translateX(-50%);
padding: 0 0 32rpx 32rpx;
padding: 0 0 toRpx(32) toRpx(32);
overflow-x: auto;
.list-title {
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 600;
line-height: 44rpx;
padding: 32rpx 0 24rpx;
line-height: toRpx(44);
padding: toRpx(32) 0 toRpx(24);
position: sticky;
top: 0;
z-index: 50;
......@@ -288,19 +288,19 @@ export default {
}
.footer {
height: 136rpx;
height: toRpx(136);
.btn {
margin: 0 168rpx;
margin: 0 toRpx(168);
width: 100%;
height: 80rpx;
height: toRpx(80);
display: flex;
justify-content: center;
align-items: center;
border-radius: 80rpx;
border-radius: toRpx(80);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: 28rpx;
font-size: toRpx(28);
font-weight: 500;
}
......
......@@ -132,27 +132,27 @@ export default {
.content {
height: calc(100% - #{toRpx(120)});
overflow-y: auto;
padding: 0 48rpx 32rpx;
padding: 0 toRpx(48) toRpx(32);
box-sizing: border-box;
}
.divider {
color: #333333;
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 500;
line-height: 48rpx;
margin-bottom: 24rpx;
padding-top: 16rpx;
line-height: toRpx(48);
margin-bottom: toRpx(24);
padding-top: toRpx(16);
}
.item {
display: flex;
align-items: flex-start;
gap: 32rpx;
gap: toRpx(32);
background-color: #fff;
box-sizing: border-box;
padding: 0 32rpx 16rpx;
font-size: 28rpx;
padding: 0 toRpx(32) toRpx(16);
font-size: toRpx(28);
font-weight: 400;
color: #333333;
......@@ -168,30 +168,30 @@ export default {
}
.item.before-divider {
padding-bottom: 28rpx;
border-radius: 0 0 16rpx 16rpx;
padding-bottom: toRpx(28);
border-radius: 0 0 toRpx(16) toRpx(16);
}
.divider+.item,
.frist {
padding-top: 28rpx;
border-radius: 16rpx 16rpx 0 0;
padding-top: toRpx(28);
border-radius: toRpx(16) toRpx(16) 0 0;
}
.list-box {
// position: absolute;
width: 100%;
border-radius: 16rpx;
border-radius: toRpx(16);
background: #fff;
padding: 0 0 32rpx 32rpx;
padding: 0 0 toRpx(32) toRpx(32);
overflow-x: auto;
margin-top: 16rpx;
margin-top: toRpx(16);
.list-title {
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 600;
line-height: 44rpx;
padding: 32rpx 0 24rpx;
line-height: toRpx(44);
padding: toRpx(32) 0 toRpx(24);
}
}
}
......
......@@ -235,15 +235,15 @@ export default {
&-container {
height: calc(100% - #{toRpx(256)});
padding: 0 48rpx;
padding: 0 toRpx(48);
box-sizing: border-box;
overflow-y: auto;
display: flex;
flex-wrap: wrap;
gap: 24rpx 32rpx;
gap: toRpx(24) toRpx(32);
align-content: start;
.list-item {
width: calc(50% - 16rpx);
width: calc(50% - #{toRpx(16)});
}
.block {
......@@ -252,14 +252,14 @@ export default {
.divider {
color: #999999;
font-size: 24rpx;
line-height: 32rpx;
font-size: toRpx(24);
line-height: toRpx(32);
position: relative;
justify-content: center;
.text {
position: relative;
padding: 0 24rpx;
padding: 0 toRpx(24);
flex-shrink: 0;
}
......@@ -275,35 +275,35 @@ export default {
.list-box {
width: 100%;
border-radius: 16rpx;
border-radius: toRpx(16);
background: #fff;
padding: 0 0 32rpx 32rpx;
margin-top: 8rpx;
padding: 0 0 toRpx(32) toRpx(32);
margin-top: toRpx(8);
.list-title {
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 600;
line-height: 44rpx;
padding: 32rpx 32rpx 24rpx 0;
line-height: toRpx(44);
padding: toRpx(32) toRpx(32) toRpx(24) 0;
transition: all .25s ease-in-out;
.add {
margin-left: auto;
height: 64rpx;
padding: 20rpx 32rpx;
height: toRpx(64);
padding: toRpx(20) toRpx(32);
justify-content: center;
align-items: center;
border-radius: 32rpx;
border-radius: toRpx(32);
background: #2c66f71a;
font-size: 30rpx;
font-size: toRpx(30);
font-weight: 500;
color: #2c66f7;
&-icon {
position: relative;
width: 28rpx;
height: 28rpx;
margin-right: 10rpx;
width: toRpx(28);
height: toRpx(28);
margin-right: toRpx(10);
&::before,
&::after {
......@@ -313,17 +313,17 @@ export default {
left: 50%;
transform: translate(-50%, -50%);
background: #4673ff;
border-radius: 4rpx;
border-radius: toRpx(4);
}
&::before {
width: 4rpx;
height: 28rpx;
width: toRpx(4);
height: toRpx(28);
}
&::after {
width: 28rpx;
height: 4rpx;
width: toRpx(28);
height: toRpx(4);
}
}
}
......@@ -337,7 +337,7 @@ export default {
padding-bottom: 0;
.list-title {
padding-bottom: 32rpx;
padding-bottom: toRpx(32);
}
}
}
......@@ -346,19 +346,19 @@ export default {
position: absolute;
width: calc(100% - #{toRpx(96)});
height: calc(100% - #{toRpx(80)});
border-radius: 32rpx;
border-radius: toRpx(32);
background: #fff;
top: 48rpx;
top: toRpx(48);
left: 50%;
transform: translateX(-50%);
padding: 0 0 32rpx 32rpx;
padding: 0 0 toRpx(32) toRpx(32);
overflow-x: auto;
.list-title {
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 600;
line-height: 44rpx;
padding: 32rpx 0 24rpx;
line-height: toRpx(44);
padding: toRpx(32) 0 toRpx(24);
position: sticky;
top: 0;
z-index: 50;
......@@ -367,7 +367,7 @@ export default {
}
.footer {
height: 136rpx;
height: toRpx(136);
.footer-container {
justify-content: space-between;
......@@ -375,14 +375,14 @@ export default {
.btn {
width: calc(100% / 3 - #{toRpx(32)});
height: 80rpx;
height: toRpx(80);
display: flex;
justify-content: center;
align-items: center;
border-radius: 80rpx;
border-radius: toRpx(80);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
color: #ffffff;
font-size: 28rpx;
font-size: toRpx(28);
font-weight: 500;
}
......
......@@ -189,19 +189,19 @@ export default {
flex-direction: row;
flex-wrap: nowrap;
overflow-x: auto;
gap: 16rpx;
padding: 48rpx 48rpx 32rpx;
gap: toRpx(16);
padding: toRpx(48) toRpx(48) toRpx(32);
.name-item {
padding: 0 48rpx;
height: 72rpx;
padding: 0 toRpx(48);
height: toRpx(72);
color: #6c6f75;
font-size: 28rpx;
line-height: 40rpx;
border-radius: 16rpx;
font-size: toRpx(28);
line-height: toRpx(40);
border-radius: toRpx(16);
background: #f5f7fa;
box-sizing: border-box;
border: 2rpx solid #f5f7fa;
border: toRpx(2) solid #f5f7fa;
}
.active {
......@@ -215,17 +215,17 @@ export default {
.content {
height: calc(100% - #{toRpx(152)});
box-sizing: border-box;
margin: 0 48rpx;
padding: 0 32rpx 32rpx;
border-radius: 32rpx;
margin: 0 toRpx(48);
padding: 0 toRpx(32) toRpx(32);
border-radius: toRpx(32);
background: #fff;
overflow-y: auto;
.table-title {
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 600;
line-height: 44rpx;
padding: 32rpx 0 24rpx;
line-height: toRpx(44);
padding: toRpx(32) 0 toRpx(24);
position: sticky;
top: 0;
z-index: 50;
......@@ -235,19 +235,19 @@ export default {
}
.footer {
height: 136rpx;
height: toRpx(136);
.btn {
margin: 0 168rpx;
margin: 0 toRpx(168);
width: 100%;
height: 80rpx;
height: toRpx(80);
display: flex;
justify-content: center;
align-items: center;
border-radius: 80rpx;
border-radius: toRpx(80);
background: #3b73ff1a;
color: #4673ff;
font-size: 28rpx;
font-size: toRpx(28);
font-weight: 500;
}
}
......
......@@ -285,8 +285,8 @@ export default {
line-height: toRpx(40);
width: 100%;
flex-shrink: 0;
margin: 16rpx 0;
padding-left: 10rpx;
margin: toRpx(16) 0;
padding-left: toRpx(10);
}
.series-name {
color: #555;
......@@ -294,8 +294,8 @@ export default {
line-height: toRpx(40);
width: 100%;
flex-shrink: 0;
margin-bottom: 16rpx;
padding-left: 20rpx;
margin-bottom: toRpx(16);
padding-left: toRpx(20);
}
}
}
......@@ -306,7 +306,7 @@ export default {
display: flex;
// gap: toRpx(32) 0;
flex-wrap: wrap;
padding: 0 20rpx;
padding: 0 toRpx(20);
.item {
width: calc((100% - #{toRpx(96)}) / 4);
justify-content: center;
......@@ -317,7 +317,7 @@ export default {
position: relative;
color: #333333;
font-size: toRpx(32);
padding: 10rpx 20rpx;
padding: toRpx(10) toRpx(20);
box-sizing: border-box;
.sprite-icon {
display: none;
......
......@@ -211,17 +211,17 @@ export default {
.box {
width: 46vw;
height: 100vh;
border-radius: 32rpx 0 0 32rpx;
border-radius: toRpx(32) 0 0 toRpx(32);
background-color: #fff;
.popup-title {
height: 112rpx;
height: toRpx(112);
position: relative;
justify-content: center;
color: #333333;
font-size: 36rpx;
font-size: toRpx(36);
font-weight: 500;
line-height: 48rpx;
line-height: toRpx(48);
.popup-close {
position: absolute;
......@@ -235,19 +235,19 @@ export default {
}
.popup-content {
height: calc(100vh - 272rpx);
height: calc(100vh - #{toRpx(272)});
overflow-y: auto;
box-sizing: border-box;
padding: 16rpx 0;
padding: toRpx(16) 0;
.form-box {
margin: 0 48rpx;
padding: 32rpx;
border-radius: 24rpx;
margin: 0 toRpx(48);
padding: toRpx(32);
border-radius: toRpx(24);
background: #94c2ff33;
.form-item {
margin-bottom: 16rpx;
margin-bottom: toRpx(16);
&:last-child {
margin-bottom: 0;
......@@ -257,27 +257,27 @@ export default {
}
.popup-footer {
padding: 16rpx 0 64rpx 0;
padding: toRpx(16) 0 toRpx(64) 0;
justify-content: center;
gap: 0 32rpx;
margin: 0 48rpx;
gap: 0 toRpx(32);
margin: 0 toRpx(48);
.del {
border-radius: 64rpx;
border-radius: toRpx(64);
background: #2c66f71a;
padding: 20rpx 32rpx;
padding: toRpx(20) toRpx(32);
}
.popup-btn {
display: flex;
align-items: center;
justify-content: center;
width: 412rpx;
height: 80rpx;
border-radius: 64rpx;
width: toRpx(412);
height: toRpx(80);
border-radius: toRpx(64);
background: #f0f1f5;
color: #333333;
font-size: 32rpx;
font-size: toRpx(32);
font-weight: 500;
}
......
......@@ -24,6 +24,6 @@
align-items: center;
justify-content: center;
height: 100%;
padding: 28rpx 32rpx;
padding: toRpx(28) toRpx(32);
}
</style>
\ No newline at end of file
......@@ -315,18 +315,18 @@ export default {
<style scoped lang='scss'>
.item {
width: 100%;
height: 96rpx;
padding: 0 32rpx;
border-radius: 16rpx;
height: toRpx(96);
padding: 0 toRpx(32);
border-radius: toRpx(16);
background: #fff;
&-label {
color: #333333;
font-size: 28rpx;
font-size: toRpx(28);
font-weight: 400;
line-height: 40rpx;
line-height: toRpx(40);
flex-shrink: 0;
padding-right: 8rpx;
padding-right: toRpx(8);
.required {
color: #f24724;
......@@ -343,14 +343,14 @@ export default {
text-align: right;
.radio {
margin-left: 28rpx;
margin-left: toRpx(28);
::v-deep .uni-radio-input {
width: 28rpx;
height: 28rpx;
width: toRpx(28);
height: toRpx(28);
&:before {
font-size: 20rpx;
font-size: toRpx(20);
}
}
}
......@@ -359,7 +359,7 @@ export default {
.sprite-icon,
.unit {
flex-shrink: 0;
margin-left: 8rpx;
margin-left: toRpx(8);
}
}
......@@ -369,7 +369,7 @@ export default {
.picker,
.radio-group {
width: 100%;
font-size: 28rpx;
font-size: toRpx(28);
border: none;
&::placeholder {
......@@ -388,9 +388,9 @@ export default {
}
.textarea-item {
height: 312rpx;
height: toRpx(312);
flex-direction: column;
padding-bottom: 40rpx;
padding-bottom: toRpx(40);
box-sizing: border-box;
.item-label,
......@@ -404,16 +404,16 @@ export default {
}
.item-label {
height: 80rpx;
height: toRpx(80);
}
.item-content {
max-width: 100%;
height: 192rpx;
border-radius: 16rpx;
border: 2rpx solid #eff0f2;
height: toRpx(192);
border-radius: toRpx(16);
border: toRpx(2) solid #eff0f2;
background: #f4f5f7;
padding: 24rpx;
padding: toRpx(24);
box-sizing: border-box;
.select{
width: 100%;
......
......@@ -37,13 +37,13 @@ export default {
align-items: center;
justify-content: center;
.icon {
width: 300rpx;
height: 236rpx;
margin-bottom: 8rpx;
width: toRpx(300);
height: toRpx(236);
margin-bottom: toRpx(8);
}
.text {
font-size: 24rpx;
line-height: 28rpx;
font-size: toRpx(24);
line-height: toRpx(28);
color: #999;
}
}
......
......@@ -211,15 +211,15 @@ export default {
.table-cell {
display: table-cell;
padding: 24rpx;
padding: toRpx(24);
text-align: center;
vertical-align: middle;
font-size: 26rpx;
font-size: toRpx(26);
color: #333;
box-sizing: border-box;
border-right: 1rpx solid #fff;
max-width: 800rpx;
min-width: 200rpx;
border-right: toRpx(2) solid #fff;
max-width: toRpx(800);
min-width: toRpx(200);
}
.table-cell:last-child {
......@@ -233,8 +233,8 @@ export default {
left: 0;
z-index: 30;
background-color: #f0f4ff;
border-bottom: 2rpx solid #fff;
border-right: 1rpx solid #fff;
border-bottom: toRpx(2) solid #fff;
border-right: toRpx(2) solid #fff;
}
.required-text {
......@@ -251,9 +251,9 @@ export default {
.header-cell {
background-color: #f0f4ff;
color: #000;
font-size: 28rpx;
font-size: toRpx(28);
font-weight: 500;
border-bottom: 2rpx solid #fff;
border-bottom: toRpx(2) solid #fff;
}
.fixed-header {
......@@ -270,10 +270,10 @@ export default {
background-color: #f9fafc;
color: #303133;
text-align: left;
padding-left: 20rpx;
padding-right: 32rpx;
border-bottom: 1rpx solid #fff;
border-right: 1rpx solid #fff;
padding-left: toRpx(20);
padding-right: toRpx(32);
border-bottom: toRpx(2) solid #fff;
border-right: toRpx(2) solid #fff;
}
.fixed-left {
......@@ -285,7 +285,7 @@ export default {
// 数据单元格
.data-cell {
background-color: #f9fafc;
border-bottom: 1rpx solid #fff;
border-bottom: toRpx(2) solid #fff;
word-break: break-all;
}
......@@ -317,22 +317,22 @@ export default {
.footer-row {
width: 100%;
height: 88rpx;
padding: 16rpx 24rpx;
border-top: 2rpx solid #fff;
height: toRpx(88);
padding: toRpx(16) toRpx(24);
border-top: toRpx(2) solid #fff;
background: #f9fafc;
.add {
width: 56rpx;
height: 56rpx;
border-radius: 16rpx;
border: 1.6rpx solid #4673ff33;
width: toRpx(56);
height: toRpx(56);
border-radius: toRpx(16);
border: toRpx(2) solid #4673ff33;
background: #4673ff14;
display: flex;
align-items: center;
justify-content: center;
position: sticky;
left: 24rpx;
left: toRpx(24);
&::before,
&::after {
......@@ -342,17 +342,17 @@ export default {
left: 50%;
transform: translate(-50%, -50%);
background: #4673ff;
border-radius: 4rpx;
border-radius: toRpx(4);
}
&::before {
width: 4rpx;
height: 28rpx;
width: toRpx(4);
height: toRpx(28);
}
&::after {
width: 28rpx;
height: 4rpx;
width: toRpx(28);
height: toRpx(4);
}
}
}
......
......@@ -261,7 +261,7 @@ export default {
box-sizing: border-box;
margin: 0 toRpx(48);
// width: toRpx(988);
width: calc(100% - toRpx(96));
width: calc(100% - #{toRpx(96)});
height: toRpx(128);
border-radius: toRpx(24);
background: transparent;
......
......@@ -1242,7 +1242,7 @@ export default {
}
.list .item .order .order-value {
width: calc(100% - toRpx(136));
width: calc(100% - #{toRpx(136)});
display: flex;
align-items: center;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!