星油车管小程序
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 lines
16 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"028b":function(t,e,n){"use strict";var a=n("287e"),i=n.n(a);i.a},"0c7b":function(t,e,n){"use strict";n.r(e);var a=n("d262"),i=n("e1b6");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("d9db");var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"253392c2",null,!1,a["a"],void 0);e["default"]=u.exports},"0dfe":function(t,e,n){"use strict";(function(t,a){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("2eee")),r=i(n("c973")),u=i(n("76d8")),c={data:function(){return{imgUrl:this.baseImgURL,cards:t.getStorageSync("cards"),user:t.getStorageSync("user"),others:[{title:"个人信息"},{title:"密码设置"},{title:"关于我们"},{title:"退出登录",functionName:"goM78"}],options:[{logo:n("aa6c"),title:"我的订单",functionName:"KillTheRecord"},{logo:n("feca"),title:"我的车辆",functionName:"ultramanVehicle"},{logo:n("64b8"),title:"我的收藏",functionName:"goCollect"},{logo:n("d881"),title:"客服中心"}],titleStyle:{}}},created:function(){this.init()},onShow:function(){},filters:{filterPhone:function(t){if(!t)return" ";var e=t.slice(0,3)+"****"+t.slice(t.length-4);return e}},methods:{ultramanVehicle:function(){t.navigateTo({url:"/ChargingStation/pages/vehicle/index"})},goCollect:function(){t.navigateTo({url:"/ChargingStation/pages/collect/index"})},KillTheRecord:function(){this.$emit("switchTabBar",3)},login:function(){this.user||(t.clearStorageSync(),t.reLaunch({url:"/pages/login/index"}))},isEyeFn:function(t){t.isEye=!t.isEye,console.log(t,"isEyeFnisEyeFnisEyeFn")},othersClick:function(e){e.functionName?this[e.functionName]():t.showToast({title:"功能暂未开放",icon:"none"})},init:function(){this.titleStyle=a.getMenuButtonBoundingClientRect(),this.user||this.others.pop()},goM78:function(){return(0,r.default)(o.default.mark((function e(){var n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,u.default.loginOut();case 2:n=e.sent,n&&(t.clearStorageSync(),t.reLaunch({url:"/pages/login/index"}));case 4:case"end":return e.stop()}}),e)})))()}}};e.default=c}).call(this,n("543d")["default"],n("bc2e")["default"])},1540:function(t,e,n){"use strict";(function(t,a){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("2eee")),r=i(n("c973")),u=(n("43d7"),i(n("2303")),{components:{ChargingStationMap:function(){Promise.all([n.e("common/vendor"),n.e("components/ChargingStationMap/ChargingStationMap")]).then(function(){return resolve(n("29ee"))}.bind(null,n)).catch(n.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 e=this.$refs.ChargingStationMap.location,n=e.latitude,a=e.longitude;t.navigateTo({url:"/ChargingStation/pages/chooseLocation/index?type="+"start/".concat(n,",").concat(a)})},onshow:function(){this.$refs.ChargingStationMap.onshow(),this.$refs.ChargingStationMap.getPosition()},refresherrefresh:function(){this.seach()},seach:function(){},init:function(){var e=this;return(0,r.default)(o.default.mark((function n(){var i;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:i=e,e.titleStyle=a.getMenuButtonBoundingClientRect(),t.$on("UpdateAddress",(function(t){i.pageData.address="".concat(t.title).concat(t.address);var e=t.location,n=e.lat,a=e.lng;i.$refs.ChargingStationMap.moveToLocation(a,n)}));case 3:case"end":return n.stop()}}),n)})))()}}});e.default=u}).call(this,n("543d")["default"],n("bc2e")["default"])},"20b1":function(t,e,n){"use strict";n.r(e);var a=n("0dfe"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"24fa":function(t,e,n){"use strict";n.r(e);var a=n("c6d0"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},2704:function(t,e,n){"use strict";var a=n("9f3c"),i=n.n(a);i.a},2879:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"e4f7"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t._f("filterPhone")(t.user.userPhone)),a=t.cards.length,i=a?t.__map(t.cards,(function(e,n){var a=t.__get_orig(e),i=e.isEye?t.tool.getnum(e.balance):null;return{$orig:a,g1:i}})):null;t.$mp.data=Object.assign({},{$root:{f0:n,g0:a,l0:i}})},o=[]},"287e":function(t,e,n){},"3e98":function(t,e,n){"use strict";n.r(e);var a=n("c75e"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"4d58":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"e4f7"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.viewData?t.viewData.list.length:null);t._isMounted||(t.e0=function(e){t.pageData.stationName="",t.getList()},t.e1=function(e,n){var a=arguments[arguments.length-1].currentTarget.dataset,i=a.eventParams||a["event-params"];n=i.item;t.pageData.sortType=n.value}),t.$mp.data=Object.assign({},{$root:{g0:n}})},o=[]},"570a":function(t,e,n){"use strict";var a=n("9d24"),i=n.n(a);i.a},"57bf":function(t,e,n){"use strict";(function(t,a){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("2eee")),r=i(n("c973")),u=(i(n("76d8")),i(n("8d90"))),c=i(n("af80")),s=i(n("7fe3")),l=i(n("7a68")),f=(i(n("b9cb")),{components:{tabBar:function(){Promise.all([n.e("common/vendor"),n.e("components/tabBar/tabBar")]).then(function(){return resolve(n("78d6"))}.bind(null,n)).catch(n.oe)},home:u.default,ChargingStation:c.default,order:s.default,personal:l.default},data:function(){return{user:t.getStorageSync("user"),location:null,setingMenuData:null,tabBarIndex:0,Anticorrosive:null}},watch:{tabBarIndex:function(t){1==t?this.$refs.ChargingStation.onshow():2==t&&this.scanCode(),console.log(t)}},created:function(){this.init()},onLoad:function(){this.onOrderUpdate()},onShow:function(){this.showInit()},methods:{scanCode:function(){var e=this;return(0,r.default)(o.default.mark((function n(){var a,i;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.user){n.next=3;break}return t.showModal({title:"提示",content:"登录后才可扫码下单哦",confirmText:"去登陆",success:function(e){e.confirm?t.reLaunch({url:"/pages/login/index"}):e.cancel}}),n.abrupt("return");case 3:return n.next=5,e.tool.scanCode().catch((function(t){console.log("取消"),e.tabBarIndex=0}));case 5:a=n.sent,null!==a&&void 0!==a&&a.result&&(i=e.tool.routingParameterGeneration({type:"qrCode",qrCode:encodeURIComponent(a.result),pointTo:"activeScanCode"}),t.navigateTo({url:"/ChargingStation/pages/placeOrder/index".concat(i)}));case 7:case"end":return n.stop()}}),n)})))()},switchTabBar:function(t){this.tabBarIndex=t},onOrderUpdate:function(){var e=this;t.$on("orderUpdate",(function(){e.$refs.order.seach()}))},showInit:function(){this.tool.getCards(),2==this.tabBarIndex&&(this.tabBarIndex=0)},getPosition:function(e){var n=this;return(0,r.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,n.tool.getLocation().then((function(e){n.location=t.getStorageSync("location")})).catch((function(t){}));case 2:case"end":return e.stop()}}),e)})))()},init:function(){var t=this;return(0,r.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.Anticorrosive=t.tool.Anticorrosive,t.getSetingMenu();case 2:case"end":return e.stop()}}),e)})))()},getSetingMenu:function(){this.setingMenuData=a.getMenuButtonBoundingClientRect()}}});e.default=f}).call(this,n("543d")["default"],n("bc2e")["default"])},"7a68":function(t,e,n){"use strict";n.r(e);var a=n("2879"),i=n("20b1");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("c172");var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"3fd65076",null,!1,a["a"],void 0);e["default"]=u.exports},"7d45":function(t,e,n){"use strict";(function(t,e){var a=n("4ea4");n("9773");a(n("66fd"));var i=a(n("0c7b"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"7fe3":function(t,e,n){"use strict";n.r(e);var a=n("e7b8"),i=n("24fa");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("99d2"),n("2704");var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"7c16d2dc",null,!1,a["a"],void 0);e["default"]=u.exports},"8d90":function(t,e,n){"use strict";n.r(e);var a=n("4d58"),i=n("3e98");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("028b");var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"1b2312ce",null,!1,a["a"],void 0);e["default"]=u.exports},9110:function(t,e,n){},"96be":function(t,e,n){},"99d2":function(t,e,n){"use strict";var a=n("9110"),i=n.n(a);i.a},"9d24":function(t,e,n){},"9f3c":function(t,e,n){},a293:function(t,e,n){"use strict";n.r(e);var a=n("1540"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},af80:function(t,e,n){"use strict";n.r(e);var a=n("c698"),i=n("a293");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("570a");var r=n("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"42afc7b5",null,!1,a["a"],void 0);e["default"]=u.exports},c172:function(t,e,n){"use strict";var a=n("96be"),i=n.n(a);i.a},c698:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"e4f7"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.pageData.equipmentTypes.length),a=t.__map(t.options,(function(e,n){var a=t.__get_orig(e),i=t.pageData.equipmentTypes.includes(e.value);return{$orig:a,g1:i}}));t._isMounted||(t.e0=function(e){t.pageData.equipmentTypes=[]},t.e1=function(e,n){var a=arguments[arguments.length-1].currentTarget.dataset,i=a.eventParams||a["event-params"];n=i.item;t.pageData.equipmentTypes=[n.value]}),t.$mp.data=Object.assign({},{$root:{g0:n,l0:a}})},o=[]},c6d0:function(t,e,n){"use strict";(function(t,a){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("bd91")),r={components:{orderItem:function(){n.e("components/orderItem/orderItem").then(function(){return resolve(n("9721"))}.bind(null,n)).catch(n.oe)}},options:{styleIsolation:"shared"},data:function(){return{refresherTriggered:!1,orderList:[],page:{pageSize:10,currentPage:1,params:{orderStatus:"",id:""},sorted:{},columns:[],totalCount:"",totalPage:""},titleStyle:{},options:[{label:"全部",value:""},{label:"充电中",value:"2"},{label:"停止中",value:"3"},{label:"已结束",value:"4"}]}},created:function(){this.init()},onLoad:function(){this.onOrderUpdate()},methods:{onOrderUpdate:function(){var e=this;t.$on("orderUpdate",(function(){e.seach()}))},refresherrefresh:function(){this.refresherTriggered=!0,this.seach()},seach:function(){this.page.currentPage=1,this.getList()},scrolltolower:function(){this.page.currentPage+=1,this.getList()},getList:function(){var t=this;console.log(this.page,"this.page"),o.default.getMobileByPage(this.page).then((function(e){2e4==e.code&&(1!==t.page.currentPage?t.orderList=t.orderList.concat(e.data.list):t.orderList=e.data.list),t.refresherTriggered=!1}))},init:function(){this.titleStyle=a.getMenuButtonBoundingClientRect(),this.getList()}}};e.default=r}).call(this,n("543d")["default"],n("bc2e")["default"])},c75e:function(t,e,n){"use strict";(function(t,a){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n("2eee")),r=i(n("c973")),u=i(n("2303")),c=(i(n("76d8")),n("fdba")),s={components:{stationItem:function(){n.e("components/stationItem/stationItem").then(function(){return resolve(n("6815"))}.bind(null,n)).catch(n.oe)},skeleton:function(){n.e("pages/home/skeleton").then(function(){return resolve(n("b1ff"))}.bind(null,n)).catch(n.oe)}},data:function(){return{agreementList:t.getStorageSync("agreementList"),token:t.getStorageSync("Authorization"),user:t.getStorageSync("user"),location:null,refresherTriggered:!1,pageData:{currentPage:1,stationName:"",stationLng:116.38,stationLat:39.9,sortType:""},viewData:null,titleStyle:{},selectOptions:0,options:[{label:"距离最近",value:""},{label:"最便宜",value:"cheap"},{label:"快充",value:"fast"},{label:"空闲",value:"idle"}]}},created:function(){this.init()},watch:{"pageData.sortType":function(t){this.seach()}},onShow:function(){this.showInit()},methods:{showInit:function(){this.tool.getCards()},refresherrefresh:function(){this.refresherTriggered=!0,this.seach()},seach:function(){this.pageData.currentPage=1,this.getList()},scrolltolower:function(){this.pageData.currentPage+=1,this.getList()},init:function(){var t=this;return(0,r.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.titleStyle=a.getMenuButtonBoundingClientRect(),e.next=3,t.getPosition();case 3:t.getList();case 4:case"end":return e.stop()}}),e)})))()},getPosition:function(){var e=this;return(0,r.default)(o.default.mark((function n(){return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.user){n.next=2;break}return n.abrupt("return",Promise.resolve());case 2:return n.next=4,e.tool.userLocationChenk().then((function(t){})).catch((function(t){}));case 4:return n.next=6,e.tool.getLocation().then((function(n){e.location=t.getStorageSync("location")})).catch((function(t){e.location=null}));case 6:case"end":return n.stop()}}),n)})))()},getList:function(){var t=this;return(0,r.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.location&&(t.pageData.stationLat=t.location.latitude,t.pageData.stationLng=t.location.longitude),u.default[t.token?"getNearbySites":"getTouristSites"](t.pageData).then((function(e){if(2e4==e.code)if(t.tool.difTags(e),1!==t.pageData.currentPage){var n=new t.tool.Anticorrosive(e,c.page);t.viewData.list=t.viewData.list.concat(n.list)}else t.viewData=new t.tool.Anticorrosive(e,c.page);t.refresherTriggered=!1}));case 2:case"end":return e.stop()}}),e)})))()}}};e.default=s}).call(this,n("543d")["default"],n("bc2e")["default"])},d262:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},i=[]},d9db:function(t,e,n){"use strict";var a=n("ef98"),i=n.n(a);i.a},e1b6:function(t,e,n){"use strict";n.r(e);var a=n("57bf"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},e7b8:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"e4f7"))}},i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.orderList.length);t._isMounted||(t.e0=function(e){t.page.params.id=""},t.e1=function(e,n){var a=arguments[arguments.length-1].currentTarget.dataset,i=a.eventParams||a["event-params"];n=i.item;t.page.params.orderStatus=n.value,t.page.currentPage=1,t.getList()}),t.$mp.data=Object.assign({},{$root:{g0:n}})},o=[]},ef98:function(t,e,n){}},[["7d45","common/runtime","common/vendor"]]]);