hwb0 3 rokov pred
rodič
commit
242af12cbb

+ 7 - 3
components/activity-help/activity-help.vue

@@ -59,15 +59,19 @@
 				uni.showLoading({
 					title: '助力中'
 				});
-
 				$http.post('/api/v1/mp/user/marketing/help', {
-					inviteCode:this.inviteCode,
+					inviteCode: this.inviteCode,
 					marketingId: this.marketingId
 				}).then(res => {
 					uni.hideLoading();
 					if(res.code == 0){
 						this.closeShow = true
-					} 
+					} else {
+						uni.$u.toast(res.msg);
+						this.close()
+					}
+				}).catch(() => {
+					uni.$u.toast('助力失败');
 					this.close()
 				})
 			}