Sfoglia il codice sorgente

拉起支付异常提示

qzyReal 3 anni fa
parent
commit
8d9e9ca1c1
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      app/pages/wx/pay.vue

+ 4 - 0
app/pages/wx/pay.vue

@@ -201,6 +201,10 @@
 				p.desc=con+'-'+carNos;
 				this.$api.getPrePay(this.$common.removeNull(p)).then(resp => {
 					let data = resp.data;
+					if(data.code&&data.code==500){
+						this.$common.toast('系统异常');
+						return;
+					}
 					let that = this;
 					jweixin.chooseWXPay({
 						timestamp: data