Commit 8c944c35 by lijiabin

【需求 20520】 feat: 仓库人员不展示大转盘

parent 7f4d02be
......@@ -31,6 +31,7 @@ export interface LoginResponseDto {
hiddenName: string
signature: string
refreshToken: string
address: string
}
export interface GetWxSignatureResponseDto {
......
......@@ -70,6 +70,12 @@ import { getSelfAuctionRecord, getUserLotteryRecordList, getUserWheelRecordList
import { usePageSearch } from '@/hooks'
import { ActivityTypeEnum } from '@/constants/enums'
import type { UserLotteryRecordItemDto, UserWheelRecordItemDto } from '@/api'
import { useUserStore } from '@/stores'
import { storeToRefs } from 'pinia'
const userStore = useUserStore()
const { userInfo } = storeToRefs(userStore)
const isWareHouse = userInfo.value.address.includes('仓库')
const EmptyComp = () => (
<div class="flex flex-col items-center justify-center h-64">
......@@ -182,7 +188,10 @@ const activityTypeListOptions = [
),
refresh: () => refresh2(),
},
{
]
if (!isWareHouse) {
activityTypeListOptions.push({
label: '大转盘',
value: ActivityTypeEnum.WHEEL,
component: () => (
......@@ -231,9 +240,8 @@ const activityTypeListOptions = [
</>
),
refresh: () => refresh3(),
},
]
})
}
const tab = ref(activityTypeListOptions[0]!.value)
const toggleTab = () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment