(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["member-member-store-apply"],{"3f89":function(t,e,s){"use strict";s.r(e);var a=s("49da"),i=s("a633");for(var o in i)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(o);s("e35e");var n=s("828b"),r=Object(n["a"])(i["default"],a["b"],a["c"],!1,null,"79868062",null,!1,a["a"],void 0);e["default"]=r.exports},"49da":function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return i})),s.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-uni-view",{staticClass:"page"},[s("v-uni-view",{staticClass:"m-cells m-cells-form"},[s("v-uni-view",{staticClass:"m-cell"},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("入驻类型")))])],1),s("v-uni-view",{staticClass:"m-cell-bd"},[s("v-uni-picker",{staticStyle:{float:"right"},attrs:{mode:"selector",value:t.index,range:t.store_type,"range-key":"name"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.selectStoreType.apply(void 0,arguments)}}},[s("v-uni-label",{staticStyle:{padding:"0 40rpx"}},[t._v(t._s(t.store_type[t.index].name))])],1)],1)],1),s("v-uni-view",{staticClass:"m-cell"},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("店铺名称")))])],1),s("v-uni-view",{staticClass:"m-cell-bd"},[s("v-uni-input",{staticClass:"u-input",attrs:{type:"text",placeholder:t.__("请输入店铺名称")},model:{value:t.store_row.store_name,callback:function(e){t.$set(t.store_row,"store_name",e)},expression:"store_row.store_name"}})],1),t.store_row.store_name?t._e():s("div",{staticClass:"m-cell-ft"},[s("v-uni-view",{staticClass:"m-icon-warn uni-icon uni-icon-info",attrs:{type:"warn"}})],1)],1),t._e(),s("v-uni-view",{staticClass:"m-cell",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.chooseCategory.apply(void 0,arguments)}}},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("经营类目")))])],1),s("v-uni-view",{staticClass:"m-cell-bd"},[s("v-uni-label",[t._v(t._s(t.store_row.store_category_text))])],1),t.store_row.store_category_id?t._e():s("v-uni-view",{staticClass:"m-cell-ft"},[s("v-uni-view",{staticClass:"m-icon-warn uni-icon uni-icon-info",attrs:{type:"warn"}})],1)],1),s("v-uni-view",{staticClass:"m-cell"},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("公司名称")))])],1),s("v-uni-view",{staticClass:"m-cell-bd"},[s("v-uni-input",{staticClass:"u-input",attrs:{type:"text",placeholder:t.__("请输入公司名称")},model:{value:t.store_row.company_name,callback:function(e){t.$set(t.store_row,"company_name",e)},expression:"store_row.company_name"}})],1),t.store_row.company_name?t._e():s("div",{staticClass:"m-cell-ft"},[s("v-uni-view",{staticClass:"m-icon-warn uni-icon uni-icon-info",attrs:{type:"warn"}})],1)],1),s("v-uni-view",{staticClass:"m-cell"},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("开户银行")))])],1),s("v-uni-view",{staticClass:"m-cell-bd"},[s("v-uni-input",{staticClass:"u-input",attrs:{type:"text",placeholder:t.__("……银行……分行……支行")},model:{value:t.store_row.bank_name,callback:function(e){t.$set(t.store_row,"bank_name",e)},expression:"store_row.bank_name"}})],1),t.store_row.bank_name?t._e():s("div",{staticClass:"m-cell-ft"},[s("v-uni-view",{staticClass:"m-icon-warn uni-icon uni-icon-info",attrs:{type:"warn"}})],1)],1),s("v-uni-view",{staticClass:"m-cell"},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("银行账户")))])],1),s("v-uni-view",{staticClass:"m-cell-bd"},[s("v-uni-input",{staticClass:"u-input",attrs:{type:"text",placeholder:t.__("请输入银行账户")},model:{value:t.store_row.bank_account_number,callback:function(e){t.$set(t.store_row,"bank_account_number",e)},expression:"store_row.bank_account_number"}})],1),t.store_row.bank_account_number?t._e():s("div",{staticClass:"m-cell-ft"},[s("v-uni-view",{staticClass:"m-icon-warn uni-icon uni-icon-info",attrs:{type:"warn"}})],1)],1),s("v-uni-view",{staticClass:"m-cell"},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("联系人")))])],1),s("v-uni-view",{staticClass:"m-cell-bd"},[s("v-uni-input",{staticClass:"u-input",attrs:{type:"text",placeholder:t.__("请输入联系人")},model:{value:t.store_row.contacts_name,callback:function(e){t.$set(t.store_row,"contacts_name",e)},expression:"store_row.contacts_name"}})],1),t.store_row.contacts_name?t._e():s("div",{staticClass:"m-cell-ft"},[s("v-uni-view",{staticClass:"m-icon-warn uni-icon uni-icon-info",attrs:{type:"warn"}})],1)],1),s("v-uni-view",{staticClass:"m-cell"},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("联系手机")))])],1),s("v-uni-view",{staticClass:"m-cell-bd"},[s("v-uni-input",{staticClass:"u-input",attrs:{type:"text",placeholder:t.__("请输入联系手机")},model:{value:t.store_row.contacts_phone,callback:function(e){t.$set(t.store_row,"contacts_phone",e)},expression:"store_row.contacts_phone"}})],1),t.store_row.contacts_phone?t._e():s("div",{staticClass:"m-cell-ft"},[s("v-uni-view",{staticClass:"m-icon-warn uni-icon uni-icon-info",attrs:{type:"warn"}})],1)],1),s("v-uni-view",{staticClass:"m-cell"},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("企业地址")))])],1),s("v-uni-view",{staticClass:"m-cell-bd"},[s("v-uni-input",{staticClass:"u-input",attrs:{type:"text",placeholder:t.__("请输入企业地址")},model:{value:t.store_row.company_address,callback:function(e){t.$set(t.store_row,"company_address",e)},expression:"store_row.company_address"}})],1),t.store_row.company_address?t._e():s("div",{staticClass:"m-cell-ft"},[s("v-uni-view",{staticClass:"m-icon-warn uni-icon uni-icon-info",attrs:{type:"warn"}})],1)],1),s("v-uni-view",{staticClass:"m-cell",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSelectAddress.apply(void 0,arguments)}}},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("省/市/区")))])],1),s("v-uni-view",{staticClass:"m-cell-bd"},[s("v-uni-label",[t._v(t._s(t.store_row.company_area))])],1),t.store_row.store_district_id?t._e():s("v-uni-view",{staticClass:"m-cell-ft"},[s("v-uni-view",{staticClass:"m-icon-warn uni-icon uni-icon-info",attrs:{type:"warn"}})],1)],1),s("v-uni-view",{staticClass:"m-cell",staticStyle:{padding:"2rpx 30rpx"}},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("营业执照")))])],1),s("v-uni-view",{staticClass:"m-cell-bd",staticStyle:{padding:"0",margin:"0","line-height":"1"}},[s("v-uni-view",{staticClass:"uni-uploader-body"},[s("v-uni-view",{staticClass:"uni-uploader__files"},[t.store_row.business_license_electronic?[s("v-uni-view",{staticClass:"uni-uploader__file"},[s("v-uni-image",{staticClass:"uni-uploader__img",attrs:{src:t.store_row.business_license_electronic,"data-src":t.store_row.business_license_electronic},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.upImgs.apply(void 0,arguments)}}})],1)]:s("v-uni-view",{staticClass:"uni-uploader__input-box"},[s("v-uni-view",{staticClass:"uni-uploader__input",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.upImgs.apply(void 0,arguments)}}})],1)],2)],1)],1)],1),s("v-uni-view",{staticClass:"m-cell",staticStyle:{padding:"2rpx 30rpx"}},[s("v-uni-view",{staticClass:"m-cell-hd"},[s("v-uni-label",{staticClass:"u-label"},[t._v(t._s(t.__("其它证件")))])],1),s("v-uni-view",{staticClass:"m-cell-bd",staticStyle:{padding:"0",margin:"0","line-height":"1"}},[s("v-uni-view",{staticClass:"uni-uploader-body"},[s("v-uni-view",{staticClass:"uni-uploader__files"},[s("Attachment",{attrs:{mode:"create",canUploadFile:!0,uploadFileUrl:t.Config.URL.upload_file,heaer:t.header,showProcess:!0,attachmentList:t.attachmentList,styleObj:{width:"208rpx",height:"208rpx",margin:"10rpx"}},on:{"update:attachmentList":function(e){arguments[0]=e=t.$handleEvent(e),t.attachmentList=e},"update:attachment-list":function(e){arguments[0]=e=t.$handleEvent(e),t.attachmentList=e},uploadSuccess:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadSuccess.apply(void 0,arguments)}}})],1)],1)],1)],1)],1),s("v-uni-button",{staticClass:"u-btn u-btn-default",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.submitinfo.apply(void 0,arguments)}}},[t._v(t._s(t.__("保存")))]),s("storeCategory",{ref:"storeCategory",attrs:{height:t.height,type:2},on:{confirmCallback:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmCallback.apply(void 0,arguments)}}}),s("mpvue-city-picker",{ref:"mpvueCityPicker",attrs:{themeColor:t.themeColor,pickerValueDefault:t.cityPickerValueDefault},on:{onCancel:function(e){arguments[0]=e=t.$handleEvent(e),t.onCancel.apply(void 0,arguments)},onConfirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}})],1)},i=[]},6680:function(t,e,s){"use strict";s("6a54");var a=s("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(s("9b1b"));s("5c47"),s("a1c1"),s("aa9c"),s("c9b5"),s("bf0f"),s("ab80");var o=s("8f59"),n=a(s("6259")),r=a(s("1985")),c=a(s("795b")),l=a(s("e079")),_={components:{mpvueCityPicker:n.default,storeCategory:l.default,Attachment:c.default},data:function(){return{options:{},height:"500px",index:0,imageUrl:[],store_type:[],store_row:{store_name:"",store_o2o_flag:0,store_category_id:0,store_category_text:"请选择经营类目",company_name:"",bank_name:"",bank_account_number:"",contacts_name:"",contacts_phone:"",store_district_id:"",company_area:"请选择地址",company_address:"",business_license_electronic:"",company_other_files:[]},cityPickerValueDefault:[0,0,0],themeColor:"#007AFF",header:{},attachmentList:[]}},computed:(0,o.mapState)(["Config","StateCode","notice","plantformInfo","shopInfo","userInfo","hasLogin"]),onLoad:function(t){var e=this;uni.setNavigationBarTitle({title:this.__("商家入驻")}),this.store_type=[{id:0,name:this.__("线上网店商家")},{id:1,name:this.__("线下门店商家")}],this.store_row["store_category_text"]=this.__("请选择经营类目"),this.store_row["company_area"]=this.__("请选择地址");var s=this;this.setData({options:t}),this.forceUserInfo((function(t){if(t){r.default.request({url:e.Config.URL.user.joinIn.replace(/typ=e/,"typ=json"),data:{},success:function(t,e,a,i){if(200==e){for(var o in s.store_row.store_category_id=t.store.store_category_id,s.store_category_rows=[],t.store_category_rows)s.store_category_rows.push(t.store_category_rows[o]),t.store.store_category_id==t.store_category_rows[o].store_category_id&&(s.store_category_index=s.store_category_rows.length-1,s.store_row.store_category_id=s.store_category_rows[s.store_category_index].store_category_id,s.store_row.store_category_text=s.store_category_rows[s.store_category_index].store_category_name);if(s.store_row.store_name=t.store.store_name||"",s.store_row.store_district_id=t.store.store_district_id||"",s.store_row.store_area=t.store.store_area||"",s.store_row.store_o2o_flag=t.store.store_o2o_flag||0,s.index=t.store.store_o2o_flag||0,t.company&&(s.store_row.company_name=t.company.company_name||"",s.store_row.company_area=t.company.company_area||"",s.store_row.store_area=t.store.store_area||t.company.company_area||"",s.store_row.bank_name=t.company.bank_name||"",s.store_row.bank_account_number=t.company.bank_account_number||"",s.store_row.contacts_name=t.company.contacts_name||"",s.store_row.contacts_phone=t.company.contacts_phone||"",s.store_row.company_address=t.company.company_address||"",s.store_row.business_license_electronic=t.company.business_license_electronic||"",t.company.company_other_files?s.store_row.company_other_files=t.company.company_other_files.split(","):s.store_row.company_other_files=[]),s.attachmentList=[],s.store_row)for(var n in s.store_row.company_other_files){var r={};r.url=s.store_row.company_other_files[n],r.fileName=s.store_row.company_other_files[n],r.type=s.$.isImg(r.url)?"image":"file",s.attachmentList.push(r)}}}})}}))},onBackPress:function(){if(this.$refs.mpvueCityPicker.showPicker)return this.$refs.mpvueCityPicker.pickerCancel(),!0},onUnload:function(){},methods:(0,i.default)((0,i.default)({},(0,o.mapMutations)(["login","logout","getPlantformInfo","forceUserInfo","getUserInfo"])),{},{uploadSuccess:function(t){200==t.statusCode?uni.showToast({title:this.__("上传成功"),icon:"none"}):uni.showToast({title:this.__("上传失败"),icon:"none"}),console.info(this.attachmentList)},selectStoreType:function(t){this.index=t.detail.value,this.store_row.store_o2o_flag=t.detail.value},selectStoreCategory:function(t){this.store_category_index=t.detail.value,this.store_row.store_category_id=this.store_category_rows[this.store_category_index].store_category_id},submitinfo:function(){var t=this;if(""!=t.store_row.business_license_electronic){for(var e in this.store_row)if(""===this.store_row[e])return void t.$.alert(t.__("请填写完整资料!"));var s=this.store_row;s.company_other_files=[];for(var a=0;a