1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["member-member-store-apply"],{"0b76":function(t,e,s){"use strict";s.r(e);var a=s("6ef0"),i=s.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"2c39":function(t,e,s){"use strict";s.r(e);var a=s("b62b"),i=s("0b76");for(var o in i)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(o);s("4da6");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},"45dab":function(t,e,s){var a=s("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-79868062]:export{theme_bg:#f30213}.btn_box[data-v-79868062]{padding:%?20?%}.m-cell-bd uni-switch[data-v-79868062]{float:right}.m-cell-hd[data-v-79868062]{width:%?180?%}.m-select-box-msk[data-v-79868062]{position:fixed;width:100%;height:100%;left:0;top:0;background-color:rgba(0,0,0,.5);z-index:3}.m-select-box[data-v-79868062]{position:absolute;width:100%;height:300px;background-color:#fff;left:0;bottom:0}.u-select[data-v-79868062]{width:100%;height:300px;text-align:center}.u-select .m-cell-bd[data-v-79868062]{width:100%;line-height:50px;font-size:%?28?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.u-select .m-cell-bd uni-label[data-v-79868062]{width:100%}.m-select-content[data-v-79868062]{position:relative}.m-close-panel[data-v-79868062]{height:%?60?%;border-bottom:%?1?% solid #dfdfdf;font-size:%?24?%;text-align:right;color:#73ae1f;line-height:%?60?%;box-sizing:border-box;padding:0 %?20?%}.m-cell-select-before .m-cell-bd[data-v-79868062]{padding:0}.m-icon-warn[data-v-79868062]{color:red}',""]),t.exports=e},"4b99":function(t,e,s){var a=s("45dab");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=s("967d").default;i("1bec0a48",a,!0,{sourceMap:!1,shadowMode:!1})},"4da6":function(t,e,s){"use strict";var a=s("4b99"),i=s.n(a);i.a},"6ef0":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("b939")),r=a(s("62cc")),c=a(s("0399")),l=a(s("62ce")),_={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<t.attachmentList.length;a++)t.imageUrl.push(t.attachmentList[a].url),s.company_other_files=t.imageUrl.join(",");t.$.request({url:this.Config.URL.store.add,data:s,success:function(e,s,a,i){200==s?(t.$.showModal(t.__("申请成功,待审核")),setTimeout((function(){t.$.navigateBack(1,(function(){}))}),2e3)):t.$.alert(a)}})}else t.$.alert(t.__("请上传营业执照"))},upImgs:function(t){var e=this,s=uni.getStorageSync("ukey");e.$.chooseImage({count:1,sizeType:["compressed"],success:function(t){e.$.showLoading();var a=t.tempFilePaths;e.$.uploadFile({url:e.Config.URL.upload,method:"POST",filePath:a[0],name:"upfile",formData:{perm_key:s},success:function(t){e.$.hideLoading();var s=e.$.parseJSON(t.data);if(200==s.status){var a=s.data.url;e.store_row.business_license_electronic=a,e.$forceUpdate()}else e.$.confirm(s.msg||e.__("发生错误"))},fail:function(t){e.$.hideLoading()},complete:function(t){e.$.hideLoading()}})},fail:function(t){e.$.hideLoading()},complete:function(t){e.$.hideLoading()}})},chooseCategory:function(t){this.height="550rpx",this.$refs.storeCategory.show()},confirmCallback:function(t,e){console.log(t),console.log(e),this.store_row.store_category_id=e,this.store_row.store_category_text=t},onSelectAddress:function(t){this.$refs.mpvueCityPicker.show()},onCancel:function(t){},onConfirm:function(t){var e=this.$.isNull(t.label.toString())?this.__("请选择地址"):t.label.toString();this.store_row["company_area"]=e,this.store_row["store_area"]=e,this.store_row["store_district_id"]=this.sprintf("%d/%d/%d",t.value[0],t.value[1],t.value[2])}})};e.default=_},b62b: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=[]}}]); |