From f31412f5838408b7c29332fe7494249a3d876e9e Mon Sep 17 00:00:00 2001 From: hupeng Date: Thu, 27 Jun 2024 11:17:27 +0800 Subject: [PATCH] remove function --- .../pages/components/pages/orders/orders.vue | 8 -------- yshop-drink-uniapp-vue3/pages/order/order.vue | 8 -------- 2 files changed, 16 deletions(-) diff --git a/yshop-drink-uniapp-vue3/pages/components/pages/orders/orders.vue b/yshop-drink-uniapp-vue3/pages/components/pages/orders/orders.vue index cdf4c9e..4427fa1 100644 --- a/yshop-drink-uniapp-vue3/pages/components/pages/orders/orders.vue +++ b/yshop-drink-uniapp-vue3/pages/components/pages/orders/orders.vue @@ -28,7 +28,6 @@ - @@ -102,13 +101,6 @@ const tabList = ref([{ const current = ref(0) const type = ref(-1) -const orderGoodsName = computed(() => { //计算单个饮品添加到购物车的数量 - return (goods) => { - let arr = [] - goods.forEach(good => arr.push(good.title + '*' + good.number)) - return arr.join(',') - } -}) const goodsNum = computed(() => { //计算单个饮品添加到购物车的数量 return (goods) => { let num = 0; diff --git a/yshop-drink-uniapp-vue3/pages/order/order.vue b/yshop-drink-uniapp-vue3/pages/order/order.vue index 2312500..37c967b 100644 --- a/yshop-drink-uniapp-vue3/pages/order/order.vue +++ b/yshop-drink-uniapp-vue3/pages/order/order.vue @@ -28,7 +28,6 @@ - @@ -102,13 +101,6 @@ const tabList = ref([{ const current = ref(0) const type = ref(-1) -const orderGoodsName = computed(() => { //计算单个饮品添加到购物车的数量 - return (goods) => { - let arr = [] - goods.forEach(good => arr.push(good.title + '*' + good.number)) - return arr.join(',') - } -}) const goodsNum = computed(() => { //计算单个饮品添加到购物车的数量 return (goods) => { let num = 0;