ZhiYeJianKang_QiYe_APP/api/startup/index.js

39 lines
892 B
JavaScript
Raw Normal View History

2025-02-20 15:38:43 +08:00
import params from '@/api/common/params.js'
// var baseurl = "http://appsysapi.xinelu.com";
var baseurl = params.param_baseurl_appsysapi;// "http://appsysapi.xinelu.com";
var request = function(config) {
return new Promise((resolve, rejected) => {
uni.showLoading({
title: ''
});
uni.request({
url: baseurl + config.url,
data: config.data,
method: config.method,
timeout: 20000,
header: {
// 'Access-Control-Allow-Origin':'*',
// "Content-Type": "application/x-www-form-urlencoded"
// "Content-Type": "multipart/form-data"
},
success(res) {
uni.hideLoading();
resolve(res.data)
},
fail(err) {
uni.hideLoading();
rejected(err)
}
})
})
}
export function getLastAppFileInfo() {
return request({
url: params.param_LastAppFileInfo_url, //`/system/appFileInfo/getLastAppFileInfo?appcode=zyjk_qy`,
method: 'get',
})
}