lsx 2 жил өмнө
parent
commit
22ea7651ae

+ 17 - 2
src/pages/lucky/index.vue

@@ -66,6 +66,14 @@
 				<view class="title">该盲票已兑奖</view>
 				<view class="btn" @click="toUser">确认</view>
 			</view>
+		</u-popup>
+		
+		<u-popup :show="showStop" :round="10" mode="center" :safeAreaInsetBottom="false" overlayOpacity="0.8"
+			@touchmove.prevent.stop>
+			<view class="null-prize">
+				<view class="title">该盲票已停售</view>
+				<view class="btn" @click="toUser">确认</view>
+			</view>
 		</u-popup>
 
 		<u-popup :show="tipShow" :round="10" mode="center" :safeAreaInsetBottom="false" overlayOpacity="0.8"
@@ -105,7 +113,8 @@
 				payInfo: {},
 				payShow: false,
 				payLookFlag: true,
-				showNull: false,
+				showNull: false,
+				showStop: false,
 				luckyShow: false,
 				status: 2,
 				showAction: false,
@@ -174,6 +183,9 @@
 									}
 								})
 							}
+						} else if(res.data.status == 5){
+							this.showStop = true
+							this.luckyShow = false
 						} else {
 							this.showNull = true
 							this.luckyShow = false
@@ -181,7 +193,10 @@
 					} else if (res.code == 1023) {
 						this.showAction = true
 						this.luckyShow = false
-					} else {
+					} else if (res.code == 1027){
+						this.showStop = true
+						this.luckyShow = false
+					}  else {
 						uni.$u.toast('该盲票不存在!');
 						setTimeout(() => {
 							uni.switchTab({