(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["components-upload-upload"],{"1d3d":function(e,n,t){"use strict";t("7a82");var i=t("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=i(t("53ca"));t("d3b7"),t("159b"),t("14d9");var o={data:function(){return{imageList:[]}},onLoad:function(){},props:["num"],mounted:function(){this.chooseImageFunc()},methods:{chooseImageFunc:function(){var e=this;uni.chooseImage({count:e.$props.num||9,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(n){e.uploadFile(n.tempFilePaths)},fail:function(n){e.$emit("getImgs",null)},complete:function(e){}})},uploadFile:function(e){var n=this,t=0,i=e.length,o={token:uni.getStorageSync("token"),app_id:n.getAppId()};uni.showLoading({title:"图片上传中"}),e.forEach((function(e,u){uni.uploadFile({url:n.websiteUrl+"/api/file.upload/image",filePath:e,name:"iFile",formData:o,success:function(e){var t="object"===(0,a.default)(e.data)?e.data:JSON.parse(e.data);1===t.code?n.imageList.push(t.data):n.showError(t.msg)},complete:function(){t++,i===t&&(uni.hideLoading(),n.$emit("getImgs",n.imageList))}})}))}}};n.default=o},c26d:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){}));var i=function(){var e=this.$createElement,n=this._self._c||e;return n("v-uni-view")},a=[]},cce7:function(e,n,t){"use strict";t.r(n);var i=t("1d3d"),a=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=a.a},dc2b:function(e,n,t){"use strict";t.r(n);var i=t("c26d"),a=t("cce7");for(var o in a)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(o);var u=t("f0c5"),c=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"ce2084cc",null,!1,i["a"],void 0);n["default"]=c.exports}}]);