Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporate-culture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporate-culture-qd
Commits
6f7a565b
Commit
6f7a565b
authored
Apr 07, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 20520】 feat: 所有活动都不开放仓库
parent
cf3e0b43
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
13 deletions
+40
-13
index.vue
src/layoutCulture/index.vue
+2
-0
index.vue
src/views/homePage/index.vue
+23
-6
selfActivity.vue
src/views/userPage/components/selfActivity.vue
+15
-7
No files found.
src/layoutCulture/index.vue
View file @
6f7a565b
...
@@ -56,6 +56,7 @@
...
@@ -56,6 +56,7 @@
</RewardButton>
</RewardButton>
<div
<div
v-if=
"!isWareHouse"
class=
"group flex items-center cursor-pointer px-2 py-1 sm:px-3 sm:py-2 rounded-lg transition-all duration-200 hover:shadow-lg hover:bg-white/60"
class=
"group flex items-center cursor-pointer px-2 py-1 sm:px-3 sm:py-2 rounded-lg transition-all duration-200 hover:shadow-lg hover:bg-white/60"
@
click=
"router.push('/auction')"
@
click=
"router.push('/auction')"
>
>
...
@@ -175,6 +176,7 @@ const userStore = useUserStore()
...
@@ -175,6 +176,7 @@ const userStore = useUserStore()
const
activityStore
=
useActivityStore
()
const
activityStore
=
useActivityStore
()
const
{
userInfo
}
=
storeToRefs
(
userStore
)
const
{
userInfo
}
=
storeToRefs
(
userStore
)
const
isWareHouse
=
userInfo
.
value
.
address
.
includes
(
'仓库'
)
const
router
=
useRouter
()
const
router
=
useRouter
()
const
route
=
useRoute
()
const
route
=
useRoute
()
...
...
src/views/homePage/index.vue
View file @
6f7a565b
...
@@ -298,8 +298,12 @@
...
@@ -298,8 +298,12 @@
</transition>
</transition>
</div>
</div>
</div>
</div>
<template
v-if=
"!isWareHouse"
>
<!-- 每日抽奖 -->
<!-- 每日抽奖 -->
<div
v-if=
"lotteryPrizesDetail"
class=
"lottery-container common-box rounded-lg bg-#FFF7E6"
>
<div
v-if=
"lotteryPrizesDetail"
class=
"lottery-container common-box rounded-lg bg-#FFF7E6"
>
<div
class=
"flex items-center gap-2 mb-3"
>
<div
class=
"flex items-center gap-2 mb-3"
>
<div
class=
"w-1 h-4 bg-gradient-to-b from-amber-400 to-orange-400 rounded-full"
></div>
<div
class=
"w-1 h-4 bg-gradient-to-b from-amber-400 to-orange-400 rounded-full"
></div>
<h1
class=
"text-sm sm:text-base font-bold"
>
每日抽奖
</h1>
<h1
class=
"text-sm sm:text-base font-bold"
>
每日抽奖
</h1>
...
@@ -322,11 +326,16 @@
...
@@ -322,11 +326,16 @@
<svg-icon
name=
"small_coin"
size=
"14"
/>
<svg-icon
name=
"small_coin"
size=
"14"
/>
<span>
{{
lotteryPrizesDetail
.
registrationFee
}}
YA币
</span>
<span>
{{
lotteryPrizesDetail
.
registrationFee
}}
YA币
</span>
</div>
</div>
<div
class=
"text-12px text-gray-400"
>
今日
{{
lotteryPrizesDetail
.
number
}}
人参与
</div>
<div
class=
"text-12px text-gray-400"
>
今日
{{
lotteryPrizesDetail
.
number
}}
人参与
</div>
</div>
</div>
</div>
</div>
<div
v-if=
"lotteryPrizesDetail.winner"
class=
"text-xs text-amber-600 mt-2 px-1 truncate"
>
<div
v-if=
"lotteryPrizesDetail.winner"
class=
"text-xs text-amber-600 mt-2 px-1 truncate"
>
昨日中奖:
{{
lotteryPrizesDetail
.
winner
}}
昨日中奖:
{{
lotteryPrizesDetail
.
winner
}}
</div>
</div>
...
@@ -355,16 +364,21 @@
...
@@ -355,16 +364,21 @@
class=
"lottery-container common-box rounded-lg bg-#F5F0FF"
class=
"lottery-container common-box rounded-lg bg-#F5F0FF"
>
>
<div
class=
"flex items-center gap-2 xl:mb-4"
>
<div
class=
"flex items-center gap-2 xl:mb-4"
>
<div
class=
"w-1 h-4 bg-gradient-to-b from-violet-500 to-purple-500 rounded-full"
></div>
<div
class=
"w-1 h-4 bg-gradient-to-b from-violet-500 to-purple-500 rounded-full"
></div>
<h1
class=
"text-sm sm:text-base font-bold"
>
大转盘
</h1>
<h1
class=
"text-sm sm:text-base font-bold"
>
大转盘
</h1>
</div>
</div>
<div
class=
"flex justify-center"
>
<div
class=
"flex justify-center"
>
<LuckyWheelContainer
:wheelConfig=
"wheelConfig"
/>
<LuckyWheelContainer
:wheelConfig=
"wheelConfig"
/>
</div>
</div>
<div
class=
"flex items-center justify-center text-sm text-gray-500 xl:mt-4 px-1 truncate"
>
<div
class=
"flex items-center justify-center text-sm text-gray-500 xl:mt-4 px-1 truncate"
>
每次抽奖
{{
wheelConfig
?.
costYaCoin
}}
YA币
每次抽奖
{{
wheelConfig
?.
costYaCoin
}}
YA币
</div>
</div>
</div>
</div>
</
template
>
</div>
</div>
</div>
</div>
...
@@ -410,8 +424,11 @@ import { useBreakpoints, breakpointsTailwind } from '@vueuse/core'
...
@@ -410,8 +424,11 @@ import { useBreakpoints, breakpointsTailwind } from '@vueuse/core'
import
LuckyWheelContainer
from
'@/components/common/LuckyWheelContainer/index.vue'
import
LuckyWheelContainer
from
'@/components/common/LuckyWheelContainer/index.vue'
import
{
RewardButtonEnum
}
from
'@/constants'
import
{
RewardButtonEnum
}
from
'@/constants'
import
RewardButton
from
'@/components/common/RewardButton/index.vue'
import
RewardButton
from
'@/components/common/RewardButton/index.vue'
import
{
useTourStore
}
from
'@/stores'
import
{
useTourStore
,
useUserStore
}
from
'@/stores'
const
userStore
=
useUserStore
()
const
{
userInfo
}
=
storeToRefs
(
userStore
)
const
isWareHouse
=
userInfo
.
value
.
address
.
includes
(
'仓库'
)
const
tourStore
=
useTourStore
()
const
tourStore
=
useTourStore
()
const
{
shouldShowAskTabTour
}
=
storeToRefs
(
tourStore
)
const
{
shouldShowAskTabTour
}
=
storeToRefs
(
tourStore
)
const
breakpoints
=
useBreakpoints
(
breakpointsTailwind
)
const
breakpoints
=
useBreakpoints
(
breakpointsTailwind
)
...
...
src/views/userPage/components/selfActivity.vue
View file @
6f7a565b
...
@@ -88,7 +88,16 @@ const EmptyComp = () => (
...
@@ -88,7 +88,16 @@ const EmptyComp = () => (
<
/div
>
<
/div
>
)
)
const
activityTypeListOptions
=
[
const
activityTypeListOptions
:
{
label
:
string
value
:
ActivityTypeEnum
component
:
()
=>
VNode
refresh
:
()
=>
void
}[]
=
[]
if
(
!
isWareHouse
)
{
activityTypeListOptions
.
push
(
...[
{
{
label
:
'限时竞拍'
,
label
:
'限时竞拍'
,
value
:
ActivityTypeEnum
.
AUCTION
,
value
:
ActivityTypeEnum
.
AUCTION
,
...
@@ -188,10 +197,7 @@ const activityTypeListOptions = [
...
@@ -188,10 +197,7 @@ const activityTypeListOptions = [
),
),
refresh
:
()
=>
refresh2
(),
refresh
:
()
=>
refresh2
(),
},
},
]
{
if
(
!
isWareHouse
)
{
activityTypeListOptions
.
push
({
label
:
'大转盘'
,
label
:
'大转盘'
,
value
:
ActivityTypeEnum
.
WHEEL
,
value
:
ActivityTypeEnum
.
WHEEL
,
component
:
()
=>
(
component
:
()
=>
(
...
@@ -240,9 +246,11 @@ if (!isWareHouse) {
...
@@ -240,9 +246,11 @@ if (!isWareHouse) {
<
/
>
<
/
>
),
),
refresh
:
()
=>
refresh3
(),
refresh
:
()
=>
refresh3
(),
})
},
],
)
}
}
const
tab
=
ref
(
activityTypeListOptions
[
0
]
!
.
value
)
const
tab
=
ref
(
activityTypeListOptions
[
0
]
?.
value
||
ActivityTypeEnum
.
AUCTION
)
const
toggleTab
=
()
=>
{
const
toggleTab
=
()
=>
{
refresh
()
refresh
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment