优化功能
This commit is contained in:
@ -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')
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user