This commit is contained in:
aihe 2024-09-18 16:05:45 +08:00
parent 0b495e61f6
commit 3dce0c5d1f
3 changed files with 21 additions and 21 deletions

View File

@ -15,7 +15,7 @@ const coreRequestBase = (url, reqParams, options = {}, methodType = "POST", core
data: reqParams,
header: options,
method: methodType,
timeout: 120000, // 请求超时
timeout: 10*60*1000, // 请求超时
...coreParams,
success: (res) => {
resolve(res)
@ -83,26 +83,26 @@ let coreRequest = function(url, params = {}, options = {}, methodType, coreParam
})
}
const coreDownloadRequest = (url, params = {}, options = {}, methodType = 'GET', coreParams = {})=> {
let comReqData = getCommonReqData()
// 统一把emo转unicode
// emoUnicode(params)
const reqParams = {
...baseParam,
...params,
}
url = `${host}${url}`
options = {
...comReqData.header,
...options,
}
// get请求 需要转成query参
url = url + (url.indexOf('?') == -1 ? '?': '') + tansGetParamsToQuery(reqParams)
return { url, header: options }
const coreDownloadRequest = (url, params = {}, options = {}, methodType = 'GET', coreParams = {})=> {
let comReqData = getCommonReqData()
// 统一把emo转unicode
// emoUnicode(params)
const reqParams = {
...baseParam,
...params,
}
url = `${host}${url}`
options = {
...comReqData.header,
...options,
}
// get请求 需要转成query参
url = url + (url.indexOf('?') == -1 ? '?': '') + tansGetParamsToQuery(reqParams)
return { url, header: options }
}
export {
export {
coreDownloadRequest,
coreRequest
}

View File

@ -309,7 +309,7 @@
}
total += realFee
})
this.modelInfo.freight = total
this.modelInfo.freight = total.toFixed(2);
},
async handleCostItemSure(data){
if(!data.realFee) {

View File

@ -3,7 +3,7 @@
"appid" : "__UNI__BCB0FB5",
"description" : "探路国际速运",
"versionName" : "1.0.1",
"versionCode" : "1041",
"versionCode" : "1042",
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {