2025-10-23
支付页面
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
http
|
||||
} from "../util/api";
|
||||
|
||||
const baseUrl = "http://192.168.0.26:3000"
|
||||
const baseUrl = "http://192.168.0.11:3000"
|
||||
|
||||
export const mallAPI = {
|
||||
getMallList: (params) => http.get(baseUrl + '/api/products', params),
|
||||
@@ -12,6 +12,8 @@ export const mallAPI = {
|
||||
addCart: (data) => http.post(baseUrl +"/api/cart/add", data), // 添加购物车
|
||||
createOrder: (data) => http.post(baseUrl + `/api/orders/create-from-cart`,data), // 创建订单
|
||||
getOrder: (orderId) => http.get(baseUrl + `/api/orders/pending-payment/${orderId}`), // 获取订单
|
||||
payment: (data) => http.post(baseUrl + "/api/orders/confirm-payment", data), // 支付订单
|
||||
getCouponList: (uid) => http.get(baseUrl + `/api/coupon/user/${uid}`)
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user