2026-03-30 18:08:27 +08:00
|
|
|
const getBaseUrl = () => {
|
|
|
|
|
const app = getApp();
|
|
|
|
|
return app && app.globalData && app.globalData.baseUrl ? app.globalData.baseUrl : '';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const API = {
|
|
|
|
|
banners: '/api/eventclient/banners',
|
|
|
|
|
eventList: '/api/eventclient/list',
|
2026-03-31 18:09:37 +08:00
|
|
|
eventMyList: '/api/eventclient/my-events',
|
2026-03-30 18:08:27 +08:00
|
|
|
eventDetail: (id) => `/api/eventclient/${id}`,
|
|
|
|
|
apply: '/api/eventclient/apply',
|
|
|
|
|
|
|
|
|
|
wechatLogin: '/api/oauth/login',
|
2026-03-31 23:27:35 +08:00
|
|
|
loginByCode: '/api/oauth/login',
|
2026-03-30 18:08:27 +08:00
|
|
|
oauthRegister: '/api/oauth/register',
|
2026-03-31 18:09:37 +08:00
|
|
|
oauthResetPassword: '/api/oauth/reset-password',
|
|
|
|
|
sendVerificationCode: '/api/sms/sendverificationcode',
|
2026-03-30 18:08:27 +08:00
|
|
|
myProfile: '/api/my/profile',
|
|
|
|
|
myAuth: '/api/my/auth',
|
2026-03-31 23:27:35 +08:00
|
|
|
myRegistrations: '/api/my/registrations',
|
|
|
|
|
myPoints: '/api/my/points',
|
|
|
|
|
myOrders: '/api/my/orders',
|
|
|
|
|
myTeams: '/api/my/teams',
|
|
|
|
|
myCertificates: '/api/my/certificates'
|
2026-03-30 18:08:27 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
|
getBaseUrl,
|
|
|
|
|
API
|
|
|
|
|
};
|
|
|
|
|
|