share.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /* pages/share/share.wxss */
  2. .container {
  3. top: 0;
  4. left: 0;
  5. width: 100%;
  6. height: 100%;
  7. background-position: center center;
  8. background-size: cover;
  9. position: absolute;
  10. // padding: 90rpx 0 0;
  11. margin-top: 0;
  12. // overflow-y: scroll;
  13. z-index: 0;
  14. background: #000;
  15. &::after {
  16. content: '';
  17. display: block;
  18. height: 380rpx
  19. }
  20. .mask {
  21. position: fixed;
  22. top: 0;
  23. left: 0;
  24. opacity: 0.5;
  25. width: 100%;
  26. height: 100%;
  27. z-index: 10;
  28. filter: blur(30px);
  29. }
  30. .content {
  31. width: 540rpx;
  32. height: 60%;
  33. top: 90rpx;
  34. left: 85rpx;
  35. background: #fff;
  36. position: absolute;
  37. z-index: 10;
  38. border-radius: 15rpx;
  39. display: flex;
  40. flex-direction: column;
  41. overflow: hidden;
  42. padding: 20rpx;
  43. image {
  44. flex: 1;
  45. width: 100%;
  46. object-fit: scale-down;
  47. height: 80%;
  48. border-radius: 15rpx;
  49. }
  50. .canvas {
  51. position: absolute;
  52. right: -9999px;
  53. top: -9999px;
  54. width: 100%;
  55. height: 100%;
  56. z-index: 100;
  57. }
  58. .info {
  59. width: 100%;
  60. height: 200rpx;
  61. display: flex;
  62. flex-direction: row;
  63. padding: 10rpx 0;
  64. .txt {
  65. display: flex;
  66. flex-direction: column;
  67. flex: 1;
  68. font-size: 24rpx;
  69. justify-content: space-between;
  70. padding: 10rpx 0;
  71. .up {
  72. display: flex;
  73. flex-direction: column;
  74. .desc-title {
  75. font-size: 32rpx;
  76. line-height: 40rpx;
  77. margin-bottom: 40rpx;
  78. }
  79. }
  80. .desc-little {
  81. font-size: 20rpx;
  82. color: #666666;
  83. }
  84. }
  85. .qrcode {
  86. margin-top: 10rpx;
  87. width: 190rpx;
  88. height: 190rpx;
  89. flex: 0 0 190rpx;
  90. object-fit: contain;
  91. }
  92. }
  93. }
  94. .bottom-tools {
  95. width: 100%;
  96. background: rgba(0, 0, 0, 0.8);
  97. border-top-left-radius: 15rpx;
  98. border-top-right-radius: 15rpx;
  99. height: 340rpx;
  100. position: absolute;
  101. z-index: 10;
  102. bottom: 0;
  103. display: flex;
  104. flex-direction: column;
  105. .title {
  106. color: #fff;
  107. border: 1px solid rgba(255, 255, 255, 0.1);
  108. text-align: center;
  109. font-size: 40rpx;
  110. height: 80rpx;
  111. display: flex;
  112. justify-content: center;
  113. align-items: center;
  114. }
  115. .share_box {
  116. width: 100%;
  117. flex: 1;
  118. display: flex;
  119. flex-direction: row;
  120. padding-top: 30rpx;
  121. button {
  122. background: #2D2D2D;
  123. margin: 0 15rpx 0 30rpx;
  124. border-radius: 10px 10px 10px 10px;
  125. display: flex;
  126. flex: 1;
  127. opacity: 1;
  128. color: #fff;
  129. height: 100rpx;
  130. text-align: center;
  131. justify-content: center;
  132. align-items: center;
  133. line-height: 100rpx;
  134. &:last-child {
  135. margin: 0 30rpx 0 15rpx;
  136. }
  137. }
  138. }
  139. }
  140. }
  141. .container :not(not) {
  142. filter: none;
  143. }