bztang-admin/addons/yun_shop/static/app/js/chunk-3ebb0515.43a35d6a.js

1 line
16 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3ebb0515"],{"1b19":function(e,a,t){var i=t("24fb");a=i(!1),a.push([e.i,".avatar[data-v-33d672fe]{width:100%;height:100%}#supplier-center[data-v-33d672fe]{text-align:left}#supplier-center .info-box h1[data-v-33d672fe],#supplier-center .info-box ul h1[data-v-33d672fe]{line-height:2.25rem;color:#888;padding:0 .875rem;font-size:16px;text-align:left}#supplier-center .info-box ul li[data-v-33d672fe]{background-color:#fff;line-height:2.75rem;font-size:14px;text-align:left;padding:0 1.25rem;border-bottom:.0625rem solid #ebebeb;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#supplier-center .info-box ul li input[data-v-33d672fe]{border:none;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#supplier-center .info-box ul li i[data-v-33d672fe]{font-size:1.5rem;color:#c9c9c9;line-height:3.75rem}#supplier-center .info-box ul #logo[data-v-33d672fe]{line-height:3.75rem;height:3.75rem;position:relative;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#supplier-center .info-box ul #logo span[data-v-33d672fe]{line-height:2.75rem}#supplier-center .info-box ul #logo .spare[data-v-33d672fe]{position:absolute;right:2.75rem;top:.375rem;width:3rem;height:3rem;border:.0625rem dashed #ccc;background-color:#fafafa;border-radius:.1875rem;margin:0 auto;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#supplier-center .info-box ul #logo .spare i[data-v-33d672fe]{font-size:1.5rem;margin:0 auto;line-height:3rem;color:#ccc}#supplier-center .info-box .btn[data-v-33d672fe]{margin:1.25rem 0;padding:0 .875rem;font-size:16px}#supplier-center .info-box .btn button[data-v-33d672fe]{color:#fff;background-color:#f15353;height:2.875rem;border-radius:.25rem;border:none;width:100%}#supplier-center .van-cell[data-v-33d672fe]{padding:10px;font-size:16px}#supplier-center .van-cell[data-v-33d672fe] input::-webkit-input-placeholder{color:#555}#supplier-center .van-cell[data-v-33d672fe] input::-moz-placeholder{color:#555}#supplier-center .van-cell[data-v-33d672fe] input:-ms-input-placeholder{color:#555}#supplier-center .van-cell[data-v-33d672fe] input::-ms-input-placeholder{color:#555}#supplier-center .van-cell[data-v-33d672fe] input::placeholder{color:#555}#supplier-center .van-cell[data-v-33d672fe] .van-field__label{white-space:nowrap;color:#333;width:8.1em}#supplier-center .license_img[data-v-33d672fe]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}#supplier-center .industry[data-v-33d672fe],#supplier-center .licence[data-v-33d672fe]{font-size:16px;margin:20px 0 20px 10px;display:block}#supplier-center .group[data-v-33d672fe]{font-size:16px;margin:10px 0 0 10px;display:block}#supplier-center .img_box[data-v-33d672fe]{width:45%;margin-bottom:10px}",""]),e.exports=a},"45e8":function(e,a,t){var i=t("1b19");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=t("499e").default;n("239d2f4d",i,!0,{sourceMap:!1,shadowMode:!1})},"460d":function(e,a,t){"use strict";t.r(a);var i=function(){var e=this,a=e.$createElement,i=e._self._c||a;return i("div",{attrs:{id:"supplier-center"}},[i("c-title",{attrs:{hide:!1,text:"信息管理"}}),i("div",{staticClass:"info-box"},[i("h1",[e._v("基本信息")]),i("section",[i("van-field",{attrs:{label:"真实姓名:",placeholder:"请输入真实姓名",center:"",clearable:""},model:{value:e.information.my_name,callback:function(a){e.$set(e.information,"my_name",a)},expression:"information.my_name"}}),i("van-field",{attrs:{label:"手机号码:",placeholder:"请输入手机号码",center:"",clearable:""},model:{value:e.information.phone_number,callback:function(a){e.$set(e.information,"phone_number",a)},expression:"information.phone_number"}})],1),i("h1",[e._v("店铺信息")]),i("section",[i("van-field",{attrs:{label:"店铺名称:",placeholder:"请输入店铺姓名",center:"",clearable:""},model:{value:e.information.store_name,callback:function(a){e.$set(e.information,"store_name",a)},expression:"information.store_name"}})],1),i("section",[e._m(0),i("div",{staticStyle:{background:"white","padding-bottom":"10px","box-sizing":"border-box","border-bottom":"solid 0.0625rem #ebebeb"}},[i("div",{staticStyle:{"text-align":"center"}},[i("van-uploader",{attrs:{"after-read":e.onRead}},[i("div",{staticStyle:{padding:"1rem",width:"10rem",height:"10rem",border:"1px dashed #333",margin:"0 auto"}},[i("img",{staticClass:"avatar",staticStyle:{width:"100%"},attrs:{src:e.imageUrl?e.imageUrl:t("9619f")}})])])],1),i("span",{staticClass:"group"},[e._v("供应商分组:"+e._s(e.information.group))]),i("div",[e.information.imageList&&e.information.imageList.length>0?i("span",{staticClass:"licence"},[e._v("营业执照")]):e._e(),i("div",{staticClass:"license_img"},[e._l(e.information.imageList,(function(e,a){return[i("img",{key:a,staticClass:"img_box",attrs:{src:e,alt:""}})]}))],2)]),i("span",{staticClass:"industry"},[e._v("行业:"+e._s(e.information.category))])])]),e.fill_set?i("h1",[e._v("收款信息")]):e._e(),i("section",[1==e.fill_set.company_bank?i("van-field",{attrs:{type:"number",label:"银行卡账号:",placeholder:"请输入银行账号",center:"",clearable:""},model:{value:e.information.bank_account,callback:function(a){e.$set(e.information,"bank_account","string"===typeof a?a.trim():a)},expression:"information.bank_account"}}):e._e(),1==e.fill_set.bank_username?i("van-field",{attrs:{label:"开户人姓名:",placeholder:"请输入开户人姓名",center:"",clearable:""},model:{value:e.information.owner_name,callback:function(a){e.$set(e.information,"owner_name","string"===typeof a?a.trim():a)},expression:"information.owner_name"}}):e._e(),1==e.fill_set.bank_of_accounts?i("van-field",{attrs:{label:"开户银行:",placeholder:"请输入开户银行",center:"",clearable:""},model:{value:e.information.opening_bank,callback:function(a){e.$set(e.information,"opening_bank","string"===typeof a?a.trim():a)},expression:"information.opening_bank"}}):e._e(),1==e.fill_set.opening_branch?i("van-field",{attrs:{label:"开户支行:",placeholder:"请输入开户支行",center:"",clearable:""},model:{value:e.information.opening_branch,callback:function(a){e.$set(e.information,"opening_branch","string"===typeof a?a.trim():a)},expression:"information.opening_branch"}}):e._e(),1==e.fill_set.company_ali?i("van-field",{attrs:{label:"企业支付宝账号:",placeholder:"请输入企业支付宝账号",center:"",clearable:""},model:{value:e.information.enterprise_alipay,callback:function(a){e.$set(e.information,"enterprise_alipay","string"===typeof a?a.trim():a)},expression:"information.enterprise_alipay"}}):e._e(),1==e.fill_set.company_ali_username?i("van-field",{attrs:{label:"企业支付宝用户名:",placeholder:"请输入企业支付宝用户名",center:"",clearable:""},model:{value:e.information.enterprise_alipay_user,callback:function(a){e.$set(e.information,"enterprise_alipay_user","string"===typeof a?a.trim():a)},expression:"information.enterprise_alipay_user"}}):e._e(),1==e.fill_set.ali?i("van-field",{attrs:{label:"支付宝账号:",placeholder:"请输入支付宝账号",center:"",clearable:""},model:{value:e.information.alipay,callback:function(a){e.$set(e.information,"alipay","string"===typeof a?a.trim():a)},expression:"information.alipay"}}):e._e(),1==e.fill_set.ali_username?i("van-field",{attrs:{label:"支付宝用户名:",placeholder:"请输入支付宝用户名",center:"",clearable:""},model:{value:e.information.alipay_username,callback:function(a){e.$set(e.information,"alipay_username","string"===typeof a?a.trim():a)},expression:"information.alipay_username"}}):e._e(),1==e.fill_set.wechat?i("van-field",{attrs:{label:"微信账号:",placeholder:"请输入微信账号",center:"",clearable:""},model:{value:e.information.weChat_account,callback:function(a){e.$set(e.information,"weChat_account","string"===typeof a?a.trim():a)},expression:"information.weChat_account"}}):e._e()],1),i("div",{staticClass:"btn"},[i("button",{attrs:{type:"buttom"},on:{click:e.modifyInformation}},[e._v("确认修改")])])])],1)},n=[function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticStyle:{height:"50px","text-align":"left","line-height":"50px",background:"white"}},[t("span",{staticStyle:{"font-size":"16px","margin-left":"10px"}},[e._v("店铺LOGO")])])}],o=(t("e7e5"),t("d399")),r=(t("ac1f"),t("00b4"),t("14d9"),t("d3b7"),t("3ca3"),t("ddb0"),t("2b3d"),t("9861"),t("88a7"),t("271a"),t("5494"),t("6968")),l={data:function(){return{photosize:4194304,information:{my_name:"",phone_number:"",store_name:"",store_logo:"",bank_account:"",owner_name:"",opening_bank:"",opening_branch:"",enterprise_alipay:"",enterprise_alipay_user:"",alipay:"",alipay_username:"",weChat_account:"",category:"",group:"",imageList:[]},imageUrl:"",uploadUrl:"",jumpState:!0,fill_set:{}}},created:function(){this.getFillSet()},activated:function(){this.init(),this.urlUp(),this.getJson()},methods:{getFillSet:function(){var e=this;$http.post("plugin.supplier.frontend.info.getFillSet").then((function(a){1===a.result&&(e.fill_set=a.data.fill_set)})).catch((function(e){}))},init:function(){for(var e in this.information)this.information[e]="";this.imageUrl=""},getJson:function(){var e=this,a={member_id:this.$route.params.member_id};$http.post("plugin.supplier.frontend.info.index",a).then((function(a){if(1===a.result)e.information.my_name=a.data.realname,e.information.phone_number=a.data.mobile,e.information.store_name=a.data.store_name,e.information.store_logo=a.data.logo,e.imageUrl=a.data.logo,e.information.bank_account=a.data.company_bank,e.information.owner_name=a.data.bank_username,e.information.opening_bank=a.data.bank_of_accounts,e.information.opening_branch=a.data.opening_branch,e.information.enterprise_alipay=a.data.company_ali,e.information.enterprise_alipay_user=a.data.company_ali_username,e.information.alipay=a.data.ali,e.information.alipay_username=a.data.ali_username,e.information.weChat_account=a.data.wechat,e.information.category=a.data.has_one_category?a.data.has_one_category.title:"默认行业",e.information.group=a.data.has_one_group?a.data.has_one_group.title:"默认分组",e.information.imageList=a.data.has_one_aptitude.aptitude;else{if(a.data.url)return e.$notify(a.msg),window.location.href=a.data.url,0;e.$notify(a.msg)}}),(function(e){}))},modifyInformation:function(){var e=this;if(e.jumpJudge(),1==e.jumpState){if(e.fun.isMoblie(e.information.phone_number))return void this.$notify("请输入正确的手机号");if("1"==this.fill_set.company_bank&&!/^[0-9]*$/.test(e.information.bank_account))return void this.$notify("请输入正确的银行卡账号");if("1"==this.fill_set.company_ali&&!/^(?:\w+\.?)*\w+@(?:\w+\.)+\w+|\d{9,11}$/.test(e.information.enterprise_alipay))return void this.$notify("请输入正确的企业支付宝账号");if("1"==this.fill_set.ali&&!/^(?:\w+\.?)*\w+@(?:\w+\.)+\w+|\d{9,11}$/.test(e.information.alipay))return void this.$notify("请输入正确的支付宝账号");if("1"==this.fill_set.wechat&&!/^[a-zA-Z]([-_a-zA-Z0-9]{5,19})+$/.test(e.information.weChat_account))return void this.$notify("请输入正确的微信号");var a={realname:e.information.my_name,mobile:e.information.phone_number,store_name:e.information.store_name,logo:e.information.store_logo,company_bank:e.information.bank_account,bank_username:e.information.owner_name,bank_of_accounts:e.information.opening_bank,opening_branch:e.information.opening_branch,company_ali:e.information.enterprise_alipay,company_ali_username:e.information.enterprise_alipay_user,ali:e.information.alipay,ali_username:e.information.alipay_username,wechat:e.information.weChat_account};$http.post("plugin.supplier.frontend.info.edit",a).then((function(a){1===a.result?(e.$router.push(e.fun.getUrl("SupplierCenter",{uid:e.$route.params.member_id})),e.$notify({background:"#f0f9eb",message:"修改成功",color:"#67c23a"})):e.$notify(a.msg)}),(function(e){}))}else e.$notify({background:"#fef0f0",message:"填写信息不完整",color:"#f56c6c"})},jumpJudge:function(){this.jumpState=!0,this.information.my_name&&this.information.phone_number&&this.information.store_name&&this.information.store_logo||(this.jumpState=!1),this.fill_set&&("1"==this.fill_set.company_bank&&""==this.information.bank_account&&(this.jumpState=!1),"1"==this.fill_set.bank_username&&""==this.information.owner_name&&(this.jumpState=!1),"1"==this.fill_set.bank_of_accounts&&""==this.information.opening_bank&&(this.jumpState=!1),"1"==this.fill_set.opening_branch&&""==this.information.opening_branch&&(this.jumpState=!1),"1"==this.fill_set.company_ali&&""==this.information.enterprise_alipay&&(this.jumpState=!1),"1"==this.fill_set.company_ali_username&&""==this.information.enterprise_alipay_user&&(this.jumpState=!1),"1"==this.fill_set.ali&&""==this.information.alipay&&(this.jumpState=!1),"1"==this.fill_set.ali_username&&""==this.information.alipay_username&&(this.jumpState=!1),"1"==this.fill_set.wechat&&""==this.information.weChat_account&&(this.jumpState=!1)),""==this.imageUrl&&(this.jumpState=!1)},urlUp:function(){this.uploadUrl=this.fun.getRealUrl("upload.uploadPic",{})},handleStoreSuccess:function(e,a){this.imageUrl=URL.createObjectURL(a.raw),1==e.result?this.information.store_logo=e.data.img:Object(o["a"])(e.msg)},beforeUpload:function(e){var a="image/png"===e.type||"image/jpeg"===e.type,t=e.size/1024/1024<2;return a||this.$notify("上传头像图片只能是 JPG或PNG 格式!"),t||this.$notify("上传头像图片大小不能超过 2MB!"),a&&t},onRead:function(e){var a=new FormData;a.append("file",e.file);var t=this;axios.post(this.uploadUrl,a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(a){var i=a.data;1==i.result?(t.imageUrl=URL.createObjectURL(e.file),t.information.store_logo=i.data.img):Object(o["a"])(i.msg)})).catch((function(e){}))},onphotosize:function(e){this.$notify("上传图片大小不能超过 2MB!")}},components:{cTitle:r["a"]}},s=l,c=s,f=(t("63f6"),t("2877")),p=Object(f["a"])(c,i,n,!1,null,"33d672fe",null);a["default"]=p.exports},"63f6":function(e,a,t){"use strict";t("45e8")},"9619f":function(e,a){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAGv0lEQVR4Xu2dUYgVZRiGv292C89uiQQREVFEBhaUheZFIokXQtBNN5nmRRey5IaU7PyzexEdunFmznI2pNWQ6EIs7b7Ai3ApKrKMJAgFJcoL6SaCaPdIuztfzLK7oOn6enbc+c+c91zKO///z/N+PHrOGTwqXfZqNBovZln2nIg8KyKb8ttX1e/M7AdV/do591k3IdFuudkDBw482tPTc2yh9CXu+/Ts7OyOkZGR37qBTVcMQJIke1V1HC3UzK6o6n7n3GH0mk7NVX4A4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