Commit 8987ee20 authored by spc's avatar spc

act915

parent 3522edc5
......@@ -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>
......
......@@ -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')
/**
* 邀请助力
......
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