bihuisong před 1 rokem
rodič
revize
fbc8e70409
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 6 1
      pages/index/index.vue

+ 6 - 1
pages/index/index.vue

@@ -505,7 +505,12 @@
 					scoreNum: item.integral
 				};
 				verifyScore(params).then((res) => {
-					if (res.code == 200) {
+					if (res.data == false) {
+						uni.showToast({
+							title: '您的积分不足'
+						})
+					}else{
+						console.log("verifyScore",res)
 						this.reduceScore(item)
 						this.addScore(item)
 						uni.navigateTo({