From fc5d34772c94fd057b11cec16472eae5d44a6ca1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com>
Date: Wed, 22 Mar 2023 22:29:57 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/service/list.vue | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/pages/service/list.vue b/src/pages/service/list.vue
index d90de6e..447c4a6 100644
--- a/src/pages/service/list.vue
+++ b/src/pages/service/list.vue
@@ -19,7 +19,7 @@
{{ cartCount }}
-
+
去下单
@@ -128,6 +128,16 @@ export default {
});
}
},
+ /**
+ * 去下单
+ */
+ toCart() {
+ if (this.cartCount > 0) {
+ this.$utils.toPage("/pages/service/cart");
+ } else {
+ this.$utils.toast("请添加商品到购物车");
+ }
+ },
},
};