|
@@ -6,38 +6,39 @@
|
6
|
6
|
:style="`background:url('${backimg}');background-size: 100% auto;`"
|
7
|
7
|
@click="cancelPopupts"
|
8
|
8
|
></div>
|
|
9
|
+
|
9
|
10
|
<div>
|
10
|
|
- <div v-if="!PrizeShow&& Prize!=undefined">
|
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
|
|
- <div class="haibao-jiangping">
|
17
|
|
- <img v-if="Prize" :src="`${Prize.thumb2}`" alt />
|
18
|
|
- <h1 v-else>暂无奖品</h1>
|
19
|
|
- </div>
|
|
11
|
+ <!-- 领取奖品-->
|
|
12
|
+ <div v-if="Prize && Prize.prizeId">
|
|
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
|
+ <div class="haibao-jiangping">
|
|
17
|
+ <img v-if="Prize" :src="`${Prize.thumb2}`" alt />
|
20
|
18
|
</div>
|
21
|
19
|
</div>
|
22
|
20
|
</div>
|
23
|
|
- <div v-else style="overflow: auto;height:100vh;">
|
|
21
|
+ </div>
|
|
22
|
+
|
|
23
|
+ <!-- 没有抽奖 -->
|
|
24
|
+ <div v-if="!noPrize && (!Prize || !Prize.prizeId)">
|
|
25
|
+ <div style="overflow: auto;height:100vh;">
|
24
|
26
|
<div class="page flex-col">
|
25
|
27
|
<div class="group1 flex-col">
|
26
|
28
|
<div class="wrap3 flex-col">
|
27
|
29
|
<img src="../assets/prizeImg/notPrize.jpg" class="subhaibao" />
|
28
|
|
- <!-- 没有抽奖 -->
|
29
|
30
|
</div>
|
30
|
31
|
</div>
|
31
|
32
|
</div>
|
32
|
33
|
</div>
|
33
|
34
|
</div>
|
34
|
35
|
|
|
36
|
+ <!-- 没有奖品 -->
|
35
|
37
|
<div v-else style="overflow: auto;height:100vh;">
|
36
|
38
|
<div class="page flex-col">
|
37
|
39
|
<div class="group1 flex-col">
|
38
|
40
|
<div class="wrap3 flex-col">
|
39
|
41
|
<img src="../assets/prizeImg/activityOver.jpg" class="subhaibao" />
|
40
|
|
- <!-- 没有奖品 -->
|
41
|
42
|
</div>
|
42
|
43
|
</div>
|
43
|
44
|
</div>
|
|
@@ -64,22 +65,11 @@ export default {
|
64
|
65
|
default: '取消',
|
65
|
66
|
required: false
|
66
|
67
|
},
|
67
|
|
- currentMonth: {
|
68
|
|
- type: Object
|
69
|
|
- },
|
70
|
|
- currentPerson: {
|
71
|
|
- type: Object
|
72
|
|
- },
|
73
|
|
- PrizeState: {
|
74
|
|
- type: [Number || Boolean]
|
75
|
|
- },
|
76
|
68
|
Prize: {
|
77
|
69
|
type: Object,
|
78
|
70
|
default: () => ({})
|
79
|
71
|
},
|
80
|
|
- prizeList: {
|
81
|
|
- type: Array
|
82
|
|
- }
|
|
72
|
+ noPrize: Boolean
|
83
|
73
|
},
|
84
|
74
|
|
85
|
75
|
data() {
|
|
@@ -113,17 +103,7 @@ export default {
|
113
|
103
|
}
|
114
|
104
|
}
|
115
|
105
|
},
|
116
|
|
- created() {
|
117
|
|
- this.noShowMy()
|
118
|
|
- },
|
119
|
106
|
methods: {
|
120
|
|
- noShowMy() {
|
121
|
|
- let a = this.prizeList.reduce((sum, x) => x.exitsNum + sum, 0) <= 0
|
122
|
|
- this.PrizeShow = a
|
123
|
|
- console.log('🚀 ~ file: MyWinning.vue ~ line 119 ~ noShowMy ~ a', a)
|
124
|
|
- // if (this.Prize.prizeId==''&& ) {
|
125
|
|
- // }
|
126
|
|
- },
|
127
|
107
|
/** 取消按钮操作 */
|
128
|
108
|
cancelPopupts() {
|
129
|
109
|
// this.shaerShow = false
|