Spaces:
Runtime error
Runtime error
<script setup lang="ts"> | |
import { NButton, NModal } from 'naive-ui' | |
const { show } = defineProps<{ | |
show: boolean | |
}>() | |
const emit = defineEmits<{ | |
(event: 'increase'): void | |
}>() | |
</script> | |
<template> | |
<NModal :show="show"> | |
<div class="card"> | |
<div class="title"> | |
❤️ ❤️️如果你觉得这个项目对你有帮助,并且情况允许的话,可以给我一点点支持,非常感谢支持~ | |
</div> | |
<div class="pics"> | |
<div class="item"> | |
<img src="./qr-wx.png" alt="qr-img"> | |
<div class="color-green"> | |
微信 | |
</div> | |
</div> | |
<div class="item"> | |
<img src="./qr-zfb.png" alt="qr-img"> | |
<div class="color-blue"> | |
支付宝 | |
</div> | |
</div> | |
</div> | |
<div class="foot"> | |
<NButton type="success" size="large" block style="font-size: 18px;" @click="emit('increase')"> | |
知道了🐶 | |
</NButton> | |
</div> | |
</div> | |
</NModal> | |
</template> | |
<style scoped> | |
.card { | |
border-radius: 6px; | |
background-color: #fff; | |
text-align: center; | |
max-width: 660px; | |
padding: 32px; | |
max-height: 60vh; | |
overflow: auto; | |
} | |
.title { | |
font-size: 24px; | |
} | |
.pics { | |
display: flex; | |
} | |
.item { | |
display: flex; | |
flex-direction: column; | |
align-items: center; | |
border: 1px solid #e5e5e5; | |
border-radius: 12px; | |
overflow: hidden; | |
margin: 12px 24px; | |
padding: 12px; | |
padding-bottom: 8px; | |
> img { | |
width: 300px; | |
} | |
} | |
.foot { | |
max-width: 320px; | |
margin: 0 auto; | |
margin-top: 32px; | |
} | |
.color-green { | |
color: rgb(82, 158, 70); | |
font-size: 18px; | |
font-weight: bold; | |
} | |
.color-blue { | |
color: rgb(70, 157, 225); | |
font-size: 18px; | |
font-weight: bold; | |
} | |
@media screen and (max-width: 768px) { | |
.pics { | |
display: block; | |
} | |
} | |
</style> | |