raffleWheel.wxss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. /* 转盘组件 */
  2. /* components/raffleWheel/raffleWheel.wxss */
  3. .canvas-container {
  4. width: 90%;
  5. margin: 0 auto;
  6. position: relative;
  7. display: flex;
  8. align-items: center;
  9. justify-content: center;
  10. }
  11. .pan-bg {
  12. width: 95%;
  13. position: absolute;
  14. top: -8.2%;
  15. }
  16. .img-container {
  17. margin: 0 auto;
  18. position: absolute;
  19. display: flex;
  20. align-items: center;
  21. justify-content: center;
  22. left: 0;
  23. top: 0;
  24. z-index: 10;
  25. }
  26. .gb-wheel-run {
  27. box-shadow: 0 0 5rpx 0rpx rgba(0, 0, 0, 0.98);
  28. width: 700rpx;
  29. height: 700rpx;
  30. border-radius: 50%;
  31. border: 30rpx solid #f1ecec;
  32. box-sizing: border-box;
  33. position: absolute;
  34. left: 27rpx;
  35. top: -19rpx;
  36. opacity: 1;
  37. }
  38. .gb-wheel-content {
  39. position: relative;
  40. margin: 0 auto;
  41. z-index: 2;
  42. width: 660rpx;
  43. height: 660rpx;
  44. border-radius: 50%;
  45. opacity: 1;
  46. overflow: hidden;
  47. }
  48. .canvas-list {
  49. position: absolute;
  50. left: 0;
  51. top: 0;
  52. width: inherit;
  53. height: inherit;
  54. z-index: 8;
  55. }
  56. .canvas-item2 {
  57. position: absolute;
  58. left: 0px;
  59. top: 0;
  60. width: 660rpx;
  61. height: 328rpx;
  62. color: #e4370e;
  63. font-weight: bold;
  64. transform-origin: 330rpx 330rpx;
  65. overflow: hidden;
  66. }
  67. .canvas-item2-after {
  68. position: absolute;
  69. top: 0;
  70. left: 0;
  71. width: 330rpx;
  72. height: 330rpx;
  73. transform-origin: 330rpx 330rpx;
  74. opacity: 1;
  75. }
  76. .item-text {
  77. color: #ff6642;
  78. z-index: 100;
  79. }
  80. .gb-wheel-list {
  81. width: 100%;
  82. height: 100%;
  83. z-index: 9;
  84. }
  85. .gb-wheel-item {
  86. position: absolute;
  87. left: 0;
  88. top: 0;
  89. width: 100%;
  90. height: 100%;
  91. color: #fff;
  92. text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
  93. z-index: 90;
  94. }
  95. .gb-wheel-icontent {
  96. position: relative;
  97. display: block;
  98. padding-top: 50rpx;
  99. margin: 0 auto;
  100. text-align: center;
  101. transform-origin: 50% 328rpx;
  102. }
  103. .btn-text {
  104. width: 80rpx;
  105. color: #ff6640;
  106. font-size: 32rpx;
  107. font-weight: bold;
  108. position: absolute;
  109. left: 50%;
  110. top: 40.1%;
  111. transform: translate(-45%);
  112. padding: 20rpx;
  113. }
  114. .lucky-decorate{
  115. position: absolute;
  116. top: 65%;
  117. width: 100%;
  118. left: -2.5%;
  119. z-index: 10;
  120. }
  121. .desc{
  122. font-size: 30rpx;
  123. font-weight: bold;
  124. width: 100%;
  125. position: fixed;
  126. bottom: 3%;
  127. text-align: center;
  128. color: #fff;
  129. z-index: 99;
  130. }
  131. .orange-text{
  132. color: #FFDD52
  133. }