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:
48
src/pages/home/components/OpenMapComponent/index.vue
Normal file
48
src/pages/home/components/OpenMapComponent/index.vue
Normal file
@@ -0,0 +1,48 @@
|
||||
<template>
|
||||
<div class="w-full bg-white border-box border-ff overflow-hidden rounded-20 flex flex-col">
|
||||
<!-- 占位撑开 -->
|
||||
<div class="w-vw"></div>
|
||||
<div class="flex flex-items-center flex-justify-between p-12 border-box" @click="openMap">
|
||||
<div class="rounded-16 p-16 bg-theme-color-50">
|
||||
<div class="w-32 h-32 rounded-full bg-white flex flex-items-center flex-justify-center">
|
||||
<uni-icons type="location" size="16" color="#171717" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="center ml-12">
|
||||
<div class="font-color-900 font-size-14">打开导览地图</div>
|
||||
<div class="font-color-500 font-size-12 mt-6">距你 {{ distance }} · 步行 {{ walk }}</div>
|
||||
</div>
|
||||
<div class="ml-12 flex flex-items-center flex-justify-center w-32 h-32 rounded-full bg-F2F5F8">
|
||||
<uni-icons class="mb-2" type="right" size="12" color="#99A0AE" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'OpenMapComponent',
|
||||
props: {
|
||||
distance: {
|
||||
type: String,
|
||||
default: '500m'
|
||||
},
|
||||
walk: {
|
||||
type: String,
|
||||
default: '8分钟'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
openMap() {
|
||||
this.$emit('open')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.center {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user