@@ -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 => {
@@ -96,6 +96,12 @@
onNavigationBarButtonTap(e){
this.showModal=true
+ if(this.showModal){
+ this.showModal = false
computed: {
selPriceShow() {
const a = this.priceList.filter(item => item.checked)