Commit 8c944c35 by lijiabin

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

parent 7f4d02be
...@@ -31,6 +31,7 @@ export interface LoginResponseDto { ...@@ -31,6 +31,7 @@ export interface LoginResponseDto {
hiddenName: string hiddenName: string
signature: string signature: string
refreshToken: string refreshToken: string
address: string
} }
export interface GetWxSignatureResponseDto { export interface GetWxSignatureResponseDto {
......
...@@ -70,6 +70,12 @@ import { getSelfAuctionRecord, getUserLotteryRecordList, getUserWheelRecordList ...@@ -70,6 +70,12 @@ import { getSelfAuctionRecord, getUserLotteryRecordList, getUserWheelRecordList
import { usePageSearch } from '@/hooks' import { usePageSearch } from '@/hooks'
import { ActivityTypeEnum } from '@/constants/enums' import { ActivityTypeEnum } from '@/constants/enums'
import type { UserLotteryRecordItemDto, UserWheelRecordItemDto } from '@/api' 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 = () => ( const EmptyComp = () => (
<div class="flex flex-col items-center justify-center h-64"> <div class="flex flex-col items-center justify-center h-64">
...@@ -182,7 +188,10 @@ const activityTypeListOptions = [ ...@@ -182,7 +188,10 @@ const activityTypeListOptions = [
), ),
refresh: () => refresh2(), refresh: () => refresh2(),
}, },
{ ]
if (!isWareHouse) {
activityTypeListOptions.push({
label: '大转盘', label: '大转盘',
value: ActivityTypeEnum.WHEEL, value: ActivityTypeEnum.WHEEL,
component: () => ( component: () => (
...@@ -231,9 +240,8 @@ const activityTypeListOptions = [ ...@@ -231,9 +240,8 @@ const activityTypeListOptions = [
</> </>
), ),
refresh: () => refresh3(), refresh: () => refresh3(),
}, })
] }
const tab = ref(activityTypeListOptions[0]!.value) const tab = ref(activityTypeListOptions[0]!.value)
const toggleTab = () => { 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