|
@@ -34,7 +34,7 @@
|
|
<!-- 中奖 -->
|
|
<!-- 中奖 -->
|
|
<u-popup :show="activityShow" mode="center" round="17" @close="close" :closeable="true" overlayOpacity="0.5" @touchmove.prevent.stop>
|
|
<u-popup :show="activityShow" mode="center" round="17" @close="close" :closeable="true" overlayOpacity="0.5" @touchmove.prevent.stop>
|
|
<view class="choiceShow-wrap">
|
|
<view class="choiceShow-wrap">
|
|
- <view style="width: 400rpx; height: 400rpx;line-height: 400rpx; text-align: center;">
|
|
|
|
|
|
+ <view style="width: 200rpx; height: 200rpx;margin: 100rpx; text-align: center;">
|
|
恭喜你获得一等奖
|
|
恭喜你获得一等奖
|
|
</view>
|
|
</view>
|
|
<button @click="toPrize()">前往查看</button>
|
|
<button @click="toPrize()">前往查看</button>
|
|
@@ -45,10 +45,8 @@
|
|
<!-- 未中奖 -->
|
|
<!-- 未中奖 -->
|
|
<u-popup :show="closeShow" mode="center" round="17" @close="close" :closeable="true" overlayOpacity="0.5" @touchmove.prevent.stop>
|
|
<u-popup :show="closeShow" mode="center" round="17" @close="close" :closeable="true" overlayOpacity="0.5" @touchmove.prevent.stop>
|
|
<view class="choiceShow-wrap">
|
|
<view class="choiceShow-wrap">
|
|
- <view style="width: 400rpx; height: 400rpx;line-height: 400rpx; text-align: center;">
|
|
|
|
- 很遗憾你未中奖
|
|
|
|
- <br>
|
|
|
|
- 欢迎继续参与其他抽奖,好运就在你身边
|
|
|
|
|
|
+ <view style="width: 200rpx; height: 200rpx;margin: 100rpx; text-align: center;">
|
|
|
|
+ 很遗憾你未中奖,欢迎继续参与其他抽奖,好运就在你身边
|
|
</view>
|
|
</view>
|
|
<button @click="close()">取消</button>
|
|
<button @click="close()">取消</button>
|
|
</view>
|
|
</view>
|
|
@@ -74,7 +72,6 @@
|
|
this.pageList()
|
|
this.pageList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
|
|
|
|
pageList() {
|
|
pageList() {
|
|
this.pageNum = 1
|
|
this.pageNum = 1
|
|
@@ -103,8 +100,20 @@
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
this.loading = false
|
|
this.loading = false
|
|
|
|
+ });
|
|
|
|
+ $http.post(`/api/v1/mp/user/marketing/hit/prize/isHit/${this.marketingId}`,{}).then(res => {
|
|
|
|
+ if(res.code == 0 && res.data && res.data.isHit == 1){
|
|
|
|
+ this.activityShow = true
|
|
|
|
+ }
|
|
|
|
+ if(res.code == 0 && res.data && res.data.isHit == 0){
|
|
|
|
+ this.closeShow = true
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ close() {
|
|
|
|
+ this.closeShow = false
|
|
|
|
+ this.activityShow = false
|
|
|
|
+ },
|
|
|
|
|
|
toPrize() {
|
|
toPrize() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|