处理运营订单列表
This commit is contained in:
@@ -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 请求配置项
|
||||
|
||||
Reference in New Issue
Block a user