diff --git a/src/api/cert.ts b/src/api/cert.ts index 8a10d1b..3561f19 100644 --- a/src/api/cert.ts +++ b/src/api/cert.ts @@ -1,5 +1,10 @@ import axios from 'axios'; +export interface QueryParams { + pageNum: number; + pageSize: number; +} + export interface ModelData { modelName: string; modelPrice: number; @@ -16,9 +21,40 @@ export interface IndexData { pushUrl: string; } +export interface OrderData { + orderNo : string; + paymentPrice : number; + isPay : string; + createTime : string; + paymentWay : string; +} + +export interface DataTable { + total: number; + rows: any[]; +} + +export interface PayRreturn { + payUrl: string; + aoid: string; +} // 获取首页信息 export function getCertIndex() { return axios.get('/cert/index'); } - \ No newline at end of file + +// 用户订单列表 +export function currentUserListOrder(query: QueryParams) { + return axios.get('/cert/order/user/list'); +} + +// 支付 +export function payment(newOrder: OrderData) { + return axios.post('/order/payment', newOrder); +} + +// 支付状态刷新 +export function refreshStatus(orderNo: string) { + return axios.post(`/order/payment/${orderNo}`); +} \ No newline at end of file diff --git a/src/assets/images/alipay-logo.jpg b/src/assets/images/alipay-logo.jpg new file mode 100644 index 0000000..31e7c73 Binary files /dev/null and b/src/assets/images/alipay-logo.jpg differ diff --git a/src/views/api2gpt/pay/index.vue b/src/views/api2gpt/pay/index.vue index e2d3693..7d98a2f 100644 --- a/src/views/api2gpt/pay/index.vue +++ b/src/views/api2gpt/pay/index.vue @@ -1,61 +1,162 @@ - - - - - - - \ No newline at end of file