(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/promise/promise"],{"0a25":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{images:[]}},onLoad:function(){},methods:{toChooseImage:function(){var t=this;e.authorize({scope:"scope.camera",success:function(){e.chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(e){t.images=e.tempFilePaths}})}})},submitPic:function(){var t=this,n=wx.getStorageSync("userinfo"),o=n.token;o?(e.showLoading({title:"加载中"}),e.uploadFile({url:"http://test.jiuweiyun.cn/api/user/uploadcommitbook",filePath:t.images[0],name:"file",header:{authorization:"Bearer "+o},success:function(n){e.hideLoading();var o=JSON.parse(n.data),a=o.error_code,i=o.msg;e.showToast({title:i||"上传失败,请稍后再试",icon:200===a?"success":"none"}),t.images=[]}})):e.showToast({title:"token丢失,请重新登录",icon:"none"})}}};t.default=n}).call(this,n("543d")["default"])},"1b20":function(e,t,n){},2291:function(e,t,n){"use strict";n.r(t);var o=n("0a25"),a=n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);t["default"]=a.a},"40ca":function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement;e._self._c},a=[];n.d(t,"a",function(){return o}),n.d(t,"b",function(){return a})},"7e49":function(e,t,n){"use strict";n.r(t);var o=n("40ca"),a=n("2291");for(var i in a)"default"!==i&&function(e){n.d(t,e,function(){return a[e]})}(i);n("d9e8");var u=n("2877"),c=Object(u["a"])(a["default"],o["a"],o["b"],!1,null,null,null);t["default"]=c.exports},d9e8:function(e,t,n){"use strict";var o=n("1b20"),a=n.n(o);a.a},e67e:function(e,t,n){"use strict";(function(e){n("ee47"),n("921b");o(n("66fd"));var t=o(n("7e49"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])}},[["e67e","common/runtime","common/vendor"]]]);