优化功能

This commit is contained in:
wangxiaowei
2026-01-12 17:39:48 +08:00
parent d1560ab450
commit f5e77e997b
21 changed files with 498 additions and 98 deletions

View File

@ -142,12 +142,14 @@
import { onPageScroll, onReachBottom } from '@dcloudio/uni-app'
import useMescroll from "@/uni_modules/mescroll-uni/hooks/useMescroll.js"
import { LOCATION_DENY_TIME_KEY, handleEnsureLocationAuthHooks, LOCATION_DEFAULT_CITY, handleGetLocationCity, LOCATION_CITY_KEY, handleForceGetLocation } from '@/hooks/useLocation'
import { getHomeBannerList, getHomeCouponPopup } from '@/api/home'
import { getHomeBannerList, getHomeCouponPopup, claimIndexCoupon } from '@/api/home'
import { getHomeTeaStoreList } from '@/api/tea-room'
import { useUserStore } from '@/store'
import { useToast } from 'wot-design-uni'
const OSS = inject('OSS')
const navbarHeight = inject('navbarHeight')
const toast = useToast()
// 轮播图
const swiperList = ref<string[]>([])
@ -354,9 +356,9 @@
/**
* 跳转领取优惠券页面
*/
handleToGetCoupon: () => {
handleToGetCoupon: async () => {
await claimIndexCoupon()
showCoupon.value = false
router.switchTab('/pages/my/my')
},
/**