1"use strict";(self["webpackChunkdemo5_vue2"]=self["webpackChunkdemo5_vue2"]||[]).push([[501],{2501:function(t,e,s){s.r(e),s.d(e,{default:function(){return d}});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"appeal"},[e("div",{staticClass:"tit font-title"},[t._v("åå®¶å
¥é©»")]),0==t.step?e("div",{staticClass:"merchant_tips"},[t._v("温馨æç¤ºï¼åå®¶å
¥é©»ä»
éå®åé约çå¨å¤§ç¦å
³èä¼ä¸")]):t._e(),e("div",{staticClass:"step"},[e("div",{class:["item",t.step>=0?"active":""]},[e("img",{attrs:{src:t.step>=0?"https://cdn.ctfmall.com/goodsother/pc_finish1_v5.png":"https://cdn.ctfmall.com/goodsother/pc_nocircle_v5.png",alt:"1"}}),e("span",[t._v("å¡«åå
¥é©»ç³è¯·")])]),e("div",{staticClass:"line"}),e("div",{class:["item",t.step>=1?"active":""]},[e("img",{attrs:{src:t.step>=1?"https://cdn.ctfmall.com/goodsother/pc_finish1_v5.png":"https://cdn.ctfmall.com/goodsother/pc_nocircle_v5.png",alt:"1"}}),e("span",[t._v("å®¡æ ¸èµæ")])]),e("div",{staticClass:"line"}),e("div",{class:["item",t.step>=2?"active":""]},[e("img",{attrs:{src:t.step>=2?"https://cdn.ctfmall.com/goodsother/pc_finish1_v5.png":"https://cdn.ctfmall.com/goodsother/pc_nocircle_v5.png",alt:"1"}}),e("span",[t._v("å
¥é©»æå")])])]),0==t.step?e("div",{staticClass:"process process-0"},[e("div",{staticClass:"form"},[e("el-form",{ref:"form",attrs:{model:t.form,rules:t.formRules}},[e("el-form-item",{attrs:{prop:"companyName"}},[e("div",{staticClass:"input-wrap"},[e("div",{class:{textplaceholder:!0,fixed:t.companyNameFocus||t.form.companyName.length>0}},[t._v("请è¾å
¥å
¬å¸åç§°*")]),e("el-input",{staticClass:"custom-input",on:{focus:function(e){return t.handleFocus("companyName")},blur:function(e){return t.handleBlur("companyName")}},model:{value:t.form.companyName,callback:function(e){t.$set(t.form,"companyName",e)},expression:"form.companyName"}})],1)]),e("el-form-item",{attrs:{prop:"contact"}},[e("div",{staticClass:"input-wrap"},[e("div",{class:{textplaceholder:!0,fixed:t.contactFocus||t.form.contact.length>0}},[t._v("请è¾å
¥è系人*")]),e("el-input",{staticClass:"custom-input",on:{focus:function(e){return t.handleFocus("contact")},blur:function(e){return t.handleBlur("contact")}},model:{value:t.form.contact,callback:function(e){t.$set(t.form,"contact",e)},expression:"form.contact"}})],1)]),e("el-form-item",{attrs:{prop:"contactNumber"}},[e("div",{staticClass:"input-wrap"},[e("div",{class:{textplaceholder:!0,fixed:t.contactNumberFocus||t.form.contactNumber.length>0}},[t._v("请è¾å
¥èç³»çµè¯*")]),e("el-input",{staticClass:"custom-input",on:{focus:function(e){return t.handleFocus("contactNumber")},blur:function(e){return t.handleBlur("contactNumber")}},model:{value:t.form.contactNumber,callback:function(e){t.$set(t.form,"contactNumber",e)},expression:"form.contactNumber"}})],1)]),e("el-form-item",{attrs:{prop:"email"}},[e("div",{staticClass:"input-wrap"},[e("div",{class:{textplaceholder:!0,fixed:t.emailFocus||t.form.email.length>0}},[t._v("请è¾å
¥çµåé®ç®±*")]),e("el-input",{staticClass:"custom-input",on:{focus:function(e){return t.handleFocus("email")},blur:function(e){return t.handleBlur("email")}},model:{value:t.form.email,callback:function(e){t.$set(t.form,"email",e)},expression:"form.email"}})],1)]),e("el-form-item",{attrs:{prop:"province"}},[e("div",{staticClass:"input-wrap"},[e("div",{class:{textplaceholder:!0,fixed:!!t.form.province}},[t._v("è¯·éæ©æå¨ç")]),e("el-select",{attrs:{placeholder:"","popper-append-to-body":!1,"popper-options":{boundariesElement:"body"}},on:{change:t.provinceChange},model:{value:t.form.province,callback:function(e){t.$set(t.form,"province",e)},expression:"form.province"}},t._l(t.provinceList,function(t){return e("el-option",{key:t.ID,attrs:{label:t.Name,value:t.ID}})}),1),e("div",{staticClass:"select-arrow"},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})])],1)]),e("div",{staticClass:"layout"},[e("div",{staticClass:"layout-item"},[e("el-form-item",{attrs:{prop:"city"}},[e("div",{staticClass:"input-wrap"},[e("div",{class:{textplaceholder:!0,fixed:!!t.form.city}},[t._v("è¯·éæ©æå¨å¸")]),e("el-select",{attrs:{placeholder:"","popper-append-to-body":!1,"popper-options":{boundariesElement:"body"}},on:{change:t.cityChange},model:{value:t.form.city,callback:function(e){t.$set(t.form,"city",e)},expression:"form.city"}},t._l(t.useCityList,function(t){return e("el-option",{key:t.ID,attrs:{label:t.Name,value:t.ID}})}),1),e("div",{staticClass:"select-arrow"},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})])],1)])],1),e("div",{staticClass:"layout-item"},[e("el-form-item",{attrs:{prop:"district"}},[e("div",{staticClass:"input-wrap"},[e("div",{class:{textplaceholder:!0,fixed:!!t.form.district}},[t._v("è¯·éæ©æå¨åºãè¡é")]),e("el-select",{attrs:{placeholder:"","popper-append-to-body":!1,"popper-options":{boundariesElement:"body"}},model:{value:t.form.district,callback:function(e){t.$set(t.form,"district",e)},expression:"form.district"}},t._l(t.useAreaList,function(t){return e("el-option",{key:t.ID,attrs:{label:t.Name,value:t.ID}})}),1),e("div",{staticClass:"select-arrow"},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})])],1)])],1)]),e("el-form-item",{attrs:{prop:"street"}},[e("div",{staticClass:"input-wrap"},[e("div",{class:{textplaceholder:!0,fixed:t.streetFocus||t.form.street.length>0}},[t._v("请è¾å
¥è¯¦ç»å°å")]),e("el-input",{staticClass:"custom-input",on:{focus:function(e){return t.handleFocus("street")},blur:function(e){return t.handleBlur("street")}},model:{value:t.form.street,callback:function(e){t.$set(t.form,"street",e)},expression:"form.street"}})],1)]),e("el-form-item",{staticClass:"el-form-item-default",attrs:{prop:"agreeToTerms"}},[e("div",{staticClass:"is-default cursor-pointer",on:{click:t.handleDefault}},[e("div",{class:["custom-checkbox",1==t.form.agreeToTerms?"checked":""]}
1),e("p",[t._v("æå·²é
读并åæä»¥ä¸åè®®"),e("span",{on:{click:t.toTerms}},[t._v("ãå¨å¤§ç¦å®æ¹åååå®¶ç®¡çæ»åã")])])])])],1),e("div",{staticClass:"submit common-btn common-btn-fill-red-4",on:{click:t.handleSubmitSecond}},[t._v("æäº¤ç³è¯·")])],1)]):1==t.step?e("div",{staticClass:"process process-2"},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_submint_v5.png",alt:"æäº¤æå"}}),e("div",{staticClass:"status font-title"},[t._v("æäº¤æå")]),e("div",{staticClass:"txt"},[t._v("æ¨çèµæå·²æäº¤æåï¼å°ä¼å®æä¸å䏿¨èç³»ï¼")]),e("div",{staticClass:"btn common-btn common-btn-fill-red-3",on:{click:t.toIndex}},[t._v("è¿åé¦é¡µ")])]):2==t.step?e("div",{staticClass:"process process-2"},[e("img",{attrs:{src:"https://cdn.ctfmall.com/path/od_complete_v5.png",alt:"æäº¤æå"}}),e("div",{staticClass:"status font-title"},[t._v("å
¥é©»æå")]),e("div",{staticClass:"txt"},[t._v("æåæ¨å
¥é©»æåï¼ ")]),e("div",{staticClass:"btn common-btn common-btn-fill-red-3",on:{click:t.toIndex}},[t._v("è¿åé¦é¡µ")])]):t._e()])},o=[],a=s(5353),i=s(805),c=s(3712),n={data(){const t=(t,e,s)=>{if(!e)return s(new Error("请è¾å
¥æ¨çææºå·ç "));{const t=/^1\d{10}$/;if(!t.test(e))return s(new Error("请è¾å
¥æ£ç¡®çææºå·"));s()}};return{step:0,form:{companyName:"",contact:"",contactNumber:"",email:"",province:"",district:"",city:"",street:"",agreeToTerms:0},formRules:{companyName:[{required:!0,message:"请è¾å
¥å
¬å¸åç§°",trigger:"blur"}],contact:[{required:!0,message:"请è¾å
¥è系人",trigger:"blur"}],contactNumber:[{validator:t,trigger:"blur"}],province:[{required:!0,message:"è¯·éæ©",trigger:"change"}],city:[{required:!0,message:"è¯·éæ©",trigger:"change"}],district:[{required:!0,message:"è¯·éæ©",trigger:"change"}],email:[{required:!0,message:"请è¾å
¥çµåé®ç®±",trigger:"blur"},{type:"email",message:"请è¾å
¥æ£ç¡®çé®ç®±å°å",trigger:["blur","change"]}],street:[{required:!0,message:"请è¾å
¥æ¨è¯¦ç»å¡«åæ¶è´§å°å",trigger:"blur"}]},companyNameFocus:!1,contactFocus:!1,emailFocus:!1,contactNumberFocus:!1,streetFocus:!1,noFocus:!1,codeFocus:!1,complaintNumber:"",result:"",dataList:[],provinceList:[],useCityList:[],useAreaList:[]}},computed:{...(0,a.L8)(["userInfo","bodyZoom"])},created(){this.getregionListFn(),this.merchantRegisterResultFn()},methods:{async merchantRegisterResultFn(){try{let t={uid:this.userInfo.uid},e=await(0,i.ZC)(t);if(200==e.code)switch(e.data){case 0:this.step=1;break;case 1:this.step=2;break;case 2:this.step=0;break;default:this.step=0}else this.$toast(e.msg)}catch(t){console.error("è·ååå®¶å
¥é©»è¯¦æ
åºé:",t)}},handleFocus(t){this[t+"Focus"]=!0},handleBlur(t){this[t+"Focus"]=!1},toIndex(){this.$router.push("/")},async handleSubmitSecond(){let t=await this.$refs.form.validate();if(!t)return;if(1!==this.form.agreeToTerms)return void this.$toast("请åæãå¨å¤§ç¦å®æ¹åååå®¶ç®¡çæ»åã");const e=this.$loading({lock:!0});try{let t={...this.form,uid:this.userInfo.uid};delete t.agreeToTerms;let s=await(0,i.C6)(t);e.close(),200==s.code?this.step=1:this.$toast(s.msg)}catch(s){e.close(),console.log("æäº¤åå®¶å
¥é©»ç³è¯·åºé:",s)}},provinceChange(t,e){e||(this.useCityList=[],this.useAreaList=[],this.form.city="",this.form.district=""),this.useCityList=this.dataList.filter(e=>e.PID===t)},cityChange(t,e){e||(this.form.district="",this.useAreaList=[]),this.useAreaList=this.dataList.filter(e=>e.PID===t)},handleDefault(){this.form.agreeToTerms=1^this.form.agreeToTerms},getregionListFn(){return new Promise((t,e)=>{if(this.useCityList=[],this.useAreaList=[],this.dataList.length>0)t();else{const s=this.$loading({lock:!0});(0,c.Li)().then(r=>{r.data&&r.data.length>0?(this.dataList=r.data,r.data.map(t=>{1==t.PID&&this.provinceList.push(t)}),s.close(),t()):(s.close(),e())}).catch(()=>{s.close(),e()})}})},toTerms(){this.toPageBlank("/article/detail?id=23")}}},l=n,m=s(1656),u=(0,m.A)(l,r,o,!1,null,"3de4554a",null),d=u.exports},3712:function(t,e,s){s.d(e,{GA:function(){return o},Li:function(){return i},M1:function(){return c},W1:function(){return n},Z1:function(){return a}});var r=s(8314);const o=(t={})=>(0,r.kN)("get","/ctfmall-common2-server/userAddress/getAddress",t),a=(t={})=>(0,r.kN)("post","/ctfmall-common2-server/userAddress/deleteAddress",t),i=(t={})=>(0,r.kN)("get","/ctfmall-common2-server/regin/getRegin",t),c=(t={})=>(0,r.kN)("post","/ctfmall-common2-server/userAddress/modifyAddress",t),n=(t={})=>(0,r.kN)("post","/ctfmall-common2-server/userAddress/createAddress",t)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.