绿满眶商城微信小程序-uniapp
peng
2025-08-25 55123926ff2dffb26e6b0d4228993013a40c4be8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
 
@mixin theme($property, $variable) {
    $theme: (
        'dialer_text_color': #ffb400,
        'dialer_prize_font_size': 12px,
        'dialer_prize_name_padding': 8px,
        'dialer_prize_inner_padding': 8px,
        'dialer_prize_image_size': 36px
    );
 
    $value: map-get($theme, $variable);
    #{$property}: $value;
    
    /* #ifndef APP-IOS || APP-ANDROID || APP-HARMONY */
    $css-variable: var(--#{$variable}, #{$value});
    #{$property}: #{$css-variable};
    /* #endif */
}
 
.l-dialer {
  position: relative;
 
  &__inner {
    width: 100%;
    height: 100%;
    flex:1;
    position: relative;
    /* #ifndef APP-IOS || APP-ANDROID || APP-HARMONY */
    @include theme('color', 'dialer_text_color');
    background-repeat: no-repeat;
    background-size: cover;
    // #endif
   
    box-sizing: border-box;
    // border-radius: 999px;
    overflow: visible;
    // transition: transform 3s ease;
    // transform-origin: 50% 50%;
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.250, 0.460, 0.455, 0.995);
    &-border {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      right: 0;
    }
 
    &-wrap {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 100%;
        border-radius: 999px;
        overflow: hidden;
        box-sizing: border-box;
        // background: red;
        /* #ifndef APP-IOS || APP-ANDROID || APP-HARMONY */
        &::after {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            right: 0;
            content: '';
            border-radius: 50%;
            box-shadow: 0 0 20rpx currentColor inset;
        }
        /* #endif */
    }
 
    &-item {
      overflow: hidden;
      position: absolute;
      top: -50%;
      left: 50%;
      width: 100%;
      height: 100%;
      transform-origin: 0 100%;
      z-index: 10;
    }
 
    &-content {
      position: absolute;
      @include theme('padding-top', 'dialer_prize_inner_padding');
      box-sizing: border-box;
      width: 100%;
      height: 100%;
      left: -50%;
      bottom: -50%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
 
    &-name {
      @include theme('padding-top', 'dialer_prize_name_padding');
      @include theme('padding-bottom', 'dialer_prize_name_padding');
      @include theme('font-size', 'dialer_prize_font_size');
      @include theme('color', 'dialer_text_color');
    }
 
    &-img {
      @include theme('width', 'dialer_prize_image_size');
      @include theme('height', 'dialer_prize_image_size');
    }
  }
 
  &__pointer {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
}
 
/* #ifndef APP-IOS || APP-ANDROID || APP-HARMONY */
.heart {
  animation: heart 1s infinite;
}
 
@keyframes heart {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.03);
  }
  to {
    transform: scale(1);
  }
}
/* #endif */