处理运营订单列表

This commit is contained in:
2026-01-16 04:46:57 +08:00
parent 74679328e9
commit 15d5dc5255
13 changed files with 624 additions and 73 deletions

View File

@@ -109,11 +109,20 @@ export function fetchAddTodo(data : {}) {
});
}
// 待办列表
// 订单列表
export function fetchOrderList(data : {}) {
return request({
url: '/index/orders',
data: data,
method: 'POST'
});
}
// 订单列表
export function fetchDayOrderList(data : {}) {
return request({
url: '/index/dayOrder',
data: data,
method: 'POST'
});
}

View File

@@ -1,50 +1,3 @@
// import { ref } from "vue";
// import config from "../config";
// import { goToLoginPage } from "../utils/helper";
// interface Options {
// url : string,
// method ?: 'GET' | 'POST',
// data ?: any,
// params ?: any,
// dataType ?: string,
// responseType ?: string
// }
// interface Response {
// code : number;
// msg ?: string;
// data : any;
// }
// export const getUploadImageUrl = () => {
// return config.api_base_url + '/upload/image' + '&wxapp_id=' + config.wxapp_id + '&token=' + uni.getStorageSync('token');
// }
// export const request = (options : Options) => {
// return new Promise((resolve, reject) => {
// uni.request({
// url: config.api_base_url + options.url + '&wxapp_id=' + config.wxapp_id + '&token=' + uni.getStorageSync('token'),
// method: options.method || 'GET',
// data: options.data || options.params || {},
// dataType: options.dataType || "json",
// responseType: options.responseType || "text",
// success(res) {
// const ret : Response = res.data
// if (ret.code === -1) {
// goToLoginPage()
// } else if (ret.code === 1) {
// resolve(ret.data)
// } else if (ret.code === 0) {
// uni.showToast({
// title:ret.msg,
// icon:'none'
// })
// }
// },
// fail(err) {
// reject(err)
// },
// })
// })
// }
import config from '@/config';
import { goToLoginPage } from '@/utils/helper';
@@ -66,14 +19,6 @@ interface Response {
data : any;
}
// /**
// * 获取图片上传的完整URL
// * @returns {string} 完整的图片上传URL包含基础URL、wxapp_id和token参数
// */
// export const getUploadImageUrl = () => {
// return config.api_base_url + '/upload/image' + '&wxapp_id=' + config.wxapp_id + '&token=' + uni.getStorageSync('token');
// };
/**
* 封装uni.request的通用请求方法
* @param {Options} options 请求配置项