瀏覽代碼

Merge branch 'master' of http://git.ycjcjy.com/honghe/h5-draw-lots

Baozhangchao 3 年之前
父節點
當前提交
06b7453604
共有 3 個檔案被更改,包括 0 行新增103 行删除
  1. 0
    34
      src/components/Popup.vue
  2. 0
    46
      src/components/ShaerPopup.vue
  3. 0
    23
      src/components/WinningPopup.vue

+ 0
- 34
src/components/Popup.vue 查看文件

125
         this.myShareShow = false
125
         this.myShareShow = false
126
       }
126
       }
127
       this.transform()
127
       this.transform()
128
-
129
-      // if (!val) {
130
-      //   this.closeMyself()
131
-      // } else {
132
-      //   this.showSelf = val
133
-      // }
134
     }
128
     }
135
   },
129
   },
136
   created() {
130
   created() {
155
         query: { states: 0 }
149
         query: { states: 0 }
156
       })
150
       })
157
     },
151
     },
158
-    saveClick() {
159
-      this.$router.replace({
160
-        path: 'SaveShare',
161
-        query: { states: 1 }
162
-      })
163
-    },
164
     transform() {
152
     transform() {
165
       setTimeout(() => {
153
       setTimeout(() => {
166
         this.classDivAA = this.show
154
         this.classDivAA = this.show
256
   display: flex;
244
   display: flex;
257
   justify-content: center;
245
   justify-content: center;
258
   position: relative;
246
   position: relative;
259
-
260
-  .header {
261
-    padding: 15px;
262
-    text-align: center;
263
-    font-size: 18px;
264
-    font-weight: 700;
265
-    color: #333;
266
-  }
267
   .dialog-body {
247
   .dialog-body {
268
     flex: 1;
248
     flex: 1;
269
     overflow-x: hidden;
249
     overflow-x: hidden;
282
         transform-style: preserve-3d;
262
         transform-style: preserve-3d;
283
         transition: all 1.2s ease;
263
         transition: all 1.2s ease;
284
 
264
 
285
-        // div {
286
-        //   // position: relative;
287
-        //   position: absolute;
288
-        //   width: 100%;
289
-        //   height: 100%;
290
-        //   /* 背面不显示 */
291
-        //   // backface-visibility: hidden;
292
-        // }
293
         .front {
265
         .front {
294
         }
266
         }
295
         .back {
267
         .back {
296
           position: absolute;
268
           position: absolute;
297
           transform: rotateY(180deg);
269
           transform: rotateY(180deg);
298
-
299
-          // animation: change 0.8s linear forwards;
300
-        }
301
-
302
-        img {
303
-          width: 48vw;
304
         }
270
         }
305
       }
271
       }
306
       .flipped {
272
       .flipped {

+ 0
- 46
src/components/ShaerPopup.vue 查看文件

57
     show(val) {
57
     show(val) {
58
       console.log('🚀 ~ file: Popup.vue ~ line 78 ~ show ~ val', val)
58
       console.log('🚀 ~ file: Popup.vue ~ line 78 ~ show ~ val', val)
59
       this.showSelf = val
59
       this.showSelf = val
60
-
61
-      // this.closeMyself()
62
-
63
-      // if (!val) {
64
-      //   this.closeMyself()
65
-      // } else {
66
-      //   this.showSelf = val
67
-      // }
68
     }
60
     }
69
   },
61
   },
70
   created() {
62
   created() {
175
   display: flex;
167
   display: flex;
176
   justify-content: center;
168
   justify-content: center;
177
   position: relative;
169
   position: relative;
178
-
179
-  .header {
180
-    padding: 15px;
181
-    text-align: center;
182
-    font-size: 18px;
183
-    font-weight: 700;
184
-    color: #333;
185
-  }
186
   .dialog-body {
170
   .dialog-body {
187
     flex: 1;
171
     flex: 1;
188
     overflow-x: hidden;
172
     overflow-x: hidden;
200
         z-index: 45;
184
         z-index: 45;
201
         width: 280px;
185
         width: 280px;
202
         height: 464px;
186
         height: 464px;
203
-        // div {
204
-        //   // position: relative;
205
-        //   position: absolute;
206
-        //   width: 100%;
207
-        //   height: 100%;
208
-        //   /* 背面不显示 */
209
-        //   // backface-visibility: hidden;
210
-        // }
211
-
212
-        img {
213
-          width: 48vw;
214
-        }
215
-      }
216
-      .flipped {
217
-        animation: change 0.8s linear forwards;
218
-      }
219
-    }
220
-    @keyframes change {
221
-      from {
222
-        top: -20vh;
223
-        left: -20vw;
224
-        opacity: 0;
225
-        transform: scale(0.5);
226
-      }
227
-      to {
228
-        top: -0;
229
-        left: -0;
230
-        opacity: 2;
231
-        transform: scale(1);
232
-        transform: rotateY(180deg);
233
       }
187
       }
234
     }
188
     }
235
     //底部按钮
189
     //底部按钮

+ 0
- 23
src/components/WinningPopup.vue 查看文件

41
 <script>
41
 <script>
42
 export default {
42
 export default {
43
   name: 'WinningPopup',
43
   name: 'WinningPopup',
44
-  components: {},
45
   props: {
44
   props: {
46
     show: {
45
     show: {
47
       type: Boolean,
46
       type: Boolean,
49
       required: true
48
       required: true
50
     },
49
     },
51
 
50
 
52
-    cancelText: {
53
-      type: String,
54
-      default: '取消',
55
-      required: false
56
-    },
57
     currentMonth: {
51
     currentMonth: {
58
       type: Object
52
       type: Object
59
     }
53
     }
68
       classDivAA: false,
62
       classDivAA: false,
69
       myShareShow: false,
63
       myShareShow: false,
70
       backimg: require('../assets/luckyImg/2.jpg'),
64
       backimg: require('../assets/luckyImg/2.jpg'),
71
-
72
-      stater: null
73
     }
65
     }
74
   },
66
   },
75
   watch: {
67
   watch: {
76
     show(val) {
68
     show(val) {
77
-      console.log('🚀 ~ file: Popup.vue ~ line 78 ~ show ~ val', val)
78
       this.showSelf = val
69
       this.showSelf = val
79
       if (this.show === false) {
70
       if (this.show === false) {
80
         this.myShareShow = false
71
         this.myShareShow = false
92
     }
83
     }
93
   },
84
   },
94
   methods: {
85
   methods: {
95
-    canckle() {
96
-    },
97
-    shareClick() {
98
-      this.$router.replace({
99
-        path: 'SaveShare',
100
-        query: { states: 0 }
101
-      })
102
-    },
103
-    saveClick() {
104
-      this.$router.replace({
105
-        path: 'SaveShare',
106
-        query: { states: 1 }
107
-      })
108
-    },
109
     transform() {
86
     transform() {
110
       setTimeout(() => {
87
       setTimeout(() => {
111
         this.classDivAA = this.show
88
         this.classDivAA = this.show