|
@@ -7,30 +7,33 @@
|
7
|
7
|
@click="cancelPopupts"
|
8
|
8
|
></div>
|
9
|
9
|
<div>
|
10
|
|
- <div v-if="Prize!=undefined">
|
11
|
|
- <!-- 领取屏保 -->
|
12
|
|
- <div class="outer3 flex-col">
|
13
|
|
- <div class="haibao">
|
14
|
|
- <img class="haibao" src="../assets/prizeImg/MyPrize.jpg" alt />
|
15
|
|
-
|
16
|
|
- <div class="haibao-jiangping">
|
17
|
|
- <img v-if="Prize" :src="`${Prize.thumb2}`" alt />
|
18
|
|
- <h1 v-else>暂无奖品</h1>
|
|
10
|
+ <div v-show="!PrizeShow">
|
|
11
|
+ <div v-if="Prize.prizeId!=undefined">
|
|
12
|
+ <!-- 领取奖品-->
|
|
13
|
+ <div class="outer3 flex-col" style="overflow: auto;height:100vh;">
|
|
14
|
+ <div class="haibao-box" style="overflow: auto;height:100vh;">
|
|
15
|
+ <img class="haibao" src="../assets/prizeImg/MyPrize.jpg" alt />
|
|
16
|
+
|
|
17
|
+ <div class="haibao-jiangping">
|
|
18
|
+ <img v-if="Prize" :src="`${Prize.thumb2}`" alt />
|
|
19
|
+ <h1 v-else>暂无奖品</h1>
|
|
20
|
+ </div>
|
19
|
21
|
</div>
|
20
|
22
|
</div>
|
21
|
23
|
</div>
|
22
|
|
- </div>
|
23
|
|
- <div v-else style="overflow: auto;height:100vh;">
|
24
|
|
- <div class="page flex-col">
|
25
|
|
- <div class="group1 flex-col">
|
26
|
|
- <div class="wrap3 flex-col">
|
27
|
|
- <img src="../assets/prizeImg/notPrize.jpg" class="subhaibao" />
|
28
|
|
- <!-- 没有奖品 -->
|
|
24
|
+ <div v-else style="overflow: auto;height:100vh;">
|
|
25
|
+ <div class="page flex-col">
|
|
26
|
+ <div class="group1 flex-col">
|
|
27
|
+ <div class="wrap3 flex-col">
|
|
28
|
+ <img src="../assets/prizeImg/notPrize.jpg" class="subhaibao" />
|
|
29
|
+ <!-- 没有奖品 -->
|
|
30
|
+ </div>
|
29
|
31
|
</div>
|
30
|
32
|
</div>
|
31
|
33
|
</div>
|
32
|
34
|
</div>
|
33
|
|
- <div v-if="PrizeState==2" style="overflow: auto;height:100vh;">
|
|
35
|
+
|
|
36
|
+ <div v-show="PrizeShow" style="overflow: auto;height:100vh;">
|
34
|
37
|
<div class="page flex-col">
|
35
|
38
|
<div class="group1 flex-col">
|
36
|
39
|
<div class="wrap3 flex-col">
|
|
@@ -69,11 +72,11 @@ export default {
|
69
|
72
|
type: Object
|
70
|
73
|
},
|
71
|
74
|
PrizeState: {
|
72
|
|
- type: Number
|
|
75
|
+ type: [Number || Boolean]
|
73
|
76
|
},
|
74
|
77
|
Prize: {
|
75
|
|
- type: Object
|
76
|
|
- // default: () => ({})
|
|
78
|
+ type: Object,
|
|
79
|
+ default: () => ({})
|
77
|
80
|
},
|
78
|
81
|
prizeList: {
|
79
|
82
|
type: Array
|
|
@@ -87,7 +90,8 @@ export default {
|
87
|
90
|
shaerBut: require('../assets/buttonImg/sayFriend.png'),
|
88
|
91
|
pressImage: require('../assets/buttonImg/pressSave.png'),
|
89
|
92
|
shaerButRed: require('../assets/buttonImg/sayFriend.png'),
|
90
|
|
- pressLucky: require('../assets/buttonImg/happyAccept.png')
|
|
93
|
+ pressLucky: require('../assets/buttonImg/happyAccept.png'),
|
|
94
|
+ PrizeShow: null
|
91
|
95
|
}
|
92
|
96
|
},
|
93
|
97
|
|
|
@@ -110,7 +114,17 @@ export default {
|
110
|
114
|
}
|
111
|
115
|
}
|
112
|
116
|
},
|
|
117
|
+ created() {
|
|
118
|
+ this.noShowMy()
|
|
119
|
+ },
|
113
|
120
|
methods: {
|
|
121
|
+ noShowMy() {
|
|
122
|
+ let a = this.prizeList.reduce((sum, x) => x.exitsNum + sum, 0) <= 0
|
|
123
|
+ this.PrizeShow = a
|
|
124
|
+ console.log('🚀 ~ file: MyWinning.vue ~ line 119 ~ noShowMy ~ a', a)
|
|
125
|
+ // if (this.Prize.prizeId==''&& ) {
|
|
126
|
+ // }
|
|
127
|
+ },
|
114
|
128
|
/** 取消按钮操作 */
|
115
|
129
|
cancelPopupts() {
|
116
|
130
|
// this.shaerShow = false
|
|
@@ -189,8 +203,8 @@ export default {
|
189
|
203
|
|
190
|
204
|
// 内容层 z-index要比遮罩大,否则会被遮盖
|
191
|
205
|
.backhome {
|
192
|
|
- width: 85px;
|
193
|
|
- height: 42px;
|
|
206
|
+ width: 80.5px;
|
|
207
|
+ height: 37.8px;
|
194
|
208
|
position: fixed;
|
195
|
209
|
left: 1rem;
|
196
|
210
|
top: 1rem;
|
|
@@ -198,24 +212,29 @@ export default {
|
198
|
212
|
background-repeat: no-repeat !important;
|
199
|
213
|
}
|
200
|
214
|
.outer3 {
|
201
|
|
- width: 100vw;
|
|
215
|
+ width: 100%;
|
202
|
216
|
height: 100vh;
|
203
|
217
|
justify-content: flex-end;
|
204
|
|
- .haibao {
|
205
|
|
- width: 100vw;
|
|
218
|
+ .haibao-box {
|
|
219
|
+ width: 100%;
|
|
220
|
+ height: 100vh;
|
|
221
|
+
|
206
|
222
|
position: absolute;
|
207
|
223
|
left: 0;
|
208
|
224
|
top: 0;
|
|
225
|
+ .haibao {
|
|
226
|
+ width: 100%;
|
|
227
|
+ }
|
209
|
228
|
.haibao-jiangping {
|
210
|
229
|
// border: 1px solid black;
|
211
|
|
- width: 110vw;
|
212
|
|
- height: 65vw;
|
|
230
|
+ width: 100vw;
|
|
231
|
+ height: 60vw;
|
213
|
232
|
position: relative;
|
214
|
233
|
margin: 0 auto;
|
215
|
234
|
display: flex;
|
216
|
235
|
top: 18vh;
|
217
|
236
|
position: absolute;
|
218
|
|
- left: -9vw;
|
|
237
|
+ // left: -9vw;
|
219
|
238
|
img {
|
220
|
239
|
width: 100%;
|
221
|
240
|
height: 100%;
|