chore(删除活动及其图片): 抽奖活动
@ -1,122 +1,4 @@
|
||||
import { get, post } from '../utils/http.js'
|
||||
|
||||
// 获取排行榜
|
||||
export const ranklist = async () => {
|
||||
try {
|
||||
const response = await get(`/activity/lottery/rank-list`)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch get rank list:', error)
|
||||
console.error('error:' + error.response.errorMsg)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 获取有效活动
|
||||
export const validActivity = async () => {
|
||||
try {
|
||||
const response = await get(`/activity/lottery/valid-activity`)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch get valid activity:', error)
|
||||
console.error('error:' + error.response.errorMsg)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 获取活动详情
|
||||
export const activityDetail = async (activityCode) => {
|
||||
try {
|
||||
const response = await get(`/activity/lottery/detail/${activityCode}`)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch get activity detail:', error)
|
||||
console.error('error:' + error.response.errorMsg)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 获取剩余中奖券
|
||||
export const myTickets = async () => {
|
||||
try {
|
||||
const response = await get(`/activity/lottery/my-ticket-count`)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch get my tickets:', error)
|
||||
console.error('error:' + error.response.errorMsg)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 执行单次抽奖
|
||||
export const onceDraw = async (data) => {
|
||||
try {
|
||||
const response = await post('/activity/lottery/draw', data)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch once draw:', error)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 执行连抽
|
||||
export const multiDraw = async (data) => {
|
||||
try {
|
||||
const response = await post('/activity/lottery/multi-draw', data)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch multiply draw:', error)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 获取我的中奖记录(默认最新100条)
|
||||
export const drawRecords = async () => {
|
||||
try {
|
||||
const response = await get(`/activity/lottery/my-records?pageSize=100`)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch get draw records:', error)
|
||||
console.error('error:' + error.response.errorMsg)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 获取历史中奖用户
|
||||
export const winnerHistory = async () => {
|
||||
try {
|
||||
const response = await get(`/activity/lottery/winner-history`)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch get winners:', error)
|
||||
console.error('error:' + error.response.errorMsg)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 获取任务列表
|
||||
export const ActTaskList = async () => {
|
||||
try {
|
||||
const response = await get(`/spins/task/list`)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch get tickets:', error)
|
||||
console.error('error:' + error.response.errorMsg)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 领取任务奖励
|
||||
export const receiveTickets = async (data) => {
|
||||
try {
|
||||
const response = await post('/spins/task/receive/reward', data)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch receive reward:', error)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 获取可提现金额
|
||||
export const withdrawableAmount = async (activityId) => {
|
||||
try {
|
||||
@ -151,25 +33,3 @@ export const withdrawApply = async (data) => {
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 可提现金额转账给指定用户
|
||||
export const transferActivityDollar = async (data) => {
|
||||
try {
|
||||
const response = await post('/activity/lottery/transfer', data)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch transfer activity dollar:', error)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
// 可提现金额兑换金币
|
||||
export const exchangeCoin = async (data) => {
|
||||
try {
|
||||
const response = await post('/activity/lottery/exchange', data)
|
||||
return response
|
||||
} catch (error) {
|
||||
console.error('Failed to fetch exchange coin:', error)
|
||||
throw error
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 5.1 MiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 63 KiB |
|
Before Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 6.3 KiB |
|
Before Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 149 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 149 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 466 KiB |
|
Before Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 763 KiB |
|
Before Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 177 KiB |
|
Before Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 173 KiB |
|
Before Width: | Height: | Size: 178 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 1.6 MiB |
@ -203,12 +203,6 @@ const router = createRouter({
|
||||
component: () => import('../views/RechargeAgency/Recruit.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
},
|
||||
{
|
||||
path: '/lottery',
|
||||
name: 'lottery',
|
||||
component: () => import('../views/Activities/Lottery/Lottery.vue'),
|
||||
meta: { requiresAuth: true },
|
||||
},
|
||||
{
|
||||
path: '/cash-out',
|
||||
name: 'cash-out',
|
||||
|
||||
@ -57,7 +57,6 @@ const ACTIVITIES = [
|
||||
'/recharge-reward', //充值奖励页面
|
||||
|
||||
'/activity-game', //活动游戏页面
|
||||
'/lottery', // 抽奖活动页面
|
||||
'/revolution-unity-day', //孟加拉国民革命与团结日
|
||||
'/independence-day', //巴勒斯坦独立日
|
||||
'/oman-national-day', //阿曼国庆日
|
||||
|
||||
@ -408,7 +408,6 @@ class RouteGuard {
|
||||
'/recharge-reward', //充值奖励页面
|
||||
|
||||
'/activity-game', //活动游戏页面
|
||||
'/lottery', // 抽奖活动页面
|
||||
'/revolution-unity-day', //孟加拉国民革命与团结日
|
||||
'/independence-day', //巴勒斯坦独立日
|
||||
'/oman-national-day', //阿曼国庆日
|
||||
|
||||