From 79f11f34546a394ab1c16ba427c31e9b59d05523 Mon Sep 17 00:00:00 2001
From: queenwuli <942534046@qq.com>
Date: Sat, 09 Jan 2021 10:40:57 +0800
Subject: [PATCH] gx
---
hive-app/pages/workbench/selectService/shoppingCart.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/hive-app/pages/workbench/selectService/shoppingCart.vue b/hive-app/pages/workbench/selectService/shoppingCart.vue
index cc2b71b..b0bccd7 100644
--- a/hive-app/pages/workbench/selectService/shoppingCart.vue
+++ b/hive-app/pages/workbench/selectService/shoppingCart.vue
@@ -44,12 +44,22 @@
default: []
}
},
+ data(){
+ return{
+ isShow: false
+ }
+ },
methods:{
- show(){
+ toggle(){
if(!this.list.length){
return;
}
- this.$refs.popup.open();
+ this.isShow = !this.isShow;
+ if(this.isShow){
+ this.$refs.popup.open();
+ }else{
+ this.hide();
+ }
},
hide(){
this.$refs.popup.close();
--
Gitblit v1.9.1