QrCode.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <div class="qr-code-container">
  3. <div v-if="type === '1'" class="qr-code-content">
  4. <div class="qr-code-title">
  5. 2. 添加企业微信:
  6. </div>
  7. <div class="qr-code">
  8. <img src="@/assets/images/商务合作.png" alt="">
  9. </div>
  10. </div>
  11. <div v-if="type === '2'" class="qr-code-content">
  12. <div class="qr-code">
  13. <img src="@/assets/images/商务合作.png" alt="">
  14. <div class="qr-code-title qr-code-title-small">
  15. <span>添加企业微信</span>
  16. </div>
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. name: 'QrCode',
  24. props: {
  25. type: String,
  26. default() {
  27. return '1'
  28. }
  29. },
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .qr-code-container {
  34. display: flex;
  35. width: 185px;
  36. padding: 0 20px 0 32px;
  37. .qr-code-content {
  38. padding: 0 20px;
  39. }
  40. .qr-code-title {
  41. font-size: 16px;
  42. line-height: 24px;
  43. color: #1d1d1d;
  44. &-small {
  45. text-align: center;
  46. }
  47. }
  48. .qr-code {
  49. margin-top: 8px;
  50. padding-left: 14px;
  51. img {
  52. width: 122px;
  53. height: 122px;
  54. }
  55. }
  56. &::before {
  57. content: '';
  58. display: block;
  59. width: 1px;
  60. height: 148px;
  61. background: #ECECEC;
  62. }
  63. &::after {
  64. content: '';
  65. display: block;
  66. width: 1px;
  67. height: 148px;
  68. background: #ECECEC;
  69. }
  70. }
  71. </style>