feat: 替换sass版本,定义全局样式,实现简单的页面布局操作,比如颜色、边距、圆角等
This commit is contained in:
@@ -63,5 +63,5 @@ const props = defineProps({
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@use "./styles/index.scss";
|
||||
@import "./styles/index.scss";
|
||||
</style>
|
||||
|
||||
@@ -17,14 +17,14 @@
|
||||
left: 24rpx;
|
||||
font-size: 20rpx;
|
||||
color: #999999;
|
||||
background: #ffffff;
|
||||
background-color: $uni-bg-color;
|
||||
padding: 0 8rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.date-box {
|
||||
padding: 20rpx 24rpx;
|
||||
background: #ffffff;
|
||||
background-color: $uni-bg-color;
|
||||
border-radius: 16rpx;
|
||||
border: 2rpx solid #f0f0f0;
|
||||
display: flex;
|
||||
@@ -41,7 +41,7 @@
|
||||
.date-text {
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
color: $uni-text-color;
|
||||
}
|
||||
|
||||
.day-text {
|
||||
@@ -61,4 +61,4 @@
|
||||
.nights-text {
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -369,5 +369,5 @@ defineExpose({
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@use "./styles/index.scss";
|
||||
@import "./styles/index.scss";
|
||||
</style>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
.header-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
color: $uni-text-color;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -64,7 +64,7 @@
|
||||
.goods-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
color: $uni-text-color;
|
||||
line-height: 22px;
|
||||
margin-bottom: 8px;
|
||||
display: -webkit-box;
|
||||
@@ -79,7 +79,7 @@
|
||||
margin-bottom: 12px;
|
||||
|
||||
.currency {
|
||||
font-size: 14px;
|
||||
font-size: $uni-font-size-base;
|
||||
color: #ff6b35;
|
||||
font-weight: 500;
|
||||
}
|
||||
@@ -92,7 +92,7 @@
|
||||
}
|
||||
|
||||
.price-desc {
|
||||
font-size: 14px;
|
||||
font-size: $uni-font-size-base;
|
||||
color: #999;
|
||||
font-weight: 400;
|
||||
margin-left: 12px;
|
||||
@@ -107,9 +107,9 @@
|
||||
}
|
||||
|
||||
.service-title {
|
||||
font-size: 14px;
|
||||
font-size: $uni-font-size-base;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
color: $uni-text-color;
|
||||
}
|
||||
|
||||
.goods-service-item {
|
||||
@@ -120,12 +120,12 @@
|
||||
|
||||
.service-label,
|
||||
.service-value {
|
||||
font-size: 14px;
|
||||
font-size: $uni-font-size-base;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.service-label {
|
||||
color: #333;
|
||||
color: $uni-text-color;
|
||||
}
|
||||
|
||||
.service-value {
|
||||
@@ -166,8 +166,8 @@
|
||||
}
|
||||
|
||||
.total-count {
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
font-size: $uni-font-size-sm;
|
||||
color: $uni-text-color;
|
||||
}
|
||||
|
||||
.total-price {
|
||||
@@ -178,7 +178,7 @@
|
||||
|
||||
&::before {
|
||||
content: "¥";
|
||||
font-size: 12px;
|
||||
font-size: $uni-font-size-sm;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,9 +47,8 @@ const facilitiesList = computed(() => {
|
||||
|
||||
return [];
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@use "./styles/index.scss";
|
||||
@import "./styles/index.scss";
|
||||
</style>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
.title {
|
||||
font-size: 16px;
|
||||
color: #333;
|
||||
color: $uni-text-color;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
flex: 0 280px;
|
||||
@@ -54,8 +54,8 @@
|
||||
border-radius: 6px;
|
||||
|
||||
.facility-text {
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
font-size: $uni-font-size-sm;
|
||||
color: $uni-text-color;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -349,5 +349,5 @@ const handleDateSelect = (data) => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@use "./styles/index.scss";
|
||||
@import "./styles/index.scss";
|
||||
</style>
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
@use "sass:color";
|
||||
|
||||
$button-color: #00a6ff;
|
||||
$button-hover-color: color.scale($button-color, $lightness: -16%);
|
||||
|
||||
.goods-container {
|
||||
display: flex;
|
||||
@@ -37,8 +34,8 @@ $button-hover-color: color.scale($button-color, $lightness: -16%);
|
||||
flex-shrink: 0;
|
||||
|
||||
.module-title {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
font-size: $uni-font-size-base;
|
||||
color: $uni-text-color;
|
||||
text-align: center;
|
||||
word-wrap: break-word;
|
||||
margin-left: 4px;
|
||||
@@ -47,7 +44,7 @@ $button-hover-color: color.scale($button-color, $lightness: -16%);
|
||||
|
||||
.module-desc {
|
||||
flex: 1;
|
||||
font-size: 12px;
|
||||
font-size: $uni-font-size-sm;
|
||||
color: #666;
|
||||
line-height: 1.5;
|
||||
margin-top: 4px;
|
||||
@@ -94,8 +91,8 @@ $button-hover-color: color.scale($button-color, $lightness: -16%);
|
||||
}
|
||||
|
||||
.label {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
font-size: $uni-font-size-base;
|
||||
color: $uni-text-color;
|
||||
}
|
||||
|
||||
.price {
|
||||
@@ -106,7 +103,7 @@ $button-hover-color: color.scale($button-color, $lightness: -16%);
|
||||
|
||||
&::before {
|
||||
content: "¥";
|
||||
font-size: 12px;
|
||||
font-size: $uni-font-size-sm;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,51 +118,12 @@ $button-hover-color: color.scale($button-color, $lightness: -16%);
|
||||
justify-content: center;
|
||||
border-radius: 50px;
|
||||
height: 42px;
|
||||
font-size: 14px;
|
||||
font-size: $uni-font-size-base;
|
||||
font-weight: 500;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s ease;
|
||||
letter-spacing: 0.5px;
|
||||
margin-left: auto;
|
||||
|
||||
// 按钮波纹效果
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 0;
|
||||
height: 0;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
border-radius: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
transition: width 0.6s, height 0.6s;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
$button-hover-color 0%,
|
||||
color.scale($button-hover-color, $lightness: -11.9%) 100%
|
||||
);
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 16px rgba($button-color, 0.4);
|
||||
|
||||
&::before {
|
||||
width: 300px;
|
||||
height: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 2px 8px rgba($button-color, 0.3);
|
||||
}
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px rgba($button-color, 0.3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user