QRcodePopover.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <el-popover
  3. popper-style="
  4. border: none;
  5. padding: 0px;
  6. width: 228px;
  7. height: 308px;
  8. background: linear-gradient(rgb(238, 246, 250), rgb(125, 194, 255));
  9. "
  10. placement="bottom"
  11. trigger="hover"
  12. >
  13. <template #reference>
  14. <div class="QR-btn">
  15. <!-- <el-icon :size="18"><Download /></el-icon> -->
  16. <el-button style="background-color: rgb(24, 144, 255); border: none" type="primary"
  17. >下载APP</el-button
  18. >
  19. </div>
  20. </template>
  21. <div class="QR-body">
  22. <div class="QR-text">安全管控平台</div>
  23. <div style="display: flex; flex-direction: row; align-items: center">
  24. <img src="@/assets/images/Android.png" style="width: 16px; height: 19px" />
  25. <div class="QR-text" style="font-size: 14px; padding-left: 5px">Android客户端</div>
  26. </div>
  27. <img src="@/assets/images/QRcodeExample.png" style="width: 140px" />
  28. <el-button
  29. style="width: 102px; background-color: rgb(24, 144, 255); border: none"
  30. type="primary"
  31. >保存到相册
  32. </el-button>
  33. </div>
  34. </el-popover>
  35. </template>
  36. <script lang="ts" setup>
  37. // import { Download } from '@element-plus/icons-vue';
  38. </script>
  39. <style scoped lang="scss">
  40. .QR-btn {
  41. display: flex;
  42. align-items: center;
  43. }
  44. .QR-body {
  45. display: flex;
  46. flex-direction: column;
  47. align-items: center;
  48. justify-content: space-around;
  49. height: 100%;
  50. padding: 20px;
  51. .QR-text {
  52. font-weight: 600;
  53. font-size: 20px;
  54. color: #1890ff;
  55. line-height: 28px;
  56. text-align: center;
  57. font-style: normal;
  58. }
  59. }
  60. </style>