From 45fb4b11ad51bb38306765b11a6747402e382cee Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sat, 20 Feb 2021 17:37:33 +0800 Subject: [PATCH] fix --- 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