Ver código fonte

on show and invoiceName

zizhong.wang 2 anos atrás
pai
commit
e3e9070afc
2 arquivos alterados com 14 adições e 0 exclusões
  1. 4 0
      pages/heatingPage/list.vue
  2. 10 0
      pages/heatingPage/pay.vue

+ 4 - 0
pages/heatingPage/list.vue

@@ -65,6 +65,10 @@ export default {
 	  
     };
   },
+  onShow() {
+    this.getHeatList();
+    this.isAuth = getApp().globalData.isAuth;
+  },
   onLoad() {
     this.getHeatList();
 	this.isAuth = getApp().globalData.isAuth;

+ 10 - 0
pages/heatingPage/pay.vue

@@ -263,6 +263,14 @@ export default {
 		  this.$refs.popup.open('center');
 	  },
 	closePopup() {
+		  if (this.invoiceName === ''){
+		  			  uni.showToast({
+		  			    title: '请填写发票抬头!',
+		  			    icon: "none",
+		  			    duration: 2500,
+		  			  });
+		  			  return;
+		  }
 		  
 		  if (this.invoicePhone === '' && this.invoiceEmail){
 			  uni.showToast({
@@ -272,6 +280,8 @@ export default {
 			  });
 			  return;
 		  }
+		  
+		  
 		
 		  this.$refs.popup.close();
 		  let that = this;