diff --git a/apps/src/api/legacy/gm.ts b/apps/src/api/legacy/gm.ts index b83f0e4..5f62b1c 100644 --- a/apps/src/api/legacy/gm.ts +++ b/apps/src/api/legacy/gm.ts @@ -21,3 +21,16 @@ export async function reviewGmGoldOperation(data: Record) { data, ); } + +export async function submitGmVipGift(data: Record) { + return requestClient.post>('/gm/vip-gift', data); +} + +export async function pageGmVipGift(params: Record) { + return requestClient.get>>( + '/gm/vip-gift/page', + { + params, + }, + ); +} diff --git a/apps/src/router/access.ts b/apps/src/router/access.ts index 110d84d..7e9b868 100644 --- a/apps/src/router/access.ts +++ b/apps/src/router/access.ts @@ -36,6 +36,11 @@ const ROUTE_MENU_OVERRIDES: Record< routers: ['open_pay/country'], titles: ['开通支付国家'], }, + PaymentOrderList: { + aliases: ['OrderDetails'], + routers: ['order/details', 'operate/manager/order/details'], + titles: ['订单详情'], + }, PropsResourceConfig: { aliases: ['PropsConfig'], routers: ['props/config'] }, PropsSourceGroup: { aliases: ['PropsActivityRewardCnf'], diff --git a/apps/src/router/routes/modules/gm.ts b/apps/src/router/routes/modules/gm.ts index 6706374..5d8b25c 100644 --- a/apps/src/router/routes/modules/gm.ts +++ b/apps/src/router/routes/modules/gm.ts @@ -17,6 +17,12 @@ const routes: RouteRecordRaw[] = [ component: () => import('#/views/gm/gold-operation.vue'), meta: { title: '金币操作' }, }, + { + name: 'GmVipGift', + path: 'vip-gift', + component: () => import('#/views/gm/vip-gift.vue'), + meta: { title: 'VIP赠送' }, + }, { name: 'GmGoldOperationReview', path: 'gold-operation-review', diff --git a/apps/src/router/routes/modules/operate.ts b/apps/src/router/routes/modules/operate.ts index 10152d9..a3ba18b 100644 --- a/apps/src/router/routes/modules/operate.ts +++ b/apps/src/router/routes/modules/operate.ts @@ -71,12 +71,6 @@ const routes: RouteRecordRaw[] = [ component: () => import('#/views/operate/order-abnormal.vue'), meta: { title: '异常订单' }, }, - { - name: 'OperateOrderDetails', - path: 'order/details', - component: () => import('#/views/operate/order-details.vue'), - meta: { title: '订单详情' }, - }, { name: 'OperateReimburse', path: 'reimburse', diff --git a/apps/src/router/routes/modules/payment.ts b/apps/src/router/routes/modules/payment.ts index 43517bc..e9a8992 100644 --- a/apps/src/router/routes/modules/payment.ts +++ b/apps/src/router/routes/modules/payment.ts @@ -9,8 +9,15 @@ const routes: RouteRecordRaw[] = [ }, name: 'PaymentManager', path: '/payment/manager', - redirect: '/payment/manager/country', + redirect: '/payment/manager/order/list', children: [ + { + name: 'PaymentOrderList', + path: 'order/list', + alias: '/operate/manager/order/details', + component: () => import('#/views/operate/order-details.vue'), + meta: { title: '订单列表' }, + }, { name: 'PayCountry', path: 'country', diff --git a/apps/src/views/gm/vip-gift.vue b/apps/src/views/gm/vip-gift.vue new file mode 100644 index 0000000..6606b85 --- /dev/null +++ b/apps/src/views/gm/vip-gift.vue @@ -0,0 +1,361 @@ + + +