(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pageA-pages-company-company-action-contacts_address"],{"3cd4":function(t,n,a){"use strict";var e;a.d(n,"b",(function(){return c})),a.d(n,"c",(function(){return i})),a.d(n,"a",(function(){return e}));var c=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("v-uni-view",{staticClass:"bottom-safe-area"},[a("v-uni-view",{staticClass:"p-5"},[a("v-uni-view",{staticClass:"text-auxiliary pb-3"},[a("v-uni-view",{staticClass:"uni-h3"},[t._v("公司地址")])],1),a("v-uni-view",{staticClass:"uni-flex flex-center border-bottom py-2",attrs:{"hover-class":"bg-hover"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.XYBase.openPage({common:!0,url:"city/area?eventName=SelectedArea"})}}},[t.Find.contacts_city&&t.Find.contacts_province&&t.Find.contacts_area?a("v-uni-view",{staticClass:"uni-flex-item py-1 uni-h5 text-auxiliary"},[a("v-uni-text",[t._v(t._s(t.Find.contacts_province))]),a("v-uni-text",{staticClass:"px-1"},[t._v(t._s(t.Find.contacts_city))]),a("v-uni-text",[t._v(t._s(t.Find.contacts_area))])],1):a("v-uni-view",{staticClass:"uni-flex-item py-1 text-small text-grey"},[t._v("选择地址")]),a("v-uni-text",{staticClass:"uni-icon uni-icon-arrowright text-grey"})],1),a("v-uni-view",{staticClass:"uni-flex flex-center border-bottom py-2",attrs:{"hover-class":"bg-hover"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.chooseLocation.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"uni-flex-item py-1 uni-h5 text-auxiliary"},[t._v("在地图上标记")]),a("v-uni-text",{staticClass:"uni-icon uni-icon-arrowright text-grey"})],1),a("v-uni-view",{staticClass:"pt-2"},[a("v-uni-textarea",{staticClass:"w-100 h-250px text-auxiliary uni-h5",attrs:{"auto-height":!0,placeholder:"详细地址",maxlength:"200","placeholder-class":"text-small","confirm-type":"done","show-confirm-bar":!1},on:{input:function(n){arguments[0]=n=t.$handleEvent(n),t.syncForms.apply(void 0,arguments)}},model:{value:t.form.contacts_address,callback:function(n){t.$set(t.form,"contacts_address",n)},expression:"form.contacts_address"}})],1)],1)],1)},i=[]},"6d16":function(t,n,a){var e=a("aaae");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var c=a("4f06").default;c("149969db",e,!0,{sourceMap:!1,shadowMode:!1})},"8cdd":function(t,n,a){"use strict";a.r(n);var e=a("f84c"),c=a.n(e);for(var i in e)"default"!==i&&function(t){a.d(n,t,(function(){return e[t]}))}(i);n["default"]=c.a},aaae:function(t,n,a){var e=a("24fb");n=e(!1),n.push([t.i,'@charset "UTF-8";\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.text-small[data-v-3007173f]{font-weight:400}.h-250px[data-v-3007173f]{height:150px;min-height:150px}',""]),t.exports=n},bc10:function(t,n,a){"use strict";a.r(n);var e=a("3cd4"),c=a("8cdd");for(var i in c)"default"!==i&&function(t){a.d(n,t,(function(){return c[t]}))}(i);a("d92c");var s,o=a("f0c5"),r=Object(o["a"])(c["default"],e["b"],e["c"],!1,null,"3007173f",null,!1,e["a"],s);n["default"]=r.exports},d92c:function(t,n,a){"use strict";var e=a("6d16"),c=a.n(e);c.a},f84c:function(t,n,a){"use strict";var e;a("ac1f"),a("5319"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var c={data:function(){return{form:{contacts_address:"",contacts_area:[],contacts_area1:0,contacts_area2:0,contacts_lng:"",contacts_lat:""},Find:{contacts_city:"",contacts_province:"",contacts_area:"",contacts_address:""}}},onLoad:function(){var t=this;this.XYBase.IsLogin(),this.userInfo=getApp().globalData.userInfo,e=this.getOpenerEventChannel(),e.on("acceptData",(function(n){t.form=n.form,t.Find=n.Find})),uni.$on("SelectedArea",this.SelectedArea)},onBackPress:function(t){if("navigateBack"!=t.from&&!this.form.contacts_address)return uni.showModal({content:"详细地址还未填写，确定离开吗？",confirmText:"离开",cancelText:"取消",success:function(t){t.confirm&&uni.navigateBack()}}),!0},onUnload:function(){uni.$off("SelectedArea",this.SelectedArea)},methods:{syncForms:function(){this.Find.contacts_address=this.form.contacts_address},SelectedArea:function(t){this.Find.contacts_province=t.data[0].title,this.Find.contacts_city=t.data[1].title,this.Find.contacts_area=t.data[2].title,this.form.contacts_area=t.area},chooseLocation:function(){var t=this;uni.chooseLocation({success:function(n){t.form.contacts_lng=n.longitude,t.form.contacts_lat=n.latitude;var a=n.address.replace(t.Find.contacts_province,"").replace(t.Find.contacts_city,"").replace(t.Find.contacts_area,"");uni.showModal({content:"是否更新详细地址为：\n"+a,confirmText:"更新",cancelText:"不更新",success:function(n){n.confirm&&(t.form.contacts_address=a,t.Find.contacts_address=a)}})}})}}};n.default=c}}]);