(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesClient/official/apply"],{"03aa":function(e,n,t){},"7d45":function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return r})),t.d(n,"a",(function(){return o}));var i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.$util.isEmpty(e.merchantData));e.$mp.data=Object.assign({},{$root:{g0:t}})},r=[]},"97c1":function(e,n,t){"use strict";(function(e){t("6cdc");o(t("4a15"));var n=o(t("bbc1"));function o(e){return e&&e.__esModule?e:{default:e}}e(n.default)}).call(this,t("f3be")["createPage"])},a751:function(e,n,t){"use strict";var o=t("03aa"),i=t.n(o);i.a},bbc1:function(e,n,t){"use strict";t.r(n);var o=t("7d45"),i=t("f7c2");for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);t("a751");var a,c=t("0095"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"506a4348",null,!1,o["a"],a);n["default"]=u.exports},d400:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t("8797");function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function r(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var c=function(){t.e("components/plugin/list-cell").then(function(){return resolve(t("1861"))}.bind(null,t)).catch(t.oe)},u=function(){t.e("components/app-area-sel").then(function(){return resolve(t("62ec"))}.bind(null,t)).catch(t.oe)},s=function(){Promise.all([t.e("common/vendor"),t.e("components/plugin/simple-address")]).then(function(){return resolve(t("618a"))}.bind(null,t)).catch(t.oe)},l=function(){Promise.all([t.e("common/vendor"),t.e("components/module/app-avatar")]).then(function(){return resolve(t("d84d"))}.bind(null,t)).catch(t.oe)},f=function(){Promise.all([t.e("common/vendor"),t.e("components/app-uploader")]).then(function(){return resolve(t("f4e1"))}.bind(null,t)).catch(t.oe)},d=function(){Promise.all([t.e("common/vendor"),t.e("components/app-bind-info")]).then(function(){return resolve(t("e6d7"))}.bind(null,t)).catch(t.oe)},m=t("90f4"),p={name:"apply-data",components:{TuiListCell:c,AppAreaSel:u,SimpleAddress:s,AppAvatarModule:l,AppUploader:f,AppBindInfo:d},data:function(){return{merchantData:{},form:{name:"",mobile:"",province:"",city:"",dist:"",address:"",adminName:"",main:1,licenseNo:"",license:"",longitude:"",latitude:"",logo:"",showAddress:""},showRegion:!1,regionData:[],cityPickerValueDefault:[0,0],isSend:0,countDown:119,timer:null,adminName:""}},onLoad:function(){},methods:{resultData:function(e){this.form.license=e.shortUrl},_resultData:function(e){console.log(e),this.form.logo=e.shortUrl},changeMain:function(e){this.form.main=e},bindInfo:function(e){this.form.adminName=e.name,this.form.mobile=e.mobile},init:function(){this.getIntroduceInfo()},getIntroduceInfo:function(){var e=this;(0,o.getIntroduce)(this.option).then((function(n){e.merchantData=n.data.introduce}))},confirmFn:function(){var e=this;(0,o.applyRegister)(r(r({hdShopAdminId:this.option.hdShopAdminId,ghsShopAdminId:this.option.ghsShopAdminId},this.form),{},{style:this.option.style||0,from:this.option.from||0})).then((function(n){e.$util.pageTo({url:"/pagesClient/official/result",type:2,query:{pagestatus:3}})})).catch((function(e){}))},selRegionFn:function(){if(!this.form.city)return this.$msg("请先选择城市！"),!1;this.showRegion=!0},changeAreaFn:function(e){this.form.address=e.title,this.form.showAddress=e.address,this.form.latitude=e.location.lat,this.form.longitude=e.location.lng,this.form.dist=e.district},openAddres:function(){this.$refs.simpleAddress.open()},onCityConfirm:function(e){this.form.province=e.provinceName,this.form.city=e.cityName},formSubmit:function(e){var n=this,t=[{name:"name",rule:["required"],msg:["请填写花店名称"]},{name:"city",rule:["required"],msg:["请选择城市"]},{name:"address",rule:["required"],msg:["请填写地址"]},{name:"adminName",rule:["required"],msg:["请填写昵称"]},{name:"mobile",rule:["required"],msg:["请填写手机号"]}],o=this.form,i=m.validation(o,t);i?this.$msg(i):setTimeout((function(){n.confirmFn()}))}},watch:{}};n.default=p},f7c2:function(e,n,t){"use strict";t.r(n);var o=t("d400"),i=t.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);n["default"]=i.a}},[["97c1","common/runtime","common/vendor"]]]);