diff --git a/sdk/core.js b/sdk/core.js index 025739d..54682de 100644 --- a/sdk/core.js +++ b/sdk/core.js @@ -1,8 +1,8 @@ /* app JS SDK -Version:2.4.0 -update: 移除app.ajax错误检查 -date:2018-04-27 +Version:2.4.1 +update: openPopover支持bgColor设置 +date:2019-03-21 * /*! Sea.js 2.2.1 | seajs.org/LICENSE.md */ @@ -940,7 +940,7 @@ var apputil = (function(document, undefined) { useWKWebView: true, hScrollBarEnabled: false, pageParam: $.isPlainObject(config.param) ? config.param : {}, - bgColor: appcfg.set.bgColor, + bgColor: config.bgColor || appcfg.set.bgColor, bounces: !!config.bounce, overScrollMode: 'scrolls' }); diff --git a/sdk/modules/upload.js b/sdk/modules/upload.js index 1c167c8..c33518c 100644 --- a/sdk/modules/upload.js +++ b/sdk/modules/upload.js @@ -1,8 +1,8 @@ /* * name: upload.js - * version: v0.5.1 - * update: add headers - * date: 2018-02-01 + * version: v0.5.2 + * update: success接收服务端数据;error接收异常信息 + * date: 2019-03-21 */ define('upload', function(require, exports, module) { 'use strict'; @@ -57,16 +57,16 @@ define('upload', function(require, exports, module) { break; case 1: try { - opt.success(ret.body.path); + opt.success(ret.body); } catch (e) { console.log(JSON.stringify(ret.body)); } break; case 2: - opt.error(); + opt.error(ret); break; default: - opt.onCreateError(); + opt.onCreateError(ret, err); break; } } else if (err) {