Showing
1 changed file
with
11 additions
and
4 deletions
| ... | @@ -11,16 +11,21 @@ | ... | @@ -11,16 +11,21 @@ |
| 11 | <div class="contact-content"> | 11 | <div class="contact-content"> |
| 12 | <div class="text-tel">电话联系</div> | 12 | <div class="text-tel">电话联系</div> |
| 13 | <div> | 13 | <div> |
| 14 | - <a style="color: #1989fa" :href="`tel:${item.component_props.tel}`">{{ | 14 | + <a |
| 15 | - item.component_props.tel | 15 | + :style="{ color: styleColor.baseColor }" |
| 16 | - }}</a> | 16 | + :href="`tel:${item.component_props.tel}`" |
| 17 | + > | ||
| 18 | + {{ item.component_props.tel }} | ||
| 19 | + </a> | ||
| 17 | </div> | 20 | </div> |
| 21 | + <div v-if="item.component_props.qr_code"> | ||
| 18 | <div class="text-qr_code">微信联系</div> | 22 | <div class="text-qr_code">微信联系</div> |
| 19 | <van-image width="100" height="100" :src="item.component_props.qr_code" /> | 23 | <van-image width="100" height="100" :src="item.component_props.qr_code" /> |
| 20 | </div> | 24 | </div> |
| 25 | + </div> | ||
| 21 | <template #reference> | 26 | <template #reference> |
| 22 | <div class="wrapper"> | 27 | <div class="wrapper"> |
| 23 | - <van-icon name="phone-o" size="2rem" color="#1989fa" /> | 28 | + <van-icon name="phone-o" size="2rem" :color="styleColor.baseColor" /> |
| 24 | </div> | 29 | </div> |
| 25 | </template> | 30 | </template> |
| 26 | </van-popover> | 31 | </van-popover> |
| ... | @@ -30,6 +35,8 @@ | ... | @@ -30,6 +35,8 @@ |
| 30 | <script setup> | 35 | <script setup> |
| 31 | import { ref } from "vue"; | 36 | import { ref } from "vue"; |
| 32 | import { useRoute, useRouter } from "vue-router"; | 37 | import { useRoute, useRouter } from "vue-router"; |
| 38 | +import { styleColor } from "@/constant.js"; | ||
| 39 | + | ||
| 33 | const props = defineProps({ | 40 | const props = defineProps({ |
| 34 | item: Object, | 41 | item: Object, |
| 35 | }); | 42 | }); | ... | ... |
-
Please register or login to post a comment