lilei hace 2 años
padre
commit
82dec3d433
Se han modificado 2 ficheros con 12 adiciones y 0 borrados
  1. 6 0
      pages/sales/list.vue
  2. 6 0
      pages/sales/productPricing.vue

+ 6 - 0
pages/sales/list.vue

@@ -41,6 +41,12 @@
 		onNavigationBarButtonTap(e){  // 标题栏 按钮操作
 			this.openModal = true
 		},
+		onBackPress() {
+			if(this.openModal){
+				this.openModal = false
+				return true
+			}
+		},
 		onReady() {
 			const query = uni.createSelectorQuery().in(this);
 			query.select('#tjCons').boundingClientRect(data => {

+ 6 - 0
pages/sales/productPricing.vue

@@ -96,6 +96,12 @@
 		onNavigationBarButtonTap(e){
 			this.showModal=true
 		},
+		onBackPress() {
+			if(this.showModal){
+				this.showModal = false
+				return true
+			}
+		},
 		computed: {
 			selPriceShow() {
 				const a = this.priceList.filter(item => item.checked)