更新:更换获取我的订单数据接口
This commit is contained in:
@@ -11,6 +11,9 @@ import type {
|
||||
IPageData
|
||||
} from '@/types/user'
|
||||
import { SERVICE_MAP } from '@/api/config'
|
||||
import { useUserStore } from '@/stores/user'
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
/**
|
||||
* 获取用户信息
|
||||
@@ -41,9 +44,9 @@ export async function getVipInfo() {
|
||||
*/
|
||||
export async function getOrderList(current: number, limit: number, orderStatus: string) {
|
||||
const res = await mainClient.request<IApiResponse<{ orders: IPageData<IOrder> }>>({
|
||||
url: 'bookAbroad/home/getAbroadOrderList',
|
||||
url: 'common/buyOrder/commonBuyOrderList',
|
||||
method: 'POST',
|
||||
data: { current, limit, orderStatus }
|
||||
data: { current, limit, orderStatus, come: '10', userId: userStore.id }
|
||||
})
|
||||
return res
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user