Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-12-01 14:59:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c5bd0b304b9786ad5293637c54486785cd8cfffd
c5bd0b30
1 parent
c0764543
fix 联系我们控件显示优化
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
src/components/ContactField/index.vue
src/components/ContactField/index.vue
View file @
c5bd0b3
...
...
@@ -11,16 +11,21 @@
<div class="contact-content">
<div class="text-tel">电话联系</div>
<div>
<a style="color: #1989fa" :href="`tel:${item.component_props.tel}`">{{
item.component_props.tel
}}</a>
<a
:style="{ color: styleColor.baseColor }"
:href="`tel:${item.component_props.tel}`"
>
{{ item.component_props.tel }}
</a>
</div>
<div v-if="item.component_props.qr_code">
<div class="text-qr_code">微信联系</div>
<van-image width="100" height="100" :src="item.component_props.qr_code" />
</div>
</div>
<template #reference>
<div class="wrapper">
<van-icon name="phone-o" size="2rem"
color="#1989fa
" />
<van-icon name="phone-o" size="2rem"
:color="styleColor.baseColor
" />
</div>
</template>
</van-popover>
...
...
@@ -30,6 +35,8 @@
<script setup>
import { ref } from "vue";
import { useRoute, useRouter } from "vue-router";
import { styleColor } from "@/constant.js";
const props = defineProps({
item: Object,
});
...
...
Please
register
or
login
to post a comment