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
8987ee20
Commit
8987ee20
authored
Sep 05, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
act915
parent
3522edc5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
29 deletions
+58
-29
act0915.vue
activity0915/act0915/act0915.vue
+57
-28
index.js
api/activity0915/index.js
+1
-1
No files found.
activity0915/act0915/act0915.vue
View file @
8987ee20
...
...
@@ -109,7 +109,7 @@
<
script
setup
>
import
{
ref
,
onMounted
,
computed
,
getCurrentInstance
}
from
'vue'
import
{
fetchAct915JSON
}
from
'@/api/activity0915/index.js'
import
{
fetchAct915JSON
,
getAct915Home
}
from
'@/api/activity0915/index.js'
// 组件名称
defineOptions
({
name
:
'Act915Page'
...
...
@@ -228,6 +228,32 @@ const fetchConfig = async () => {
}
}
// 获取915活动首页信息
const fetchAct915HomeData = async () => {
try {
console.log('开始请求 getAct915Home 接口...')
const response = await getAct915Home()
console.log('getAct915Home 接口返回结果:', response)
console.log('getAct915Home 接口返回数据:', response.data)
// 输出详细的返回信息
if (response && response.data) {
console.log('=== getAct915Home 接口返回详情 ===')
console.log('状态码:', response.status)
console.log('消息:', response.message)
console.log('数据:', JSON.stringify(response.data, null, 2))
console.log('================================')
}
return response
} catch (error) {
console.error('getAct915Home 接口请求失败:', error)
console.error('错误详情:', error.message)
console.error('错误状态:', error.status)
return null
}
}
const handleLotteryClick = () => {
// 从配置中获取抽奖banner链接
const lotteryLink = config.value?.lottery?.link
...
...
@@ -411,6 +437,9 @@ onMounted(async () => {
await fetchConfig()
console.log('Banner列表:', bannerList.value)
console.log('配置数据:', config.value)
// 请求 getAct915Home 接口
await fetchAct915HomeData()
})
</
script
>
...
...
api/activity0915/index.js
View file @
8987ee20
...
...
@@ -5,7 +5,7 @@ const {api} = requestModule
* 获取915活动首页信息
* @returns
*/
export
const
getAct915Home
=
()
=>
api
.
get
(
'/c/activity/
act915
/home'
)
export
const
getAct915Home
=
()
=>
api
.
get
(
'/c/activity/
use_invite_915/invitation
/home'
)
/**
* 邀请助力
...
...
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