feat: add new features, update theme and build config

- Add 40+ new UI components including chat modules, discovery cards, photo galleries, FAQ and booking tools
- Standardize brand color across all styles by replacing $theme-color-500 SCSS variables with #0ccd58
- Add sass 1.58.3 dependency and update vite config for modern scss compiler support
- Refactor existing components (AddCarCrad, login page) and remove unused /quick/list router route
- Add utility functions for URL parameter handling
- Add static assets including custom znicons font, component images and icons
- Fix scss syntax issues and deprecation warnings
This commit is contained in:
duanshuwen
2026-05-26 22:49:52 +08:00
parent 548df7020c
commit ac8f5b5f64
159 changed files with 12439 additions and 629 deletions

View File

@@ -0,0 +1,55 @@
<template>
<div class="poi-detail-card bg-white rounded-24 border-box overflow-hidden">
<div class="poi-detail-card__hero relative">
<image class="poi-detail-card__image w-full h-full block rounded-18" :src="data.image" mode="aspectFill" />
<div class="poi-detail-card__badge flex flex-items-center gap-4 font-size-10 font-900">
<span class="poi-detail-card__badge-icon"></span>
<span>{{ data.badge?.text }}</span>
</div>
</div>
<div class="poi-detail-card__body">
<div class="poi-detail-card__title color-1E293B font-size-24 font-900">
{{ data.title }}
</div>
<div class="poi-detail-card__tip flex flex-items-center gap-10">
<div class="poi-detail-card__spark color-047857 font-size-18 font-900"></div>
<div class="poi-detail-card__tip-text color-047857 font-size-14 font-800">
{{ data.tip?.text }}
</div>
</div>
<div
class="poi-detail-card__button flex flex-items-center flex-justify-center gap-8 color-white bg-0F172A font-size-16 font-900"
:class="{ 'is-disabled': disabled }" @click="handleAction">
<span class="poi-detail-card__button-icon"></span>
<span>{{ data.action?.text }}</span>
</div>
</div>
</div>
</template>
<script setup>
const props = defineProps({
data: {
type: Object,
default: () => ({}),
},
disabled: {
type: Boolean,
default: false,
},
});
const emit = defineEmits(["action"]);
const handleAction = () => {
if (props.disabled) return;
emit("action", props.data);
};
</script>
<style scoped lang="scss">
@import "./styles/index.scss";
</style>

View File

@@ -0,0 +1,13 @@
export default {
title: "小七孔古桥",
image: "https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=900&q=80",
badge: {
text: "核心地标",
},
tip: {
text: "建于道光十五年,走过这座桥就算跨省了哦~",
},
action: {
text: "带我去",
},
};

View File

@@ -0,0 +1,69 @@
.poi-detail-card {
border: 1px solid rgba(15, 23, 42, 0.04);
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.poi-detail-card__hero {
height: 206px;
padding: 8px 8px 0;
}
.poi-detail-card__badge {
position: absolute;
top: 18px;
left: 22px;
min-height: 30px;
padding: 0 12px;
border-radius: 999px;
color: #059669;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(8px);
}
.poi-detail-card__badge-icon {
font-size: 13px;
line-height: 1;
}
.poi-detail-card__body {
padding: 18px 26px 24px;
}
.poi-detail-card__title {
line-height: 32px;
letter-spacing: 0;
}
.poi-detail-card__tip {
min-height: 46px;
margin-top: 16px;
padding: 0 14px;
border: 1px solid #d1fae5;
border-radius: 12px;
background: linear-gradient(90deg, #ecfdf5 0%, rgba(240, 253, 244, 0.34) 100%);
}
.poi-detail-card__spark {
line-height: 1;
}
.poi-detail-card__tip-text {
flex: 1;
min-width: 0;
line-height: 20px;
}
.poi-detail-card__button {
height: 54px;
margin-top: 16px;
border-radius: 14px;
}
.poi-detail-card__button.is-disabled {
opacity: 0.55;
}
.poi-detail-card__button-icon {
font-size: 18px;
line-height: 1;
}