static-card.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <div class="contract-card-container" :class="setClass">
  3. <div class="contract-card-title">
  4. <span class="title">联系客服,立享1V1管家式服务</span>
  5. </div>
  6. <div class="contract-card-content">
  7. <CallPhone :show-phone-label="false" class="call-phone" @handle="handle" />
  8. <QrCode :wxer="wxer" :type="type" @handle="handle" />
  9. </div>
  10. <LeaveCommon class="static-footer" />
  11. </div>
  12. </template>
  13. <script>
  14. import CallPhone from './CallPhone.vue'
  15. import QrCode from './QrCode.vue'
  16. import LeaveCommon from './footer.vue'
  17. export default {
  18. name: 'ContractCard',
  19. components: {
  20. CallPhone,
  21. QrCode,
  22. LeaveCommon
  23. },
  24. props: {
  25. type: {
  26. type: String,
  27. default: '1'
  28. },
  29. wxer: {
  30. type: String,
  31. default: ''
  32. },
  33. setClass: {
  34. type: String,
  35. default: ''
  36. }
  37. },
  38. methods: {
  39. handle() {
  40. this.$emit('handle')
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .contract-card-container {
  47. background: #FFFFFF;
  48. .contract-card-title {
  49. display: flex;
  50. flex-direction: column;
  51. align-items: flex-start;
  52. padding: 12px 20px 0;
  53. .title {
  54. font-size: 18px;
  55. line-height: 28px;
  56. color: #1D1D1D;
  57. }
  58. .subtitle {
  59. margin-top: 4px;
  60. font-size: 16px;
  61. line-height: 24px;
  62. color: #686868;
  63. }
  64. }
  65. .contract-card-content {
  66. display: flex;
  67. justify-content: center;
  68. margin: 8px 0 16px;
  69. height: 154px;
  70. ::v-deep {
  71. .qr-code-container::after {
  72. display: none;
  73. }
  74. }
  75. }
  76. .static-footer {
  77. height: 136px;
  78. background: linear-gradient(to bottom, rgba(237, 253, 255, 1), rgba(237, 253, 255, 0));
  79. ::v-deep {
  80. .leave-common-footer-content {
  81. padding: 10px 0 3px 20px;
  82. }
  83. .leave-common-footer-list {
  84. margin-top: 8px;
  85. }
  86. .leave-common-footer-item {
  87. margin-bottom: 10px;
  88. }
  89. }
  90. }
  91. &.gzzm-card {
  92. margin-bottom: 16px;
  93. .contract-card-content {
  94. padding: 0 20px;
  95. height: 100px;
  96. margin-bottom: 16px;
  97. }
  98. ::v-deep {
  99. .qr-code-title, .call-phone-title {
  100. font-size: 14px;
  101. line-height: 22px;
  102. }
  103. .qr-code-container::before {
  104. height: 100px;
  105. }
  106. .qr-code-container .qr-code {
  107. margin-top: 2px;
  108. }
  109. .qr-code-container .qr-code img {
  110. width: 76px;
  111. height: 76px;
  112. }
  113. .leave-common-footer {
  114. padding-top: 10px;
  115. }
  116. .leave-common-footer-content {
  117. padding: 0 20px;
  118. }
  119. .leave-common-footer .leave-common-footer-list .leave-common-footer-item-title {
  120. margin-left: 6px;
  121. font-size: 12px;
  122. line-height: 18px;
  123. }
  124. .leave-common-title {
  125. width: 100%;
  126. text-align: left;
  127. line-height: 24px;
  128. }
  129. .leave-common-footer-list {
  130. width: auto;
  131. }
  132. }
  133. }
  134. }
  135. </style>