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

View File

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

View File

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