feat: 替换sass版本,定义全局样式,实现简单的页面布局操作,比如颜色、边距、圆角等

This commit is contained in:
duanshuwen
2025-10-06 13:13:16 +08:00
parent e0f0e90635
commit c8e51e4975
108 changed files with 366 additions and 517 deletions

View File

@@ -45,5 +45,5 @@ const handleClick = (item) => {
</script>
<style scoped lang="scss">
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -27,8 +27,8 @@
right: 12px;
bottom: 12px;
background-color: #ffeb00;
color: #333;
font-size: 14px;
color: $uni-text-color;
font-size: $uni-font-size-base;
font-weight: 500;
padding: 4px 12px;
border-radius: 20px;

View File

@@ -41,5 +41,5 @@ onMounted(() => {
</script>
<style scoped lang="scss">
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -5,7 +5,7 @@
}
.tag-item {
background-color: #ffffff;
background-color: $uni-bg-color;
border-radius: 8px;
padding: 4px 10px;
margin-right: 8px;
@@ -17,5 +17,5 @@
.tag-text {
color: #00a6ff; /* 蓝色文字,可根据设计调整 */
font-size: 14px;
font-size: $uni-font-size-base;
}

View File

@@ -26,5 +26,5 @@ const props = defineProps({
</script>
<style scoped lang="scss">
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -69,5 +69,5 @@ const placeOrderHandle = (item) => {
</script>
<style lang="scss" scoped>
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -15,7 +15,7 @@
flex-direction: column;
align-items: start;
width: 188px;
background-color: #ffffff;
background-color: $uni-bg-color;
border-radius: 10px;
margin-right: 8px;
padding-bottom: 12px;
@@ -26,7 +26,7 @@
left: 8px;
background: #ffe7b2;
color: #b97a00;
font-size: 12px;
font-size: $uni-font-size-sm;
padding: 2px 8px;
border-radius: 4px;
z-index: 2;

View File

@@ -33,5 +33,5 @@ onMounted(() => {
</script>
<style scoped lang="scss">
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -38,5 +38,5 @@ const sendReply = (item) => {
</script>
<style lang="scss" scoped>
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -11,7 +11,7 @@
align-items: start;
width: 188px;
height: 154px;
background-color: #ffffff;
background-color: $uni-bg-color;
border-radius: 10px;
margin-right: 8px;
position: relative;
@@ -25,8 +25,8 @@
padding: 12px;
text-align: center;
font-weight: 500;
font-size: 12px;
color: #333333;
font-size: $uni-font-size-sm;
color: $uni-text-color;
}
}
}

View File

@@ -71,5 +71,5 @@ onMounted(() => {
</script>
<style scoped lang="scss">
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -62,5 +62,5 @@ onMounted(() => {
</script>
<style scoped lang="scss">
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -67,5 +67,5 @@ const placeOrderHandle = (item) => {
</script>
<style lang="scss" scoped>
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -14,7 +14,7 @@
align-items: start;
width: 188px;
// height: 244px;
background-color: #ffffff;
background-color: $uni-bg-color;
border-radius: 10px;
margin-right: 8px;
padding-bottom: 12px;
@@ -25,7 +25,7 @@
left: 8px;
background: #ffe7b2;
color: #b97a00;
font-size: 12px;
font-size: $uni-font-size-sm;
padding: 2px 8px;
border-radius: 4px;
z-index: 2;

View File

@@ -22,5 +22,5 @@ const props = defineProps({
</script>
<style scoped lang="scss">
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -37,5 +37,5 @@ const sendReply = (item) => {
</script>
<style lang="scss" scoped>
@use "./styles/index.scss";
@import "./styles/index.scss";
</style>

View File

@@ -46,8 +46,8 @@
.overlay-text {
color: #fff;
font-weight: 500;
font-size: 12px;
font-size: $uni-font-size-sm;
text-align: left;
width: 100%;
}
}
}