{"code":"import request from \"request\"; // 封装的request.js文件的位置\n// 获取用户基本信息 \nexport const login = (usr = null) => {\n    return request(`/contract/miniapp/user/login`, 'POST', usr);\n};\n// 获取隐私等基本信息\nexport const getInfoList = (usr = null) => {\n    return request(`/contract/miniapp/info/list`, 'GET', usr);\n};\n// 判断token状态是否存在\nexport const isToken = () => {\n    if (!uni.getStorageSync('token')) {\n        uni.navigateTo({ url: '/pages/index/login' });\n    }\n};\nexport const getStoreName = () => {\n    return request(`/contract/miniapp/store/list`, 'GET');\n};\nexport const getProduct = (product = null) => {\n    return request(`/contract/miniapp/product/categories`, 'GET', product);\n};\nexport const idCardInfo = (idCardInfo = null) => {\n    return request(`/contract/miniapp/file/ocr/idcard`, 'GET', idCardInfo, true);\n};\nexport const upload = (url = null) => {\n    uni.uploadFile({\n        url: 'https://gpt.aiym.run/contract/miniapp/file/upload',\n        filePath: url,\n        name: 'file',\n        formData: new UTSJSONObject({\n            biz: 'cert'\n        }),\n        success: (uploadFileRes) => {\n            return uploadFileRes;\n            uni.__f__('log', 'at api.uts:52', 'ossurl:', uploadFileRes.data);\n        },\n        fail: (err) => {\n            uni.__f__('log', 'at api.uts:55', err);\n        }\n    });\n};\nexport const getOrderList = () => {\n    return request(`/contract/miniapp/order/list`, 'POST');\n};\nexport const getChildListBatch = () => {\n    return request(`/contract/miniapp/car/rootList`, 'GET');\n};\nexport const add = (appOrderCarList = null) => {\n    return request(`/contract/miniapp/order/add`, 'POST', appOrderCarList);\n};\nexport const list = (params = null) => {\n    return request(`/contract/miniapp/order/list`, 'GET', params);\n};\nexport const carCert = (params = null) => {\n    return request(`/contract/miniapp/file/ocr/carCert`, 'GET', params, true);\n};\nexport const logout = () => {\n    return request(`/contract/miniapp/user/logout`, 'POST');\n};\nexport const addContract = (ID = null) => {\n    return request(`/contract/miniapp/order/addContract`, 'GET', ID);\n};\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/api.uts.js.map","references":[],"uniExtApis":["uni.getStorageSync","u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