gcz 1 год назад
Родитель
Сommit
b4b2ae48fa
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      center/recharge.vue

+ 3 - 0
center/recharge.vue

@@ -118,6 +118,9 @@
 				};
 				};
 				this.$u.api.addRechargeOrder(payParams).then(res=>{//提交充值订单
 				this.$u.api.addRechargeOrder(payParams).then(res=>{//提交充值订单
 					console.log('res',res.data);
 					console.log('res',res.data);
+					if(res.code!=200&&res.msg){
+						uni.$u.toast(res.msg)
+					}
 					this.gotoPay({orderId:res.data.orderId,openid:this.vuex_wechatOpenid,paymentMode:4});
 					this.gotoPay({orderId:res.data.orderId,openid:this.vuex_wechatOpenid,paymentMode:4});
 				}).catch(err=>{
 				}).catch(err=>{
 					console.log('charge',err);
 					console.log('charge',err);