From 5227ce05a36d16fc32691b73e4d75c8aee9cea51 Mon Sep 17 00:00:00 2001 From: li-guang <153605324@qq.com> Date: Mon, 11 Jan 2021 16:46:37 +0800 Subject: [PATCH] Merge branch 'master' of https://gitee.com/jyyforjava/hive-app --- 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