(window.webpackJsonp=window.webpackJsonp||[]).push([[272],{"1798":function(t,i,e){var n=e(6),s=e(3154);"string"==typeof(s=s.__esModule?s.default:s)&&(s=[[t.i,s,""]]);var o={"insert":"head","singleton":!1};n(s,o);t.exports=s.locals||{}},"3153":function(t,i,e){"use strict";e(1798)},"3154":function(t,i,e){(i=e(7)(!1)).push([t.i,".distributionPoint_search {\n  position: absolute;\n  width: 100%;\n  z-index: 2;\n}\n.distributionPoint .gm-m-main .gm-m-main-body {\n  padding: 1.70667rem 0 0 0 !important;\n}\n.distributionPoint_map {\n  width: 100%;\n}\n.distributionPoint_map > img {\n  width: 100%;\n}\n.distributionPoint_list {\n  /*height: 440px;*/\n  /*overflow-y: auto;*/\n}\n",""]),t.exports=i},"3657":function(t,i,e){"use strict";e.r(i);var n=e(768),s=e.n(n),o=e(821),a={"data":function data(){return{"addressInfo":"","addressList":[],"chooseId":""}},"created":function created(){this.getDistributionList()},"methods":{"getDistributionList":function getDistributionList(t){var i=this;o.a.toast(this);var e={"deliveryPointType":0,"pickupDeliveryKbn":0,"mallCode":this.$utils.storage.global.get("mallCode"),"deliveryPointName":t};this.$api.retailBusinessC.selectDeliveryPointList(e).then((function(t){0===t.code&&(i.$toast.clear(),t.data.length>0&&(i.addressList=t.data,i.$route.query.distributionId&&(i.addSearchHistory(i.$route.query.distributionId,i.addressList),i.chooseId=Number(i.$route.query.distributionId))))})).finally((function(){i.$toast.clear()}))},"chooseAddress":s.a.debounce((function(t){this.chooseId=t.id,this.$utils.PostMessage.sendMessage(this.$route.query.msgId,JSON.stringify(t)),this.$router.go(-1)}),300,{"leading":!0,"trailing":!1}),"addSearchHistory":function addSearchHistory(t,i){var e={};i.forEach((function(n,s){n.id==t&&(e=n,i.splice(s,1))})),i.unshift(e)},"onSearch":function onSearch(t){this.addressList=[],this.getDistributionList(t)}}},r=(e(3153),e(3)),d=Object(r.a)(a,(function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{"staticClass":"distributionPoint"},[e("gm-m-container",[e("gm-m-header",[e("gm-m-nav-header",{"attrs":{"slotsShow":["center"]},"scopedSlots":t._u([{"key":"dynamicsCenter","fn":function(){return[e("span",[t._v("选择地址")])]},"proxy":!0}])}),t._v(" "),e("div",[e("van-search",{"attrs":{"shape":"round","placeholder":"请输入您的收货地址"},"on":{"search":t.onSearch},"model":{"value":t.addressInfo,"callback":function(i){t.addressInfo=i},"expression":"addressInfo"}})],1)],1),t._v(" "),e("gm-m-main",[e("div",t._l(t.addressList,(function(i,n){return e("div",{"key":n,"staticClass":"leading-36","on":{"click":function(e){return t.chooseAddress(i)}}},[e("div",{"class":t.chooseId===i.id?"flex align-center text-c8":"flex align-center"},[e("i",{"staticClass":"gm-icon-dingwei mx-20","staticStyle":{"{color":"#999999}"}}),t._v(" "),e("p",{"class":t.chooseId===i.id?"text-c8":"text-c3"},[t._v(t._s(i.deliveryPointName))])]),t._v(" "),e("div",{"staticClass":"text-line"})])})),0)])],1)],1)}),[],!1,null,null,null);i.default=d.exports}}]);