瀏覽代碼

拉起支付异常提示

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