44 lines
1017 B
Vue
44 lines
1017 B
Vue
|
|
<template>
|
||
|
|
<div class="qr-container w-[40px] h-[48px] flex-c navbar-bg-hover" @mouseenter="showQr = true"
|
||
|
|
@mouseleave="showQr = false">
|
||
|
|
<el-icon :size="20">
|
||
|
|
<IconifyIconOffline :icon="Iphone" />
|
||
|
|
</el-icon>
|
||
|
|
<div v-if="showQr" class="qr-popover">
|
||
|
|
<ReQrcode text="http://wxshop.ab98.cn/shop-api/api/shop/wechatAuth" :options="{ width: 200 }" />
|
||
|
|
<div class="qr-tip">微信扫码访问</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script setup lang="ts">
|
||
|
|
import { ref } from 'vue'
|
||
|
|
import ReQrcode from '@/components/ReQrcode'
|
||
|
|
import Iphone from "@iconify-icons/ep/iphone";
|
||
|
|
|
||
|
|
const showQr = ref(false)
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss" scoped>
|
||
|
|
.qr-container {
|
||
|
|
position: relative;
|
||
|
|
|
||
|
|
.qr-popover {
|
||
|
|
position: absolute;
|
||
|
|
top: 100%;
|
||
|
|
right: 0;
|
||
|
|
padding: 12px;
|
||
|
|
background: #fff;
|
||
|
|
border-radius: 4px;
|
||
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
||
|
|
z-index: 999;
|
||
|
|
}
|
||
|
|
|
||
|
|
.qr-tip {
|
||
|
|
text-align: center;
|
||
|
|
font-size: 12px;
|
||
|
|
color: #666;
|
||
|
|
margin-top: 8px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|