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.
18 lines
388 B
18 lines
388 B
11 months ago
|
import request from '@/utils/request'
|
||
|
|
||
|
// api地址
|
||
|
const api = {
|
||
|
list: 'order.comment/list',
|
||
|
submit: 'order.comment/submit'
|
||
|
}
|
||
|
|
||
|
// 待评价订单商品列表
|
||
|
export const list = (orderId, param) => {
|
||
|
return request.get(api.list, { orderId, ...param })
|
||
|
}
|
||
|
|
||
|
// 创建商品评价
|
||
|
export const submit = (orderId, data) => {
|
||
|
return request.post(api.submit, { orderId, form: data })
|
||
|
}
|