V2.2.1: Membership & Billing, USDT TRC20 payment, VIP free indicators, AI Trading Radar, simplified strategy creation, system settings simplification, bug fixes and UI improvements

This commit is contained in:
TIANHE
2026-02-27 01:57:04 +08:00
parent ae82cc0d4e
commit ffdd2ffbae
71 changed files with 4067 additions and 6073 deletions
+39
View File
@@ -0,0 +1,39 @@
import request from '@/utils/request'
const billingApi = {
Plans: '/api/billing/plans',
Purchase: '/api/billing/purchase',
UsdtCreate: '/api/billing/usdt/create',
UsdtOrder: (id) => `/api/billing/usdt/order/${id}`
}
export function getMembershipPlans () {
return request({
url: billingApi.Plans,
method: 'get'
})
}
export function purchaseMembership (plan) {
return request({
url: billingApi.Purchase,
method: 'post',
data: { plan }
})
}
export function createUsdtOrder (plan) {
return request({
url: billingApi.UsdtCreate,
method: 'post',
data: { plan }
})
}
export function getUsdtOrder (orderId, refresh = true) {
return request({
url: billingApi.UsdtOrder(orderId),
method: 'get',
params: { refresh: refresh ? 1 : 0 }
})
}
+3 -2
View File
@@ -61,10 +61,11 @@ export function getMarketSentiment () {
/**
* Get trading opportunities based on technical analysis
*/
export function getTradingOpportunities () {
export function getTradingOpportunities (params) {
return request({
url: `${BASE_URL}/opportunities`,
method: 'get'
method: 'get',
params
})
}