Преглед на файлове

拉起支付异常提示

qzyReal преди 3 години
родител
ревизия
8d9e9ca1c1
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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