(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/set/pointManage"],{203:function(e,n,t){"use strict";(function(e){var n=t(3);t(25);n(t(24));var i=n(t(204));wx.__webpack_require_UNI_MP_PLUGIN__=t,e(i.default)}).call(this,t(1)["createPage"])},204:function(e,n,t){"use strict";t.r(n);var i=t(205),o=t(207);for(var s in o)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(s);t(209);var a,r=t(39),d=Object(r["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],a);d.options.__file="pages/set/pointManage.vue",n["default"]=d.exports},205:function(e,n,t){"use strict";t.r(n);var i=t(206);t.d(n,"render",(function(){return i["render"]})),t.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(n,"components",(function(){return i["components"]}))},206:function(e,n,t){"use strict";var i;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return s})),t.d(n,"components",(function(){return i}));try{i={uniList:function(){return t.e("components/uni-list/uni-list").then(t.bind(null,652))},uniListItem:function(){return t.e("components/uni-list-item/uni-list-item").then(t.bind(null,659))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement;e._self._c},s=!1,a=[];o._withStripped=!0},207:function(e,n,t){"use strict";t.r(n);var i=t(208),o=t.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(s);n["default"]=o.a},208:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t(49),o=function(){t.e("components/uni-list/uni-list").then(function(){return resolve(t(652))}.bind(null,t)).catch(t.oe)},s=function(){t.e("components/uni-list-item/uni-list-item").then(function(){return resolve(t(659))}.bind(null,t)).catch(t.oe)},a=function(){t.e("components/uni-popup/uni-popup").then(function(){return resolve(t(241))}.bind(null,t)).catch(t.oe)},r=function(){Promise.all([t.e("common/vendor"),t.e("components/wangding-pickerAddress/wangding-pickerAddress")]).then(function(){return resolve(t(666))}.bind(null,t)).catch(t.oe)},d={components:{uniList:o,uniListItem:s,pickerAddress:r,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 o=i.day_time,s=o.split(" - ");this.bgTime=s[0].slice(0,5),this.edTime=s[1].slice(0,5),console.log(s,"arr++++++++++++++++++++++++")}this.manageType=n.type,e.setNavigationBarTitle({title:t})},methods:{onCityClick:function(e){var n=e.data,t=n[0],i=n[1],o=n[2];this.address=t+","+i+","+o},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=d}).call(this,t(1)["default"])},209:function(e,n,t){"use strict";t.r(n);var i=t(210),o=t.n(i);for(var s in i)["default"].indexOf(s)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(s);n["default"]=o.a},210:function(e,n,t){}},[[203,"common/runtime","common/vendor"]]]); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/set/pointManage.js.map