(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/pointManage"],{"2ccc":function(e,n,t){"use strict";t.d(n,"b",(function(){return s})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){return i}));var i={uniList:function(){return t.e("components/uni-list/uni-list").then(t.bind(null,"bdc8"))},uniListItem:function(){return t.e("components/uni-list-item/uni-list-item").then(t.bind(null,"83de"))}},s=function(){var e=this,n=e.$createElement;e._self._c},o=[]},"386b":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t("2681"),s=function(){t.e("components/uni-list/uni-list").then(function(){return resolve(t("bdc8"))}.bind(null,t)).catch(t.oe)},o=function(){t.e("components/uni-list-item/uni-list-item").then(function(){return resolve(t("83de"))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/uni-popup/uni-popup").then(function(){return resolve(t("ebf3"))}.bind(null,t)).catch(t.oe)},d=function(){Promise.all([t.e("common/vendor"),t.e("components/wangding-pickerAddress/wangding-pickerAddress")]).then(function(){return resolve(t("9a3b"))}.bind(null,t)).catch(t.oe)},u={components:{uniList:s,uniListItem:o,pickerAddress:d,uniPopup:a},data:function(){return{name:"",phone:"",show:!0,addressDetail:"",showDel:!1,latlng:"",detailed_address:"",address:"",point_id:0,bgTime:"00:00",edTime:"00:00",time:"00:00",timeOptions:[["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"],["00","05","10","15","20","25","30","35","40","45","50","55"]]}},onLoad:function(n){var t="新增自提点";if("edit"===n.type){t="编辑自提点";var i=JSON.parse(n.data);console.log(i),this.name=i.name,this.show=1==i.is_show,this.latlng=i.latitude+","+i.longitude,this.detailed_address=i.detailed_address,this.address=i.address,this.phone=i.phone,this.point_id=i.id;var s=i.day_time,o=s.split(" - ");this.bgTime=o[0].slice(0,5),this.edTime=o[1].slice(0,5),console.log(o,"arr++++++++++++++++++++++++")}this.manageType=n.type,e.setNavigationBarTitle({title:t})},methods:{onCityClick:function(e){var n=e.data,t=n[0],i=n[1],s=n[2];this.address=t+","+i+","+s},chooseLocation:function(){var n=this;e.chooseLocation({success:function(e){console.log("纬度："+e.latitude),console.log("经度："+e.longitude),n.latlng=e.latitude+","+e.longitude}})},switchChange:function(e){this.show=e.value},confirm:function(){var n=this;if(n.name)if(/(^1[3|4|5|7|8][0-9]{9}$)/.test(n.phone))if(n.address)if(n.latlng){n.bgTime.slice(0,2),n.edTime.slice(0,2);e.showLoading({title:"提交中...",mask:!0}),(0,i.editPoint)({name:n.name,phone:n.phone,address:n.address.split(","),detailed_address:n.detailed_address,latlng:n.latlng,is_show:n.show?1:0,day_time:[n.bgTime+":00",n.edTime+":00"]},n.point_id).then((function(t){e.hideLoading(),n.$api.prePage().refreshList(),e.showToast({title:"提交成功",duration:2e3}),setTimeout((function(){e.navigateBack()}),800)}))}else this.$api.msg("请输入经纬度");else this.$api.msg("请选择地址");else this.$api.msg("请输入正确的手机号码");else this.$api.msg("请填写自提点名称")},bindBgTimeChange:function(e){console.log(e,"shijian"),this.bgTime=e.detail.value},bindEdTimeChange:function(e){this.edTime=e.detail.value}}};n.default=u}).call(this,t("543d")["default"])},"3b6a":function(e,n,t){"use strict";(function(e){t("5935");i(t("66fd"));var n=i(t("56d2"));function i(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},"56d2":function(e,n,t){"use strict";t.r(n);var i=t("2ccc"),s=t("bca5");for(var o in s)"default"!==o&&function(e){t.d(n,e,(function(){return s[e]}))}(o);t("6ea3");var a,d=t("f0c5"),u=Object(d["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);n["default"]=u.exports},"6ea3":function(e,n,t){"use strict";var i=t("b2c1"),s=t.n(i);s.a},b2c1:function(e,n,t){},bca5:function(e,n,t){"use strict";t.r(n);var i=t("386b"),s=t.n(i);for(var o in i)"default"!==o&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=s.a}},[["3b6a","common/runtime","common/vendor"]]]);