Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
66447f83
Commit
66447f83
authored
Aug 20, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
66666
parent
4254c03c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
9 deletions
+27
-9
integral.js
api/integral.js
+7
-1
suyuanyou.vue
components/quanyi/suyuanyou.vue
+19
-7
Home.vue
views/Home.vue
+1
-1
No files found.
api/integral.js
View file @
66447f83
...
@@ -20,4 +20,10 @@ export const fetchBirthdayGiftJSON = () => api.get('/c/equity/birthdayGift/index
...
@@ -20,4 +20,10 @@ export const fetchBirthdayGiftJSON = () => api.get('/c/equity/birthdayGift/index
* 领取生日礼
* 领取生日礼
* @returns
* @returns
*/
*/
export
const
fetchBatchReceiveJSON
=
()
=>
api
.
post
(
'/c/equity/birthdayGift/batchReceive'
);
export
const
fetchBatchReceiveJSON
=
()
=>
api
.
post
(
'/c/equity/birthdayGift/batchReceive'
);
\ No newline at end of file
/**
* 获取活动状态--溯源游
* @returns
*/
export
const
fetchActivityStateJSON
=
()
=>
api
.
get
(
'/c/third/activity/state'
);
\ No newline at end of file
components/quanyi/suyuanyou.vue
View file @
66447f83
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<view
<view
class=
"bottom-button"
class=
"bottom-button"
v-if=
"isStart
()
"
v-if=
"isStart"
:style=
"
{
:style=
"
{
background: `url(${$baseUrl}integral/1015/shengriliBtnBg${props.index}.png) no-repeat center/contain`
background: `url(${$baseUrl}integral/1015/shengriliBtnBg${props.index}.png) no-repeat center/contain`
}"
}"
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
<
script
setup
>
<
script
setup
>
import
{
defineProps
,
defineEmits
}
from
'vue'
import
{
defineProps
,
defineEmits
}
from
'vue'
import
{
showLoading
,
hideLoading
}
from
'../../utils'
;
// 定义组件名称
// 定义组件名称
defineOptions
({
defineOptions
({
...
@@ -66,12 +67,12 @@ isshowLock:{
...
@@ -66,12 +67,12 @@ isshowLock:{
}
}
})
})
const
isStart
=
()
=>
{
//
const isStart = () => {
const
startDate
=
new
Date
(
props
.
startDate
);
//
const startDate = new Date(props.startDate);
const
now
=
new
Date
();
//
const now = new Date();
console
.
log
(
startDate
<=
now
);
//
console.log(startDate
<=
now
);
return
startDate
<=
now
;
//
return startDate
<=
now
;
}
//
}
// 定义组件事件
// 定义组件事件
const
emit
=
defineEmits
([
'upgrade'
])
const
emit
=
defineEmits
([
'upgrade'
])
...
@@ -119,6 +120,17 @@ const getColor = () => {
...
@@ -119,6 +120,17 @@ const getColor = () => {
]
]
return
colors
;
return
colors
;
}
}
const
isStart
=
ref
(
false
);
onMounted
(
async
()
=>
{
showLoading
();
const
res
=
await
fetchActivityStateJSON
();
if
(
res
?.
success
){
isStart
.
value
=
res
?.
data
?.
isStart
;
}
hideLoading
();
})
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
views/Home.vue
View file @
66447f83
...
@@ -270,7 +270,7 @@
...
@@ -270,7 +270,7 @@
</view>
</view>
</view>
</view>
<view>
<view>
<!-- 普通弹窗 -->
<!-- 普通弹窗
企微等二维码
-->
<uni-popup
:is-mask-click=
"false"
:safe-area=
"false"
ref=
"popup"
background-color=
"#fff"
<uni-popup
:is-mask-click=
"false"
:safe-area=
"false"
ref=
"popup"
background-color=
"#fff"
border-radius=
"48rpx"
>
border-radius=
"48rpx"
>
<view
v-if=
"qrObj !== null"
class=
"popup-content"
>
<view
v-if=
"qrObj !== null"
class=
"popup-content"
>
...
...
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