星油车管小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
3.3 KiB

9 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/ChargingStation/index"],{1540:function(t,n,e){"use strict";(function(t,a){var i=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(e("2eee")),r=i(e("c973")),u=(e("43d7"),i(e("2303")),{components:{ChargingStationMap:function(){Promise.all([e.e("common/vendor"),e.e("components/ChargingStationMap/ChargingStationMap")]).then(function(){return resolve(e("29ee"))}.bind(null,e)).catch(e.oe)}},data:function(){return{pageData:{equipmentTypes:[],ranger:2e3,stationLng:"",stationLat:"",address:""},titleStyle:{},options:[{label:"快充",value:1},{label:"慢充",value:2}]}},created:function(){this.init()},watch:{"pageData.equipmentTypes":function(t){this.$refs.ChargingStationMap.getList(0)}},onShow:function(){this.$refs.ChargingStationMap.getPosition()},methods:{focus:function(){var n=this.$refs.ChargingStationMap.location,e=n.latitude,a=n.longitude;t.navigateTo({url:"/ChargingStation/pages/chooseLocation/index?type="+"start/".concat(e,",").concat(a)})},onshow:function(){this.$refs.ChargingStationMap.onshow(),this.$refs.ChargingStationMap.getPosition()},refresherrefresh:function(){this.seach()},seach:function(){},init:function(){var n=this;return(0,r.default)(o.default.mark((function e(){var i;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=n,n.titleStyle=a.getMenuButtonBoundingClientRect(),t.$on("UpdateAddress",(function(t){i.pageData.address="".concat(t.title).concat(t.address);var n=t.location,e=n.lat,a=n.lng;i.$refs.ChargingStationMap.moveToLocation(a,e)}));case 3:case"end":return e.stop()}}),e)})))()}}});n.default=u}).call(this,e("543d")["default"],e("bc2e")["default"])},"570a":function(t,n,e){"use strict";var a=e("9d24"),i=e.n(a);i.a},"635c":function(t,n,e){"use strict";(function(t,n){var a=e("4ea4");e("9773");a(e("66fd"));var i=a(e("af80"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"9d24":function(t,n,e){},a293:function(t,n,e){"use strict";e.r(n);var a=e("1540"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},af80:function(t,n,e){"use strict";e.r(n);var a=e("c698"),i=e("a293");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("570a");var r=e("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"42afc7b5",null,!1,a["a"],void 0);n["default"]=u.exports},c698:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(e.bind(null,"e4f7"))}},i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.pageData.equipmentTypes.length),a=t.__map(t.options,(function(n,e){var a=t.__get_orig(n),i=t.pageData.equipmentTypes.includes(n.value);return{$orig:a,g1:i}}));t._isMounted||(t.e0=function(n){t.pageData.equipmentTypes=[]},t.e1=function(n,e){var a=arguments[arguments.length-1].currentTarget.dataset,i=a.eventParams||a["event-params"];e=i.item;t.pageData.equipmentTypes=[e.value]}),t.$mp.data=Object.assign({},{$root:{g0:e,l0:a}})},o=[]}},[["635c","common/runtime","common/vendor"]]]);