remove function

This commit is contained in:
hupeng committed 2024-06-27 11:17:27 +08:00
1 parent 49eb3c0e4f
commit f31412f583
2 files changed
-16

No files matched your search

@@ -28,7 +28,6 @@
<list-cell :hover="false" last> <list-cell :hover="false" last>
<view class="w-100 d-flex flex-column"> <view class="w-100 d-flex flex-column">
<view class="w-100 text-truncate font-size-lg text-color-base" style="margin-bottom: 20rpx;"> <view class="w-100 text-truncate font-size-lg text-color-base" style="margin-bottom: 20rpx;">
<!-- {{ orderGoodsName(item.cartInfo) }} -->
<view class="flex mb-2" v-for="(good,index) in item.cartInfo" :key="index"> <view class="flex mb-2" v-for="(good,index) in item.cartInfo" :key="index">
<image :src="good.image" mode="aspectFill" class="image"></image> <image :src="good.image" mode="aspectFill" class="image"></image>
<view class="flex flex-column"> <view class="flex flex-column">
@@ -102,13 +101,6 @@ const tabList = ref([{
const current = ref(0) const current = ref(0)
const type = ref(-1) 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(() => { //计算单个饮品添加到购物车的数量 const goodsNum = computed(() => { //计算单个饮品添加到购物车的数量
return (goods) => { return (goods) => {
let num = 0; let num = 0;
@@ -28,7 +28,6 @@
<list-cell :hover="false" last> <list-cell :hover="false" last>
<view class="w-100 d-flex flex-column"> <view class="w-100 d-flex flex-column">
<view class="w-100 text-truncate font-size-lg text-color-base" style="margin-bottom: 20rpx;"> <view class="w-100 text-truncate font-size-lg text-color-base" style="margin-bottom: 20rpx;">
<!-- {{ orderGoodsName(item.cartInfo) }} -->
<view class="flex mb-2" v-for="(good,index) in item.cartInfo" :key="index"> <view class="flex mb-2" v-for="(good,index) in item.cartInfo" :key="index">
<image :src="good.image" mode="aspectFill" class="image"></image> <image :src="good.image" mode="aspectFill" class="image"></image>
<view class="flex flex-column"> <view class="flex flex-column">
@@ -102,13 +101,6 @@ const tabList = ref([{
const current = ref(0) const current = ref(0)
const type = ref(-1) 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(() => { //计算单个饮品添加到购物车的数量 const goodsNum = computed(() => { //计算单个饮品添加到购物车的数量
return (goods) => { return (goods) => {
let num = 0; let num = 0;