diff --git a/src/manifest.json b/src/manifest.json index 7ba565a..8edf53d 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,8 +2,8 @@ "name" : "CHEFLINK delivery", "appid" : "__UNI__06509BE", "description" : "", - "versionName" : "3.2.9", - "versionCode" : 329, + "versionName" : "3.3.1", + "versionCode" : 331, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/src/pages/home/components/tabbar-home/tabbar-home.vue b/src/pages/home/components/tabbar-home/tabbar-home.vue index eef2c02..6d69db3 100644 --- a/src/pages/home/components/tabbar-home/tabbar-home.vue +++ b/src/pages/home/components/tabbar-home/tabbar-home.vue @@ -2,7 +2,7 @@ import { ref, computed } from 'vue' import { useI18n } from 'vue-i18n' import useEventEmit from "@/hooks/useEventEmit"; -import {CollectionType, EventEnum} from "@/constant/enums"; +import { CollectionType, EventEnum } from "@/constant/enums"; import { useConfigStore, useUserStore } from "@/store"; import Config from '@/config/index' import { debounce } from 'throttle-debounce' @@ -26,7 +26,7 @@ import { appRecipeCategoryListGet } from "@/service"; import usePage from "@/hooks/usePage"; -import {getFeaturedDishList} from "@/pages-store/service"; +import { getFeaturedDishList } from "@/pages-store/service"; import { buildQuickTopicUrl, isQuickTopicSlug, @@ -44,12 +44,12 @@ const { t, locale } = useI18n(); /** 首页运营图:按语言切换(中文 / 英文) */ const HOME_PROMO_BANNERS = { memberUpgrade: { - zh: 'https://www.howhowfresh.com/minio/ruoyi/2026/06/05/d4a0d40503ac4206a0387af1ab869de6.png', - en: 'https://www.howhowfresh.com/minio/ruoyi/2026/06/05/c01f1664626d417a9a7ca6165a20f06f.png', + zh: 'https://www.howhowfresh.com/minio/ruoyi/2026/06/18/edb822ef721642b39e52f19b2e5df949.png', + en: 'https://www.howhowfresh.com/minio/ruoyi/2026/06/18/6a8a43575f70425eb6b8071633708531.png', }, deliveryTime: { - zh: 'https://www.howhowfresh.com/minio/ruoyi/2026/06/03/c5673a8874594755bdde7ed7fcbd1982.jpg', - en: 'https://www.howhowfresh.com/minio/ruoyi/2026/06/03/1da02f1e0af34cea91a4f643247176be.png', + zh: 'https://www.howhowfresh.com/minio/ruoyi/2026/06/18/8a0fcfab0a6e4ff29fdecdc41e01ebdb.png', + en: 'https://www.howhowfresh.com/minio/ruoyi/2026/06/18/99c6b38e7f1e4337baee0ec5e42c76ba.png', }, } as const @@ -84,7 +84,7 @@ function getDishPromoLabel(item: Record): string { function navigateTo(url: string) { - if(userStore.checkLogin()) { + if (userStore.checkLogin()) { uni.navigateTo({ url, }); @@ -95,7 +95,7 @@ const swiperList = ref([]) async function initData() { // 只在首次加载时显示骨架屏,避免切换时的白屏 - if(featuredList.value.length === 0) { + if (featuredList.value.length === 0) { loading.value = true } getAppMarketActivityList() @@ -168,9 +168,9 @@ function getAppFeaturedList() { lat: userStore.userLocation.latitude, lng: userStore.userLocation.longitude, } - }).then(res=> { + }).then(res => { featuredList.value = res.data || [] - }).finally(()=> { + }).finally(() => { loading.value = false }) } @@ -183,7 +183,7 @@ function getAppNearbyListPost() { lat: userStore.userLocation.latitude, lng: userStore.userLocation.longitude, } - }).then(res=> { + }).then(res => { nearbyList.value = res.data || [] }) } @@ -200,7 +200,7 @@ function toggleDiscount(value: number) { discount.value = value; // paging.value.refresh() } -const {paging, dataList, queryList} = usePage(getList) +const { paging, dataList, queryList } = usePage(getList) function getList(pageNum: number, pageSize: number) { return new Promise(resolve => { getFeaturedDishList({ @@ -208,7 +208,7 @@ function getList(pageNum: number, pageSize: number) { pageSize, }).then(res => { console.log('查询精选菜品列表', res) - resolve({rows: res.rows}) + resolve({ rows: res.rows }) }) }) } @@ -263,8 +263,8 @@ function tabsTypeChange(id: string | number) { } // 是否展示精选商家和附近商家 true 显示 false隐藏 -const isShowMerchant = computed(()=> { - if(!selfPickup.value && !discount.value && !props.scoreRange && !props.price && !currentCategory.value) { +const isShowMerchant = computed(() => { + if (!selfPickup.value && !discount.value && !props.scoreRange && !props.price && !currentCategory.value) { return true // 没有筛选条件时显示 } else { return true // 有筛选条件时隐藏 @@ -321,9 +321,9 @@ function handleClickSwiper(item: any) { case 5: // 充值活动 navigateTo('/pages-user/pages/recharge/activity-detail?id=' + item.id) break -// case 4: -// navigateTo('/pages/ai/chat/index') -// break + // case 4: + // navigateTo('/pages/ai/chat/index') + // break } } @@ -334,19 +334,19 @@ function navigateToDishes(item: any) { } // 收藏菜品 function handleDishCollectionClick(item: any) { - debouncedEmit(item.isCollect, item.id, CollectionType.DISH, ()=> { + debouncedEmit(item.isCollect, item.id, CollectionType.DISH, () => { item.isCollect = !item.isCollect }) } // 防抖处理函数 -const debouncedEmit = debounce(1300, (isCollected: boolean, id: string, type: CollectionType, callback: ()=> void) => { +const debouncedEmit = debounce(1300, (isCollected: boolean, id: string, type: CollectionType, callback: () => void) => { // 收藏接口 appCollectCollectPost({ body: { targetId: id, targetType: type } - }).then(res=> { + }).then(res => { callback() }) }, { @@ -355,210 +355,140 @@ const debouncedEmit = debounce(1300, (isCollected: boolean, id: string, type: Co