|
|
@@ -1,9 +1,9 @@
|
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/index/index"],{
|
|
|
|
|
|
/***/ 43:
|
|
|
-/*!*******************************************************************************************************************!*\
|
|
|
- !*** D:/zhongshuweilai/zswl.zip/zswl/code/charge_miniapp/charge_miniapp/main.js?{"page":"pages%2Findex%2Findex"} ***!
|
|
|
- \*******************************************************************************************************************/
|
|
|
+/*!***************************************************************************************************************!*\
|
|
|
+ !*** D:/zhongshuweilai/zswl/zswl/code/charge_miniapp/charge_miniapp/main.js?{"page":"pages%2Findex%2Findex"} ***!
|
|
|
+ \***************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
@@ -22,9 +22,9 @@ createPage(_index.default);
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 44:
|
|
|
-/*!************************************************************************************************!*\
|
|
|
- !*** D:/zhongshuweilai/zswl.zip/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue ***!
|
|
|
- \************************************************************************************************/
|
|
|
+/*!********************************************************************************************!*\
|
|
|
+ !*** D:/zhongshuweilai/zswl/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue ***!
|
|
|
+ \********************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
@@ -63,9 +63,9 @@ component.options.__file = "pages/index/index.vue"
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 45:
|
|
|
-/*!*******************************************************************************************************************************!*\
|
|
|
- !*** D:/zhongshuweilai/zswl.zip/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=template&id=57280228& ***!
|
|
|
- \*******************************************************************************************************************************/
|
|
|
+/*!***************************************************************************************************************************!*\
|
|
|
+ !*** D:/zhongshuweilai/zswl/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=template&id=57280228& ***!
|
|
|
+ \***************************************************************************************************************************/
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
@@ -85,9 +85,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 46:
|
|
|
-/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
- !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/zhongshuweilai/zswl.zip/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=template&id=57280228& ***!
|
|
|
- \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
+/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
+ !*** ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/zhongshuweilai/zswl/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=template&id=57280228& ***!
|
|
|
+ \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
@@ -187,9 +187,9 @@ render._withStripped = true
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 47:
|
|
|
-/*!*************************************************************************************************************************!*\
|
|
|
- !*** D:/zhongshuweilai/zswl.zip/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=script&lang=js& ***!
|
|
|
- \*************************************************************************************************************************/
|
|
|
+/*!*********************************************************************************************************************!*\
|
|
|
+ !*** D:/zhongshuweilai/zswl/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=script&lang=js& ***!
|
|
|
+ \*********************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
@@ -203,9 +203,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 48:
|
|
|
-/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
- !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/zhongshuweilai/zswl.zip/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=script&lang=js& ***!
|
|
|
- \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
+/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
+ !*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/zhongshuweilai/zswl/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=script&lang=js& ***!
|
|
|
+ \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
@@ -497,6 +497,7 @@ var _default = {
|
|
|
this.get_frimid();
|
|
|
// this.get_paymentMsg()
|
|
|
this.getBanners();
|
|
|
+ this.queryUserIsBindCard();
|
|
|
},
|
|
|
data: function data() {
|
|
|
return {
|
|
|
@@ -673,16 +674,29 @@ var _default = {
|
|
|
});
|
|
|
return params[key];
|
|
|
},
|
|
|
+ // 校验用户是否绑定车牌
|
|
|
+ queryUserIsBindCard: function queryUserIsBindCard() {
|
|
|
+ var _this4 = this;
|
|
|
+ this.$api.base("get", "/applet/v1/vehicle/list", {}, {}).then(function (res) {
|
|
|
+ if (res.data.length < 1) {
|
|
|
+ _this4.$app.popup.confirm("绑定车牌享更多权益", "充电车主专享").then(function (confirm) {
|
|
|
+ if (confirm) {
|
|
|
+ _this4.$app.url.goto('/subPackages/other/addLicensePlates/addLicensePlates');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
goImgLink: function goImgLink(e) {
|
|
|
this.$app.url.goto(e.skipUrl);
|
|
|
},
|
|
|
// 打开客服
|
|
|
customerService: function customerService() {
|
|
|
- var _this4 = this;
|
|
|
+ var _this5 = this;
|
|
|
var cs = this.$config.customerService;
|
|
|
this.$app.act.customerService(cs.id, cs.url).catch(function (err) {
|
|
|
console.log(err);
|
|
|
- _this4.$app.popup.alert('客服中心失联啦,请联系管理员!');
|
|
|
+ _this5.$app.popup.alert('客服中心失联啦,请联系管理员!');
|
|
|
});
|
|
|
},
|
|
|
// 查询许可
|
|
|
@@ -718,18 +732,18 @@ var _default = {
|
|
|
},
|
|
|
// 更新位置
|
|
|
updateLocation: function updateLocation() {
|
|
|
- var _this5 = this;
|
|
|
+ var _this6 = this;
|
|
|
this.getLocation().then(function (res) {
|
|
|
- _this5.location.value = [res.longitude, res.latitude].join(',');
|
|
|
- _this5.get_userinfo();
|
|
|
- _this5.getStations(res.longitude, res.latitude);
|
|
|
- _this5.$app.storage.set('USER_LOCATION', _this5.location.value);
|
|
|
- return _this5.reverseGeocoder([res.latitude, res.longitude].join(','));
|
|
|
+ _this6.location.value = [res.longitude, res.latitude].join(',');
|
|
|
+ _this6.get_userinfo();
|
|
|
+ _this6.getStations(res.longitude, res.latitude);
|
|
|
+ _this6.$app.storage.set('USER_LOCATION', _this6.location.value);
|
|
|
+ return _this6.reverseGeocoder([res.latitude, res.longitude].join(','));
|
|
|
});
|
|
|
},
|
|
|
// 获取定位
|
|
|
getLocation: function getLocation() {
|
|
|
- var _this6 = this;
|
|
|
+ var _this7 = this;
|
|
|
return new Promise(function (resolve, reject) {
|
|
|
if (uni.getLocation) {
|
|
|
uni.getLocation({
|
|
|
@@ -739,8 +753,8 @@ var _default = {
|
|
|
fail: function fail(err) {
|
|
|
console.log(err);
|
|
|
console.log('定位失败');
|
|
|
- _this6.getStations("", "");
|
|
|
- _this6.get_userinfo();
|
|
|
+ _this7.getStations("", "");
|
|
|
+ _this7.get_userinfo();
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
@@ -753,7 +767,7 @@ var _default = {
|
|
|
});
|
|
|
},
|
|
|
reverseGeocoder: function reverseGeocoder(latlon) {
|
|
|
- var _this7 = this;
|
|
|
+ var _this8 = this;
|
|
|
console.log(latlon);
|
|
|
var lat = latlon.split(",")[0];
|
|
|
var lng = latlon.split(",")[1];
|
|
|
@@ -768,9 +782,9 @@ var _default = {
|
|
|
location: latlon,
|
|
|
success: function success(res) {
|
|
|
var code = res.originalData.result.addressComponent.adcode.substr(0, 4);
|
|
|
- for (var i = 0; i < _this7.city.data.length; i++) {
|
|
|
- if (_this7.city.data[i].areaCode == code) {
|
|
|
- _this7.city.index = i;
|
|
|
+ for (var i = 0; i < _this8.city.data.length; i++) {
|
|
|
+ if (_this8.city.data[i].areaCode == code) {
|
|
|
+ _this8.city.index = i;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
@@ -789,15 +803,15 @@ var _default = {
|
|
|
// })
|
|
|
// },
|
|
|
getBanners: function getBanners() {
|
|
|
- var _this8 = this;
|
|
|
+ var _this9 = this;
|
|
|
this.$api.base("get", "/applet/v1/homePage/getBannerList/1", {}, {}).then(function (res) {
|
|
|
- _this8.banners = res.data;
|
|
|
+ _this9.banners = res.data;
|
|
|
});
|
|
|
},
|
|
|
getAdswiper: function getAdswiper() {
|
|
|
- var _this9 = this;
|
|
|
+ var _this10 = this;
|
|
|
this.$api.base("get", "/applet/v1/homePage/getAdvertisingList", {}, {}).then(function (res) {
|
|
|
- _this9.adBanner = res.data;
|
|
|
+ _this10.adBanner = res.data;
|
|
|
// this.$refs.filter.open()
|
|
|
});
|
|
|
},
|
|
|
@@ -817,7 +831,7 @@ var _default = {
|
|
|
};
|
|
|
},
|
|
|
getStations: function getStations(lng, lat) {
|
|
|
- var _this10 = this;
|
|
|
+ var _this11 = this;
|
|
|
this.$api.base("post", "/applet/v1/homePage/getStationInfoPage", {
|
|
|
pageNum: this.pageNum,
|
|
|
pageSize: 10,
|
|
|
@@ -826,34 +840,34 @@ var _default = {
|
|
|
latitude: lat,
|
|
|
userId: this.$app.storage.get('USER_INFO') ? parseInt(this.$app.storage.get('USER_INFO').appletUserId) : 0
|
|
|
}, {}).then(function (res) {
|
|
|
- if (_this10.pageNum == 1) {
|
|
|
- _this10.list.data = res.data.list;
|
|
|
+ if (_this11.pageNum == 1) {
|
|
|
+ _this11.list.data = res.data.list;
|
|
|
} else {
|
|
|
- _this10.list.data = _this10.list.data.concat(res.data.list);
|
|
|
+ _this11.list.data = _this11.list.data.concat(res.data.list);
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
get_userinfo: function get_userinfo() {
|
|
|
- var _this11 = this;
|
|
|
+ var _this12 = this;
|
|
|
this.$api.base("get", "/applet/v1/user/getUserInfo", {}, {
|
|
|
error: false
|
|
|
}).then(function (res) {
|
|
|
- _this11.user_info = res.data;
|
|
|
- _this11.$app.storage.set('USER_INFO', res.data);
|
|
|
+ _this12.user_info = res.data;
|
|
|
+ _this12.$app.storage.set('USER_INFO', res.data);
|
|
|
});
|
|
|
},
|
|
|
// 设定导航栏高度
|
|
|
setAppNavigationHeight: function setAppNavigationHeight() {
|
|
|
- var _this12 = this;
|
|
|
+ var _this13 = this;
|
|
|
this.$nextTick(function () {
|
|
|
- uni.createSelectorQuery().in(_this12).select("#app-navigation").boundingClientRect(function (data) {
|
|
|
- _this12.appNavigationHeight = data.height;
|
|
|
+ uni.createSelectorQuery().in(_this13).select("#app-navigation").boundingClientRect(function (data) {
|
|
|
+ _this13.appNavigationHeight = data.height;
|
|
|
}).exec();
|
|
|
});
|
|
|
},
|
|
|
// 设置列表高度
|
|
|
setListHeight: function setListHeight() {
|
|
|
- var _this13 = this;
|
|
|
+ var _this14 = this;
|
|
|
this.$app.act.selectorQuery(this, "#list-box,#roller", true).then(function (res) {
|
|
|
var win = uni.getWindowInfo();
|
|
|
var roller = res.find(function (i) {
|
|
|
@@ -862,7 +876,7 @@ var _default = {
|
|
|
var list = res.find(function (i) {
|
|
|
return i.id == 'list-box';
|
|
|
});
|
|
|
- _this13.list.height = win.windowHeight - list.top - _this13.appNavigationHeight + roller.height;
|
|
|
+ _this14.list.height = win.windowHeight - list.top - _this14.appNavigationHeight + roller.height;
|
|
|
});
|
|
|
},
|
|
|
// 版头加载完成
|
|
|
@@ -918,9 +932,9 @@ exports.default = _default;
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 50:
|
|
|
-/*!*********************************************************************************************************************************!*\
|
|
|
- !*** D:/zhongshuweilai/zswl.zip/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=style&index=0&lang=css& ***!
|
|
|
- \*********************************************************************************************************************************/
|
|
|
+/*!*****************************************************************************************************************************!*\
|
|
|
+ !*** D:/zhongshuweilai/zswl/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=style&index=0&lang=css& ***!
|
|
|
+ \*****************************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
@@ -934,9 +948,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 51:
|
|
|
-/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
- !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/zhongshuweilai/zswl.zip/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=style&index=0&lang=css& ***!
|
|
|
- \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
+/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
+ !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!./node_modules/postcss-loader/src??ref--6-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/zhongshuweilai/zswl/zswl/code/charge_miniapp/charge_miniapp/pages/index/index.vue?vue&type=style&index=0&lang=css& ***!
|
|
|
+ \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|