diff --git a/common/request.js b/common/request.js index 7386436..c60ba73 100644 --- a/common/request.js +++ b/common/request.js @@ -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 } \ No newline at end of file diff --git a/components/buns-post-edit-templates/bpe-cost-tmp.vue b/components/buns-post-edit-templates/bpe-cost-tmp.vue index 37e9977..72a6ae0 100644 --- a/components/buns-post-edit-templates/bpe-cost-tmp.vue +++ b/components/buns-post-edit-templates/bpe-cost-tmp.vue @@ -309,7 +309,7 @@ } total += realFee }) - this.modelInfo.freight = total + this.modelInfo.freight = total.toFixed(2); }, async handleCostItemSure(data){ if(!data.realFee) { diff --git a/manifest.json b/manifest.json index 4f0db95..698b98d 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "appid" : "__UNI__BCB0FB5", "description" : "探路国际速运", "versionName" : "1.0.1", - "versionCode" : "1041", + "versionCode" : "1042", "transformPx" : false, /* 5+App特有相关 */ "app-plus" : {