(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/store-apply/store-apply"],{265:function(e,t,r){"use strict";(function(e,t){var a=r(4);r(30);a(r(25));var n=a(r(266));e.__webpack_require_UNI_MP_PLUGIN__=r,t(n.default)}).call(this,r(1)["default"],r(2)["createPage"])},266:function(e,t,r){"use strict";r.r(t);var a=r(267),n=r(269);for(var o in n)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(o);r(271);var s,i=r(41),c=Object(i["default"])(n["default"],a["render"],a["staticRenderFns"],!1,null,"43aee78c",null,!1,a["components"],s);c.options.__file="pages/store-apply/store-apply.vue",t["default"]=c.exports},267:function(e,t,r){"use strict";r.r(t);var a=r(268);r.d(t,"render",(function(){return a["render"]})),r.d(t,"staticRenderFns",(function(){return a["staticRenderFns"]})),r.d(t,"recyclableRender",(function(){return a["recyclableRender"]})),r.d(t,"components",(function(){return a["components"]}))},268:function(e,t,r){"use strict";var a;r.r(t),r.d(t,"render",(function(){return n})),r.d(t,"staticRenderFns",(function(){return s})),r.d(t,"recyclableRender",(function(){return o})),r.d(t,"components",(function(){return a}));try{a={uIcon:function(){return Promise.all([r.e("common/vendor"),r.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(r.bind(null,569))},uPicker:function(){return Promise.all([r.e("common/vendor"),r.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(r.bind(null,613))}}}catch(i){if(-1===i.message.indexOf("Cannot find module")||-1===i.message.indexOf(".vue"))throw i;console.error(i.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var n=function(){var e=this,t=e.$createElement,r=(e._self._c,1===e.currentStep?e.areaList&&e.areaList.length>0:null);e._isMounted||(e.e0=function(t){e.currentStep=1},e.e1=function(t){e.currentStep=2},e.e2=function(t){!e.isShopRejected&&(e.showAreaPicker=!0)},e.e3=function(t){e.showAreaPicker=!1},e.e4=function(t){!e.isShopRejected&&(e.form.companyType=0)},e.e5=function(t){!e.isShopRejected&&(e.form.companyType=1)},e.e6=function(t){e.agreed=!e.agreed},e.e7=function(t){e.currentStep=1}),e.$mp.data=Object.assign({},{$root:{g0:r}})},o=!1,s=[];n._withStripped=!0},269:function(e,t,r){"use strict";r.r(t);var a=r(270),n=r.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},270:function(e,t,r){"use strict";(function(e){var a=r(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(34)),o=a(r(18)),s=a(r(36)),i=a(r(11)),c=r(37);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function l(e){for(var t=1;t1&&void 0!==r[1]?r[1]:9,t&&0!==t.length){n.next=3;break}return n.abrupt("return",[]);case 3:return i=t.slice(0,s),c=i.map((function(t){return new Promise((function(r,n){e.uploadFile({url:a.$baseUrl+"/web/public/upload",filePath:t,name:"file",formData:{folder:"shop"},success:function(e){if(200===e.statusCode){var t=JSON.parse(e.data);200===t.code?r(t.data):n(new Error(t.msg||"上传失败"))}else n(new Error("上传失败"))},fail:function(e){n(e)}})}))})),n.prev=5,n.next=8,Promise.all(c);case 8:return u=n.sent,n.abrupt("return",u);case 12:throw n.prev=12,n.t0=n["catch"](5),e.showToast({title:"上传失败",icon:"none"}),n.t0;case 16:case"end":return n.stop()}}),o,null,[[5,12]])})))()},deleteStoreFrontImage:function(e){var t=this;this.uploadedImagesStoreFront.splice(e,1),this.storeFrontImages.splice(e,1),this.form.storeFrontImgs=this.storeFrontImages.map((function(e){return t.getShortPath(e)}))},chooseStoreFrontImage:function(){var t=this;return(0,s.default)(n.default.mark((function r(){var a,i,c;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a=3,i=t.storeFrontImages.length,c=a-i,!(c<=0)){r.next=6;break}return e.showToast({title:"最多上传".concat(a,"张图片"),icon:"none"}),r.abrupt("return");case 6:e.chooseImage({count:c,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var r=(0,s.default)(n.default.mark((function r(s){var i,c,u;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return i=s.tempFilePaths,e.showLoading({title:"上传中...",mask:!0}),r.prev=2,r.next=5,t.uploadFiles(i,a);case 5:c=r.sent,u=c.map((function(e){return e.url||e.path||e})),t.uploadedImagesStoreFront=[].concat((0,o.default)(t.uploadedImagesStoreFront),(0,o.default)(u.map((function(e){return{url:e}})))),t.storeFrontImages=[].concat((0,o.default)(t.storeFrontImages),(0,o.default)(u)),t.form.storeFrontImgs=[].concat((0,o.default)(t.form.storeFrontImgs),(0,o.default)(c.map((function(e){return e.imgaddr})))),e.hideLoading(),e.showToast({title:"上传成功",icon:"success"}),r.next=17;break;case 14:r.prev=14,r.t0=r["catch"](2),e.hideLoading();case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));function i(e){return r.apply(this,arguments)}return i}()});case 7:case"end":return r.stop()}}),r)})))()},deleteIdCardImage:function(e){var t=this;this.uploadedImagesIdCard.splice(e,1),this.idCardImages.splice(e,1),this.form.storeInteriorImgs=this.idCardImages.map((function(e){return t.getShortPath(e)}))},chooseIdCardImage:function(){var t=this;return(0,s.default)(n.default.mark((function r(){var a,i,c;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a=3,i=t.idCardImages.length,c=a-i,!(c<=0)){r.next=6;break}return e.showToast({title:"最多上传".concat(a,"张图片"),icon:"none"}),r.abrupt("return");case 6:e.chooseImage({count:c,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var r=(0,s.default)(n.default.mark((function r(s){var i,c,u;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return i=s.tempFilePaths,e.showLoading({title:"上传中...",mask:!0}),r.prev=2,r.next=5,t.uploadFiles(i,a);case 5:c=r.sent,u=c.map((function(e){return e.url||e.path||e})),t.uploadedImagesIdCard=[].concat((0,o.default)(t.uploadedImagesIdCard),(0,o.default)(u.map((function(e){return{url:e}})))),t.idCardImages=[].concat((0,o.default)(t.idCardImages),(0,o.default)(u)),t.form.storeInteriorImgs=[].concat((0,o.default)(t.form.storeInteriorImgs),(0,o.default)(c.map((function(e){return e.imgaddr})))),e.hideLoading(),e.showToast({title:"上传成功",icon:"success"}),r.next=17;break;case 14:r.prev=14,r.t0=r["catch"](2),e.hideLoading();case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));function i(e){return r.apply(this,arguments)}return i}()});case 7:case"end":return r.stop()}}),r)})))()},deleteBusinessImage:function(e){var t=this;this.uploadedImagesBusiness.splice(e,1),this.businessImages.splice(e,1),this.form.businessImg=this.businessImages.map((function(e){return t.getShortPath(e)})).join(",")},chooseBusinessImage:function(){var t=this;return(0,s.default)(n.default.mark((function r(){return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var r=(0,s.default)(n.default.mark((function r(a){var o,s;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=a.tempFilePaths,e.showLoading({title:"上传中...",mask:!0}),r.prev=2,r.next=5,t.uploadFiles(o,1);case 5:s=r.sent,t.form.businessImg=s[0].imgaddr,t.businessImgUrl=s[0].url,console.log("=======================",t.businessImgUrl),e.hideLoading(),e.showToast({title:"上传成功",icon:"success"}),r.next=16;break;case 13:r.prev=13,r.t0=r["catch"](2),e.hideLoading();case 16:case"end":return r.stop()}}),r,null,[[2,13]])})));function a(e){return r.apply(this,arguments)}return a}()});case 1:case"end":return r.stop()}}),r)})))()},deletePermitImage:function(e){var t=this;this.uploadedImagesPermit.splice(e,1),this.permitImages.splice(e,1),this.form.otherMaterialImgs=this.permitImages.map((function(e){return t.getShortPath(e)}))},choosePermitImage:function(){var t=this;return(0,s.default)(n.default.mark((function r(){var a,i,c;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a=3,i=t.permitImages.length,c=a-i,!(c<=0)){r.next=6;break}return e.showToast({title:"最多上传".concat(a,"张图片"),icon:"none"}),r.abrupt("return");case 6:e.chooseImage({count:c,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var r=(0,s.default)(n.default.mark((function r(s){var i,c,u;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return i=s.tempFilePaths,e.showLoading({title:"上传中...",mask:!0}),r.prev=2,r.next=5,t.uploadFiles(i,a);case 5:c=r.sent,u=c.map((function(e){return e.url||e.path||e})),t.uploadedImagesPermit=[].concat((0,o.default)(t.uploadedImagesPermit),(0,o.default)(u.map((function(e){return{url:e}})))),t.permitImages=[].concat((0,o.default)(t.permitImages),(0,o.default)(u)),t.form.otherMaterialImgs=[].concat((0,o.default)(t.form.otherMaterialImgs),(0,o.default)(c.map((function(e){return e.imgaddr})))),e.hideLoading(),e.showToast({title:"上传成功",icon:"success"}),r.next=17;break;case 14:r.prev=14,r.t0=r["catch"](2),e.hideLoading();case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));function i(e){return r.apply(this,arguments)}return i}()});case 7:case"end":return r.stop()}}),r)})))()},chooseIdCardFront:function(){var t=this;e.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var r=(0,s.default)(n.default.mark((function r(a){var o,s;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=a.tempFilePaths,e.showLoading({title:"上传中...",mask:!0}),r.prev=2,r.next=5,t.uploadFiles(o,1);case 5:s=r.sent,t.form.idcardImg=s[0].imgaddr||s[0].path||s[0],t.idcardImgUrl=s[0].url||s[0].path||s[0],e.hideLoading(),e.showToast({title:"上传成功",icon:"success"}),r.next=15;break;case 12:r.prev=12,r.t0=r["catch"](2),e.hideLoading();case 15:case"end":return r.stop()}}),r,null,[[2,12]])})));function a(e){return r.apply(this,arguments)}return a}()})},chooseIdCardBack:function(){var t=this;e.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var r=(0,s.default)(n.default.mark((function r(a){var o,s;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=a.tempFilePaths,e.showLoading({title:"上传中...",mask:!0}),r.prev=2,r.next=5,t.uploadFiles(o,1);case 5:s=r.sent,t.form.idcardImgBack=s[0].imgaddr||s[0].path||s[0],t.idcardImgBackUrl=s[0].url||s[0].path||s[0],e.hideLoading(),e.showToast({title:"上传成功",icon:"success"}),r.next=15;break;case 12:r.prev=12,r.t0=r["catch"](2),e.hideLoading();case 15:case"end":return r.stop()}}),r,null,[[2,12]])})));function a(e){return r.apply(this,arguments)}return a}()})},chooseLegalPersonCardFront:function(){var t=this;e.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var r=(0,s.default)(n.default.mark((function r(a){var o,s;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=a.tempFilePaths,e.showLoading({title:"上传中...",mask:!0}),r.prev=2,r.next=5,t.uploadFiles(o,1);case 5:s=r.sent,t.form.idcardImg=s[0].imgaddr||s[0].path||s[0],t.idcardImgUrl=s[0].url||s[0].path||s[0],e.hideLoading(),e.showToast({title:"上传成功",icon:"success"}),r.next=15;break;case 12:r.prev=12,r.t0=r["catch"](2),e.hideLoading();case 15:case"end":return r.stop()}}),r,null,[[2,12]])})));function a(e){return r.apply(this,arguments)}return a}()})},chooseLegalPersonCardBack:function(){var t=this;e.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var r=(0,s.default)(n.default.mark((function r(a){var o,s;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return o=a.tempFilePaths,e.showLoading({title:"上传中...",mask:!0}),r.prev=2,r.next=5,t.uploadFiles(o,1);case 5:s=r.sent,t.form.idcardImgBack=s[0].imgaddr||s[0].path||s[0],t.idcardImgBackUrl=s[0].url||s[0].path||s[0],e.hideLoading(),e.showToast({title:"上传成功",icon:"success"}),r.next=15;break;case 12:r.prev=12,r.t0=r["catch"](2),e.hideLoading();case 15:case"end":return r.stop()}}),r,null,[[2,12]])})));function a(e){return r.apply(this,arguments)}return a}()})},deleteLaborContractImage:function(e){var t=this;this.uploadedLaborContractImages.splice(e,1),this.laborContractImages.splice(e,1),this.form.laborContractImgs=this.laborContractImages.map((function(e){return t.getShortPath(e)}))},chooseLaborContractImage:function(){var t=this;return(0,s.default)(n.default.mark((function r(){var a,i,c;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a=3,i=t.laborContractImages.length,c=a-i,!(c<=0)){r.next=6;break}return e.showToast({title:"最多上传".concat(a,"张图片"),icon:"none"}),r.abrupt("return");case 6:e.chooseImage({count:c,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var r=(0,s.default)(n.default.mark((function r(s){var i,c,u;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return i=s.tempFilePaths,e.showLoading({title:"上传中...",mask:!0}),r.prev=2,r.next=5,t.uploadFiles(i,a);case 5:c=r.sent,u=c.map((function(e){return e.url||e.path||e})),t.uploadedLaborContractImages=[].concat((0,o.default)(t.uploadedLaborContractImages),(0,o.default)(u.map((function(e){return{url:e}})))),t.laborContractImages=[].concat((0,o.default)(t.laborContractImages),(0,o.default)(u)),t.form.laborContractImgs=[].concat((0,o.default)(t.form.laborContractImgs),(0,o.default)(c.map((function(e){return e.imgaddr})))),e.hideLoading(),e.showToast({title:"上传成功",icon:"success"}),r.next=17;break;case 14:r.prev=14,r.t0=r["catch"](2),e.hideLoading();case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));function i(e){return r.apply(this,arguments)}return i}()});case 7:case"end":return r.stop()}}),r)})))()},deleteSocialSecurityImage:function(e){var t=this;this.uploadedSocialSecurityImages.splice(e,1),this.socialSecurityImages.splice(e,1),this.form.socialSecurityImgs=this.socialSecurityImages.map((function(e){return t.getShortPath(e)}))},getShortPath:function(e){return e?e.startsWith("http")?e.replace(this.imgPrefix,""):e:""},getFullPath:function(e){return e?e.startsWith("http")?e:(this.$baseUrl||"")+e:""},chooseSocialSecurityImage:function(){var t=this;return(0,s.default)(n.default.mark((function r(){var a,i,c;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(a=3,i=t.socialSecurityImages.length,c=a-i,!(c<=0)){r.next=6;break}return e.showToast({title:"最多上传".concat(a,"张图片"),icon:"none"}),r.abrupt("return");case 6:e.chooseImage({count:c,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var r=(0,s.default)(n.default.mark((function r(s){var i,c,u;return n.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return i=s.tempFilePaths,e.showLoading({title:"上传中...",mask:!0}),r.prev=2,r.next=5,t.uploadFiles(i,a);case 5:c=r.sent,u=c.map((function(e){return e.url||e.path||e})),t.uploadedSocialSecurityImages=[].concat((0,o.default)(t.uploadedSocialSecurityImages),(0,o.default)(u.map((function(e){return{url:e}})))),t.socialSecurityImages=[].concat((0,o.default)(t.socialSecurityImages),(0,o.default)(u)),t.form.socialSecurityImgs=[].concat((0,o.default)(t.form.socialSecurityImgs),(0,o.default)(c.map((function(e){return e.imgaddr})))),e.hideLoading(),e.showToast({title:"上传成功",icon:"success"}),r.next=17;break;case 14:r.prev=14,r.t0=r["catch"](2),e.hideLoading();case 17:case"end":return r.stop()}}),r,null,[[2,14]])})));function i(e){return r.apply(this,arguments)}return i}()});case 7:case"end":return r.stop()}}),r)})))()}}};t.default=d}).call(this,r(2)["default"])},271:function(e,t,r){"use strict";r.r(t);var a=r(272),n=r.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},272:function(e,t,r){}},[[265,"common/runtime","common/vendor"]]]); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/store-apply/store-apply.js.map