Explorar o código

付款错误返回

shish %!s(int64=6) %!d(string=hai) anos
pai
achega
acf2ba2323
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      mobile-code/src/pages/pay/index.vue

+ 6 - 0
mobile-code/src/pages/pay/index.vue

@@ -274,6 +274,12 @@
 				}
 				host(params).then(res => {
 					this.payCallData = res.data
+					//错误返回判断
+					if(res.code == 0){
+						this.$msg(res.msg)
+						return false
+					}
+
 					if (this.form.payWay == 0) {
 						wexinPay(res.data, this.paySuccess, this.payFail)
 					} else if (this.form.payWay == 1) {