You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
444 B
20 lines
444 B
4 months ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// api地址
|
||
|
const api = {
|
||
|
order: 'checkout/order',
|
||
|
submit: 'checkout/submit',
|
||
|
}
|
||
|
|
||
|
// mode: 结算模式 (buyNow立即购买 cart购物车)
|
||
|
|
||
|
// 结算台订单信息
|
||
|
export const order = (mode, param) => {
|
||
|
return request.get(api.order, { mode, ...param })
|
||
|
}
|
||
|
|
||
|
// 结算台订单提交
|
||
|
export const submit = (mode, data) => {
|
||
|
return request.post(api.submit, { mode, ...data }, { isPrompt: false })
|
||
|
}
|