123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- import request from '@/utils/request'
- import {upFilse} from '@/utils/request'
- // 推广人订单
- export function recommen(data) {
- return request({
- url: '/api/spread/order',
- method: 'post',
- data
- });
- }
- // 订单确认
- export function confirm(data) {
- return request({
- url: '/api/order/confirm',
- method: 'post',
- data
- });
- }
- // 订单列表
- export function orderList(data) {
- return request({
- url: '/api/order/list',
- method: 'get',
- data
- });
- }
- // 订单详细
- export function orderDetail(data,orderid) {
- return request({
- url: '/api/order/detail/'+orderid,
- method: 'get',
- data
- });
- }
- // 取消订单
- export function orderCancel(data) {
- return request({
- url: '/api/order/cancel',
- method: 'post',
- data
- });
- }
- //提交评论
- export function product(data) {
- return request({
- url: '/api/order/product',
- method: 'post',
- data
- });
- }
- // 删除订单
- export function orderDel(data) {
- return request({
- url: '/api/order/del',
- method: 'get',
- data
- });
- }
- // 申请退款
- export function refund(data) {
- return request({
- url: '/api/order/refund/verify',
- method: 'post',
- data
- });
- }
- // 退款理由列表
- export function refundReason(data) {
- return request({
- url: '/api/order/refund/reason',
- method: 'get',
- data
- });
- }
- //上传图片
- export function upload(data) {
- return upFilse({
- url: '/api/upload/image',
- method: 'post',
- data
- });
- }
- //提交评论
- export function order_comment(data) {
- return request({
- url: '/api/order/comment',
- method: 'post',
- data
- });
- }
- // 确认收货
- export function orderTake(data) {
- return request({
- url: '/api/order/take',
- method: 'post',
- data
- });
- }
- /**
- * 订单详情
- * @param string uni
- */
- export function getOrderDetail(uni){
- return request.get('order/detail/'+uni);
- }
|