Parcourir la source

奖品滚动优化

hwb0 il y a 3 ans
Parent
commit
569973c2de
1 fichiers modifiés avec 7 ajouts et 1 suppressions
  1. 7 1
      packagePrize/rolling/index.vue

+ 7 - 1
packagePrize/rolling/index.vue

@@ -173,7 +173,13 @@
 								_this.btnShow = true
 								_this.running()
 							},500)
-						}
+						} else if (res.code == 401 || res.code == 500) {
+							uni.hideLoading();
+							clearInterval(time)
+							uni.navigateBack({
+								delta: 2
+							})
+						} 
 						
 						if (num == 10) {
 							uni.hideLoading();