| | |
| | | (global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/index/index"],{ |
| | | |
| | | /***/ 163: |
| | | /*!***********************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/main.js?{"page":"pages%2Findex%2Findex"} ***! |
| | | \***********************************************************************/ |
| | | /*! no static exports found */ |
| | | /***/ (function(module, exports, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | /* WEBPACK VAR INJECTION */(function(wx, createPage) { |
| | | |
| | | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4); |
| | | __webpack_require__(/*! uni-pages */ 30); |
| | | var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25)); |
| | | var _index = _interopRequireDefault(__webpack_require__(/*! ./pages/index/index.vue */ 164)); |
| | | // @ts-ignore |
| | | wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__; |
| | | createPage(_index.default); |
| | | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"])) |
| | | |
| | | /***/ }), |
| | | |
| | | /***/ 164: |
| | | /*!****************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/pages/index/index.vue ***! |
| | | \****************************************************/ |
| | | /*! no static exports found */ |
| | | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | __webpack_require__.r(__webpack_exports__); |
| | | /* harmony import */ var _index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=57280228&scoped=true& */ 165); |
| | | /* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 167); |
| | | /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
| | | /* harmony import */ var _index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=0&lang=css& */ 175); |
| | | /* harmony import */ var _index_vue_vue_type_style_index_1_id_57280228_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index.vue?vue&type=style&index=1&id=57280228&lang=scss&scoped=true& */ 177); |
| | | /* harmony import */ var _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 40); |
| | | |
| | | var renderjs |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /* normalize component */ |
| | | |
| | | var component = Object(_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_4__["default"])( |
| | | _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], |
| | | _index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"], |
| | | _index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], |
| | | false, |
| | | null, |
| | | "57280228", |
| | | null, |
| | | false, |
| | | _index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"], |
| | | renderjs |
| | | ) |
| | | |
| | | component.options.__file = "pages/index/index.vue" |
| | | /* harmony default export */ __webpack_exports__["default"] = (component.exports); |
| | | |
| | | /***/ }), |
| | | |
| | | /***/ 165: |
| | | /*!***********************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/pages/index/index.vue?vue&type=template&id=57280228&scoped=true& ***! |
| | | \***********************************************************************************************/ |
| | | /*! exports provided: render, staticRenderFns, recyclableRender, components */ |
| | | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | __webpack_require__.r(__webpack_exports__); |
| | | /* harmony import */ var _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=57280228&scoped=true& */ 166); |
| | | /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; }); |
| | | |
| | | /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); |
| | | |
| | | /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; }); |
| | | |
| | | /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; }); |
| | | |
| | | |
| | | |
| | | /***/ }), |
| | | |
| | | /***/ 166: |
| | | /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ |
| | | !*** ./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:/豆米/parkBike/bicycle/pages/index/index.vue?vue&type=template&id=57280228&scoped=true& ***! |
| | | \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ |
| | | /*! exports provided: render, staticRenderFns, recyclableRender, components */ |
| | | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | __webpack_require__.r(__webpack_exports__); |
| | | /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; }); |
| | | /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; }); |
| | | /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; }); |
| | | /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; }); |
| | | var components |
| | | try { |
| | | components = { |
| | | uPopup: function () { |
| | | return Promise.all(/*! import() | node-modules/uview-ui/components/u-popup/u-popup */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-popup/u-popup.vue */ 320)) |
| | | }, |
| | | uIcon: function () { |
| | | return Promise.all(/*! import() | node-modules/uview-ui/components/u-icon/u-icon */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-icon/u-icon.vue */ 328)) |
| | | }, |
| | | uModal: function () { |
| | | return Promise.all(/*! import() | node-modules/uview-ui/components/u-modal/u-modal */[__webpack_require__.e("common/vendor"), __webpack_require__.e("node-modules/uview-ui/components/u-modal/u-modal")]).then(__webpack_require__.bind(null, /*! uview-ui/components/u-modal/u-modal.vue */ 337)) |
| | | }, |
| | | tram: function () { |
| | | return __webpack_require__.e(/*! import() | components/tram/tram */ "components/tram/tram").then(__webpack_require__.bind(null, /*! @/components/tram/tram.vue */ 345)) |
| | | }, |
| | | } |
| | | } catch (e) { |
| | | if ( |
| | | e.message.indexOf("Cannot find module") !== -1 && |
| | | e.message.indexOf(".vue") !== -1 |
| | | ) { |
| | | console.error(e.message) |
| | | console.error("1. 排查组件名称拼写是否正确") |
| | | console.error( |
| | | "2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom" |
| | | ) |
| | | console.error( |
| | | "3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件" |
| | | ) |
| | | } else { |
| | | throw e |
| | | } |
| | | } |
| | | var render = function () { |
| | | var _vm = this |
| | | var _h = _vm.$createElement |
| | | var _c = _vm._self._c || _h |
| | | var g0 = (_vm.info.deposit / 100).toFixed(2) |
| | | var m0 = |
| | | _vm.info && |
| | | _vm.info.memberRidesResponse && |
| | | _vm.info.memberRidesResponse.discountMember && |
| | | _vm.info.memberRidesResponse.discountMember.limitType === 1 |
| | | ? _vm.convertMinutesToHours( |
| | | _vm.info.memberRidesResponse.discountMember.surplusTime |
| | | ) |
| | | : null |
| | | var m1 = |
| | | _vm.info && |
| | | _vm.info.memberRidesResponse && |
| | | _vm.info.memberRidesResponse.discountMember && |
| | | _vm.info.memberRidesResponse.discountMember.limitType === 1 |
| | | ? _vm.convertMinutesToHours( |
| | | _vm.info.memberRidesResponse.discountMember.surplusTime |
| | | ) |
| | | : null |
| | | if (!_vm._isMounted) { |
| | | _vm.e0 = function ($event) { |
| | | _vm.show1 = false |
| | | } |
| | | _vm.e1 = function ($event) { |
| | | _vm.active = !_vm.active |
| | | } |
| | | _vm.e2 = function ($event) { |
| | | _vm.show1 = false |
| | | } |
| | | _vm.e3 = function ($event) { |
| | | _vm.show5 = false |
| | | } |
| | | _vm.e4 = function ($event) { |
| | | _vm.show2 = false |
| | | } |
| | | _vm.e5 = function ($event) { |
| | | _vm.show6 = false |
| | | } |
| | | _vm.e6 = function ($event) { |
| | | _vm.show3 = false |
| | | } |
| | | _vm.e7 = function ($event) { |
| | | _vm.show4 = false |
| | | } |
| | | _vm.e8 = function ($event) { |
| | | _vm.show7 = false |
| | | } |
| | | _vm.e9 = function ($event) { |
| | | _vm.show = false |
| | | } |
| | | _vm.e10 = function ($event) { |
| | | _vm.show = false |
| | | } |
| | | } |
| | | _vm.$mp.data = Object.assign( |
| | | {}, |
| | | { |
| | | $root: { |
| | | g0: g0, |
| | | m0: m0, |
| | | m1: m1, |
| | | }, |
| | | } |
| | | ) |
| | | } |
| | | var recyclableRender = false |
| | | var staticRenderFns = [] |
| | | render._withStripped = true |
| | | |
| | | |
| | | |
| | | /***/ }), |
| | | |
| | | /***/ 167: |
| | | /*!*****************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/pages/index/index.vue?vue&type=script&lang=js& ***! |
| | | \*****************************************************************************/ |
| | | /*! no static exports found */ |
| | | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | __webpack_require__.r(__webpack_exports__); |
| | | /* harmony import */ var _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js& */ 168); |
| | | /* harmony import */ var _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__); |
| | | /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
| | | /* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); |
| | | |
| | | /***/ }), |
| | | |
| | | /***/ 168: |
| | | /*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ |
| | | !*** ./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:/豆米/parkBike/bicycle/pages/index/index.vue?vue&type=script&lang=js& ***! |
| | | \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ |
| | | /*! no static exports found */ |
| | | /***/ (function(module, exports, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | /* WEBPACK VAR INJECTION */(function(uni, wx) { |
| | | |
| | | var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4); |
| | | Object.defineProperty(exports, "__esModule", { |
| | | value: true |
| | | }); |
| | | exports.default = void 0; |
| | | var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 34)); |
| | | var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 36)); |
| | | var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11)); |
| | | var _vuex = __webpack_require__(/*! vuex */ 37); |
| | | function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } |
| | | function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } |
| | | var tram = function tram() { |
| | | __webpack_require__.e(/*! require.ensure | components/tram/tram */ "components/tram/tram").then((function () { |
| | | return resolve(__webpack_require__(/*! @/components/tram/tram.vue */ 345)); |
| | | }).bind(null, __webpack_require__)).catch(__webpack_require__.oe); |
| | | }; |
| | | var _default = { |
| | | data: function data() { |
| | | return { |
| | | disable: false, |
| | | top: 0, |
| | | title: '', |
| | | latitude: null, |
| | | longitude: null, |
| | | bgImg: __webpack_require__(/*! @/static/images/bg_service@2x.png */ 169), |
| | | show: false, |
| | | // 广告 |
| | | show1: false, |
| | | // 缴纳押金 |
| | | show2: false, |
| | | // 骑行中 |
| | | show3: false, |
| | | // 确认结算 |
| | | show4: false, |
| | | // 提示 |
| | | show5: false, |
| | | // 开锁 |
| | | show6: false, |
| | | // 已还车 |
| | | show7: false, |
| | | // 确认结算弹框 |
| | | |
| | | active: false, |
| | | markers: [], |
| | | functionList: [{ |
| | | id: 1, |
| | | name: '押金充值', |
| | | icon: __webpack_require__(/*! @/static/images/home_ic_yajing@2x.png */ 170) |
| | | }, { |
| | | id: 2, |
| | | name: '结算退押金', |
| | | icon: __webpack_require__(/*! @/static/images/home_ic_jiesuan@2x.png */ 171) |
| | | }, { |
| | | id: 3, |
| | | name: '团购验券', |
| | | icon: __webpack_require__(/*! @/static/images/home_ic_yajing@x.png */ 172) |
| | | }, { |
| | | id: 4, |
| | | name: '个人中心', |
| | | icon: __webpack_require__(/*! @/static/images/home_ic_jiesuan@x.png */ 173) |
| | | } |
| | | // { |
| | | // id: 3, |
| | | // name: '计价规则', |
| | | // icon: require('@/static/images/home_ic_guize@2x.png') |
| | | // }, |
| | | // { |
| | | // id: 4, |
| | | // name: '消费明细', |
| | | // icon: require('@/static/images/home_ic_mingxi@2x.png') |
| | | // }, |
| | | // { |
| | | // id: 5, |
| | | // name: '运营中心', |
| | | // icon: require('@/static/icon/home_ic_mingxi.png') |
| | | // }, |
| | | ], |
| | | |
| | | info: {}, |
| | | content: '', |
| | | timer: null, |
| | | isDisabled: true, |
| | | tcList: [], |
| | | type: 1, |
| | | types: [{ |
| | | name: '自行车', |
| | | id: 1 |
| | | }, { |
| | | name: '电动车', |
| | | id: 2 |
| | | }], |
| | | eleBusinessArea: [{ |
| | | points: [], |
| | | fillColor: "#0077FF12", |
| | | strokeColor: "#0077FF", |
| | | strokeWidth: 3, |
| | | zIndex: 7 |
| | | }], |
| | | onPullDownRefresh: false, |
| | | timerdian: null |
| | | }; |
| | | }, |
| | | components: { |
| | | tram: tram |
| | | }, |
| | | computed: _objectSpread({}, (0, _vuex.mapState)(['navHeight', 'statusbarHeight', 'userInfo'])), |
| | | onLoad: function onLoad(options) { |
| | | var _this = this; |
| | | return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() { |
| | | var that; |
| | | return _regenerator.default.wrap(function _callee3$(_context3) { |
| | | while (1) { |
| | | switch (_context3.prev = _context3.next) { |
| | | case 0: |
| | | that = _this; |
| | | if (!(JSON.stringify(_this.userInfo) == '{}')) { |
| | | _context3.next = 4; |
| | | break; |
| | | } |
| | | _context3.next = 4; |
| | | return _this.$onLaunched; |
| | | case 4: |
| | | _context3.next = 6; |
| | | return _this.getAddress(); |
| | | case 6: |
| | | _context3.next = 8; |
| | | return _this.getSite(); |
| | | case 8: |
| | | _this.$u.api.home().then( /*#__PURE__*/function () { |
| | | var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(res) { |
| | | var code, typeName, _typeName, num, timer, _code, arr; |
| | | return _regenerator.default.wrap(function _callee2$(_context2) { |
| | | while (1) { |
| | | switch (_context2.prev = _context2.next) { |
| | | case 0: |
| | | if (!(res.code === 200)) { |
| | | _context2.next = 14; |
| | | break; |
| | | } |
| | | code = decodeURIComponent(options.scene); // 是否弹出广告图 |
| | | if (res.data.adList.length > 0 && !res.data.memberRidesResponse) { |
| | | _this.show = true; |
| | | } |
| | | if (res.data.memberRidesResponse && res.data.memberRidesResponse.ridesType === 0 && code !== 'undefined' && res.data.rideStatus !== 2) { |
| | | typeName = ''; |
| | | if (code.substring(0, code.indexOf('-')) === 'ebike') { |
| | | typeName = '电动车'; |
| | | } else { |
| | | typeName = '自行车'; |
| | | } |
| | | uni.showToast({ |
| | | title: "\u5F53\u524D\u5B58\u5728\u672A\u7ED3\u7B97\u81EA\u884C\u8F66\u8BA2\u5355\uFF0C\u8BF7\u5148\u7ED3\u7B97\u8BA2\u5355\u540E\u518D\u626B\u7801\u79DF".concat(typeName), |
| | | icon: 'none' |
| | | }); |
| | | } else if (res.data.memberRidesResponse && res.data.memberRidesResponse.ridesType === 1 && code !== 'undefined') { |
| | | _typeName = ''; |
| | | if (code.substring(0, code.indexOf('-')) === 'ebike') { |
| | | _typeName = '电动车'; |
| | | } else { |
| | | _typeName = '自行车'; |
| | | } |
| | | uni.showToast({ |
| | | title: "\u5F53\u524D\u5B58\u5728\u672A\u7ED3\u7B97\u7535\u52A8\u8F66\u8BA2\u5355\uFF0C\u8BF7\u5148\u7ED3\u7B97\u8BA2\u5355\u540E\u518D\u626B\u7801\u79DF".concat(_typeName), |
| | | icon: 'none' |
| | | }); |
| | | } |
| | | // 自行车 |
| | | if (res.data.memberRidesResponse && res.data.memberRidesResponse.ridesType === 0) { |
| | | // 解锁中 |
| | | if (res.data.rideStatus === 0) { |
| | | _this.show5 = true; |
| | | // 循环次数 |
| | | num = 1; // 循环查看解锁结果 |
| | | timer = setInterval( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { |
| | | var res1; |
| | | return _regenerator.default.wrap(function _callee$(_context) { |
| | | while (1) { |
| | | switch (_context.prev = _context.next) { |
| | | case 0: |
| | | num += 1; |
| | | _context.next = 3; |
| | | return _this.$u.api.refreshLock({ |
| | | id: res.data.memberRidesResponse.rideId |
| | | }); |
| | | case 3: |
| | | res1 = _context.sent; |
| | | // 开锁成功 |
| | | if (res1.data.status === 1) { |
| | | clearInterval(timer); |
| | | _this.show5 = false; |
| | | setTimeout(function () { |
| | | _this.show2 = true; |
| | | }, 500); |
| | | } |
| | | // 开锁失败 |
| | | if (res1.data.status === 3) { |
| | | clearInterval(timer); |
| | | _this.show5 = false; |
| | | uni.showToast({ |
| | | title: '开锁失败', |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | // 开锁超时 |
| | | if (num === 180) { |
| | | clearInterval(timer); |
| | | _this.show5 = false; |
| | | uni.showToast({ |
| | | title: '开锁超时', |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | case 7: |
| | | case "end": |
| | | return _context.stop(); |
| | | } |
| | | } |
| | | }, _callee); |
| | | })), 1000); |
| | | } |
| | | // 骑行中 |
| | | if (res.data.rideStatus === 1) { |
| | | _this.show2 = true; |
| | | _this.refreshStatus(); |
| | | } |
| | | if (res.data.rideStatus === 5) { |
| | | _this.show5 = true; |
| | | } |
| | | if (res.data.rideStatus === 2) { |
| | | _this.show6 = true; |
| | | _this.refreshStatus(); |
| | | } |
| | | } else if (res.data.memberRidesResponse && res.data.memberRidesResponse.ridesType === 1) { |
| | | that.$refs.d_tram.info = _objectSpread(_objectSpread(_objectSpread({}, res.data.memberRidesResponse.discountMember), res.data.memberRidesResponse), {}, { |
| | | deposit: res.data.deposit, |
| | | goodsOrderId: res.data.goodsOrderId |
| | | }); |
| | | // 骑行中 |
| | | if (res.data.rideStatus === 1) { |
| | | that.$refs.d_tram.d_show3 = true; |
| | | } |
| | | // 临时锁车 |
| | | if (res.data.rideStatus === 4) { |
| | | that.$refs.d_tram.d_show4 = true; |
| | | } |
| | | // 轮询刷新电车骑行状态 |
| | | that.refreshTram(); |
| | | // 没有骑行订单 |
| | | } else if (!res.data.memberRidesResponse) { |
| | | if (decodeURIComponent(options.scene) !== 'undefined') { |
| | | _code = decodeURIComponent(options.scene); |
| | | if (_code.substring(0, _code.indexOf('-')) === 'ebike') { |
| | | console.log('电动车'); |
| | | _this.carRentalCopy(decodeURIComponent(options.scene), 2); |
| | | } else { |
| | | console.log('自行车'); |
| | | _this.carRentalCopy(decodeURIComponent(options.scene), 1); |
| | | } |
| | | } |
| | | } |
| | | // 是否营业 |
| | | if (!(res.data.isBusiness === 0)) { |
| | | _context2.next = 10; |
| | | break; |
| | | } |
| | | _this.title = '暂停营业提醒'; |
| | | _this.content = res.data.unBusinessTips; |
| | | _this.show4 = true; |
| | | return _context2.abrupt("return"); |
| | | case 10: |
| | | // 是否停止服务 |
| | | if (res.data.isStopServe === 1) { |
| | | _this.title = '暂停服务提醒'; |
| | | _this.content = res.data.stopServeTips; |
| | | _this.show4 = true; |
| | | } |
| | | _this.tcList = res.data.discountList; |
| | | arr = JSON.parse(res.data.eleBusinessArea); |
| | | _this.eleBusinessArea[0].points = arr.map(function (item) { |
| | | return { |
| | | latitude: item.lat, |
| | | longitude: item.lng |
| | | }; |
| | | }); |
| | | case 14: |
| | | case "end": |
| | | return _context2.stop(); |
| | | } |
| | | } |
| | | }, _callee2); |
| | | })); |
| | | return function (_x) { |
| | | return _ref.apply(this, arguments); |
| | | }; |
| | | }()); |
| | | uni.$on('update', function (data) { |
| | | _this.carRental(); |
| | | }); |
| | | case 10: |
| | | case "end": |
| | | return _context3.stop(); |
| | | } |
| | | } |
| | | }, _callee3); |
| | | }))(); |
| | | }, |
| | | onPullDownRefresh: function onPullDownRefresh() { |
| | | this.onPullDownRefresh = true; |
| | | this.refresh(); |
| | | }, |
| | | onShow: function onShow() { |
| | | this.refresh(); |
| | | }, |
| | | onPageScroll: function onPageScroll(e) { |
| | | this.top = e.scrollTop; |
| | | }, |
| | | methods: { |
| | | // 分钟转换 |
| | | convertMinutesToHours: function convertMinutesToHours(minutes) { |
| | | var hours = Math.floor(minutes / 60); // 计算小时数 |
| | | var remainingMinutes = minutes % 60; // 计算剩余的分钟数 |
| | | if (hours > 0 && remainingMinutes > 0) { |
| | | return "".concat(hours, "\u5C0F\u65F6").concat(remainingMinutes, "\u5206\u949F"); |
| | | } else if (hours == 0) { |
| | | return "".concat(remainingMinutes, "\u5206\u949F"); |
| | | } else if (remainingMinutes == 0) { |
| | | return "".concat(hours, "\u5C0F\u65F6"); |
| | | } |
| | | }, |
| | | clickcontrol: function clickcontrol() { |
| | | var mapObjs = uni.createMapContext('mapId', this); |
| | | mapObjs.moveToLocation({ |
| | | complete: function complete(res) { |
| | | console.log('移动完成:', res); |
| | | } |
| | | }); |
| | | }, |
| | | getEleBikeList: function getEleBikeList() { |
| | | var _this2 = this; |
| | | return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() { |
| | | var res; |
| | | return _regenerator.default.wrap(function _callee4$(_context4) { |
| | | while (1) { |
| | | switch (_context4.prev = _context4.next) { |
| | | case 0: |
| | | _context4.next = 2; |
| | | return _this2.$u.api.eleBikeList({}); |
| | | case 2: |
| | | res = _context4.sent; |
| | | if (res.code === 200) { |
| | | _this2.markers = []; |
| | | res.data.forEach(function (item, index) { |
| | | _this2.markers.push({ |
| | | id: index, |
| | | width: 40, |
| | | height: 40, |
| | | latitude: item.latitude, |
| | | longitude: item.longitude, |
| | | title: item.name, |
| | | iconPath: '/static/icon/ic_bike@2x.png' |
| | | }); |
| | | }); |
| | | _this2.clickcontrol(); |
| | | } |
| | | case 4: |
| | | case "end": |
| | | return _context4.stop(); |
| | | } |
| | | } |
| | | }, _callee4); |
| | | }))(); |
| | | }, |
| | | clickType: function clickType(id) { |
| | | this.type = id; |
| | | if (id === 1) { |
| | | this.getSite(); |
| | | } else { |
| | | this.getEleBikeList(); |
| | | } |
| | | }, |
| | | purchase: function purchase(id) { |
| | | uni.navigateTo({ |
| | | url: "/pages/packageDetails/packageDetails?id=".concat(id) |
| | | }); |
| | | }, |
| | | jumpTC: function jumpTC() { |
| | | uni.navigateTo({ |
| | | url: '/pages/setMenu/setMenu' |
| | | }); |
| | | }, |
| | | // 微信打开小程序开锁方法 |
| | | carRentalCopy: function carRentalCopy(code, type) { |
| | | var _this3 = this; |
| | | return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() { |
| | | var that, ddd, res, num, timer, _res; |
| | | return _regenerator.default.wrap(function _callee6$(_context6) { |
| | | while (1) { |
| | | switch (_context6.prev = _context6.next) { |
| | | case 0: |
| | | that = _this3; |
| | | _context6.next = 3; |
| | | return _this3.$u.api.home(); |
| | | case 3: |
| | | ddd = _context6.sent; |
| | | if (!(ddd.code === 200)) { |
| | | _context6.next = 28; |
| | | break; |
| | | } |
| | | _this3.info = ddd.data; |
| | | // 判断有没有交押金 |
| | | if (!(_this3.info.depositStatus === 0)) { |
| | | _context6.next = 11; |
| | | break; |
| | | } |
| | | _this3.show1 = true; |
| | | return _context6.abrupt("return"); |
| | | case 11: |
| | | if (!(_this3.info.depositStatus === 2)) { |
| | | _context6.next = 14; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | | title: '结算申请提交成功,请耐心等待退款!', |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | | return _context6.abrupt("return"); |
| | | case 14: |
| | | if (!(type === 1)) { |
| | | _context6.next = 24; |
| | | break; |
| | | } |
| | | if (that.disable) { |
| | | _context6.next = 22; |
| | | break; |
| | | } |
| | | that.disable = true; |
| | | // 打开开锁弹框 |
| | | that.show5 = true; |
| | | // 调用开锁接口 |
| | | _context6.next = 20; |
| | | return that.$u.api.openLock({ |
| | | code: code |
| | | }); |
| | | case 20: |
| | | res = _context6.sent; |
| | | if (res.code === 200) { |
| | | that.disable = false; |
| | | that.show6 = false; |
| | | that.show5 = true; |
| | | // 循环次数 |
| | | num = 1; // 循环查看解锁结果 |
| | | timer = setInterval( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() { |
| | | var res1; |
| | | return _regenerator.default.wrap(function _callee5$(_context5) { |
| | | while (1) { |
| | | switch (_context5.prev = _context5.next) { |
| | | case 0: |
| | | num += 1; |
| | | _context5.next = 3; |
| | | return that.$u.api.refreshLock({ |
| | | id: res.data.id |
| | | }); |
| | | case 3: |
| | | res1 = _context5.sent; |
| | | // 开锁成功 |
| | | if (res1.data.status === 1) { |
| | | that.refresh(); |
| | | clearInterval(timer); |
| | | that.show5 = false; |
| | | setTimeout(function () { |
| | | that.show2 = true; |
| | | }, 500); |
| | | } |
| | | // 开锁失败 |
| | | if (res1.data.status === 3) { |
| | | that.refresh(); |
| | | clearInterval(timer); |
| | | that.show5 = false; |
| | | uni.showToast({ |
| | | title: '开锁失败', |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | // 开锁超时 |
| | | if (num === 180) { |
| | | that.refresh(); |
| | | clearInterval(timer); |
| | | that.show5 = false; |
| | | uni.showToast({ |
| | | title: '开锁超时', |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | case 7: |
| | | case "end": |
| | | return _context5.stop(); |
| | | } |
| | | } |
| | | }, _callee5); |
| | | })), 1000); |
| | | } else { |
| | | that.show5 = false; |
| | | that.disable = false; |
| | | } |
| | | case 22: |
| | | _context6.next = 28; |
| | | break; |
| | | case 24: |
| | | _context6.next = 26; |
| | | return that.$u.api.getBikeChargingRule({ |
| | | code: code |
| | | }); |
| | | case 26: |
| | | _res = _context6.sent; |
| | | if (_res.code === 200) { |
| | | that.$refs.d_tram.info = _res.data; |
| | | that.$refs.d_tram.d_show1 = true; |
| | | } |
| | | case 28: |
| | | case "end": |
| | | return _context6.stop(); |
| | | } |
| | | } |
| | | }, _callee6); |
| | | }))(); |
| | | }, |
| | | jumpX: function jumpX() { |
| | | uni.navigateTo({ |
| | | url: '/pages/leaseNotice/leaseNotice' |
| | | }); |
| | | }, |
| | | jumpMap: function jumpMap() { |
| | | uni.navigateTo({ |
| | | url: "/pages/maps/maps?type=".concat(this.type) |
| | | }); |
| | | }, |
| | | // 计价规则 |
| | | jumpgz: function jumpgz() { |
| | | uni.navigateTo({ |
| | | url: '/pages/pricingRules/pricingRules' |
| | | }); |
| | | }, |
| | | getSite: function getSite() { |
| | | var _this4 = this; |
| | | this.$u.api.rentSiteList().then(function (res) { |
| | | if (res.code === 200) { |
| | | _this4.markers = []; |
| | | res.data.forEach(function (item, index) { |
| | | _this4.markers.push({ |
| | | id: index, |
| | | width: 40, |
| | | height: 40, |
| | | latitude: item.latitude, |
| | | longitude: item.longitude, |
| | | title: item.name, |
| | | iconPath: '/static/icon/ic_bike@2x.png', |
| | | addr: item.addr |
| | | }); |
| | | }); |
| | | _this4.clickcontrol(); |
| | | } |
| | | }); |
| | | }, |
| | | // 结算 |
| | | settlement1: function settlement1() { |
| | | var _this5 = this; |
| | | if (this.isDisabled) { |
| | | this.isDisabled = false; |
| | | this.$u.api.goodsOrderSettlement({}).then(function (res) { |
| | | if (res.code === 200) { |
| | | _this5.show3 = false; |
| | | _this5.show6 = false; |
| | | _this5.show7 = false; |
| | | uni.showToast({ |
| | | title: '结算申请提交成功,请耐心等待退款!', |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | | // this.refresh() |
| | | } |
| | | }).finally(function () { |
| | | _this5.refresh(); |
| | | _this5.show3 = false; |
| | | _this5.isDisabled = true; |
| | | }); |
| | | } |
| | | }, |
| | | minute: function minute() { |
| | | this.show3 = false; |
| | | if (this.info.rideStatus != -1) { |
| | | this.show6 = true; |
| | | } |
| | | }, |
| | | settlement: function settlement() { |
| | | if (this.info.depositStatus === 2) { |
| | | uni.showToast({ |
| | | title: '结算申请提交成功,请耐心等待退款!', |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | | return; |
| | | } |
| | | this.show6 = false; |
| | | this.show3 = true; |
| | | }, |
| | | // 导航到还车点 |
| | | navigationReturn: function navigationReturn() { |
| | | uni.navigateTo({ |
| | | url: '/pages/maps/maps' |
| | | }); |
| | | }, |
| | | // 跳转 |
| | | jump: function jump(item) { |
| | | var _this6 = this; |
| | | return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() { |
| | | return _regenerator.default.wrap(function _callee7$(_context7) { |
| | | while (1) { |
| | | switch (_context7.prev = _context7.next) { |
| | | case 0: |
| | | _context7.next = 2; |
| | | return _this6.refresh(); |
| | | case 2: |
| | | if (!(item.id === 3)) { |
| | | _context7.next = 6; |
| | | break; |
| | | } |
| | | // uni.navigateTo({ |
| | | // url: '/pages/pricingRules/pricingRules' |
| | | // }); |
| | | uni.navigateTo({ |
| | | url: '/pages/couponRedemption/couponRedemption' |
| | | }); |
| | | _context7.next = 35; |
| | | break; |
| | | case 6: |
| | | if (!(item.id === 4)) { |
| | | _context7.next = 10; |
| | | break; |
| | | } |
| | | uni.navigateTo({ |
| | | url: '/pages/personalCenter/personalCenter' |
| | | }); |
| | | _context7.next = 35; |
| | | break; |
| | | case 10: |
| | | if (!(item.id === 5)) { |
| | | _context7.next = 14; |
| | | break; |
| | | } |
| | | if (!_this6.userInfo.sysuser) { |
| | | uni.navigateTo({ |
| | | url: '/pages/operationLogin/operationLogin' |
| | | }); |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: '/pages/operationsCenter/operationsCenter' |
| | | }); |
| | | } |
| | | _context7.next = 35; |
| | | break; |
| | | case 14: |
| | | if (!(item.id === 2)) { |
| | | _context7.next = 23; |
| | | break; |
| | | } |
| | | if (_this6.userInfo.mobile) { |
| | | _context7.next = 17; |
| | | break; |
| | | } |
| | | return _context7.abrupt("return"); |
| | | case 17: |
| | | if (!(_this6.info.rideStatus === 1)) { |
| | | _context7.next = 20; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | | title: '骑行中不能结算押金', |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | | return _context7.abrupt("return"); |
| | | case 20: |
| | | if (_this6.info.depositStatus === 1) { |
| | | _this6.show3 = true; |
| | | } else if (_this6.info.depositStatus === 2) { |
| | | uni.showToast({ |
| | | title: '结算申请提交成功,请耐心等待退款!', |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | | } else { |
| | | uni.showToast({ |
| | | title: '您暂无押金,无需结算!', |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | _context7.next = 35; |
| | | break; |
| | | case 23: |
| | | if (!(item.id === 1)) { |
| | | _context7.next = 35; |
| | | break; |
| | | } |
| | | if (_this6.userInfo.mobile) { |
| | | _context7.next = 26; |
| | | break; |
| | | } |
| | | return _context7.abrupt("return"); |
| | | case 26: |
| | | if (!(_this6.info.depositStatus === 1)) { |
| | | _context7.next = 31; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | | title: '押金已充值', |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | | return _context7.abrupt("return"); |
| | | case 31: |
| | | if (!(_this6.info.depositStatus === 2)) { |
| | | _context7.next = 34; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | | title: '结算申请提交成功,请耐心等待退款!', |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | | return _context7.abrupt("return"); |
| | | case 34: |
| | | _this6.show1 = true; |
| | | case 35: |
| | | case "end": |
| | | return _context7.stop(); |
| | | } |
| | | } |
| | | }, _callee7); |
| | | }))(); |
| | | }, |
| | | // 骑行明细 |
| | | toRidingDetails: function toRidingDetails() { |
| | | uni.navigateTo({ |
| | | url: "/pages/ridingDetails/ridingDetails?id=".concat(this.info.goodsOrderId, "&price=").concat(this.info.deposit / 100) |
| | | }); |
| | | }, |
| | | // 跳转故障上报 |
| | | toFaultReporting: function toFaultReporting() { |
| | | uni.navigateTo({ |
| | | url: "/pages/problemReporting/problemReporting?code=".concat(this.info.memberRidesResponse.bikeCode) |
| | | }); |
| | | }, |
| | | // 押金支付 |
| | | depositPayment: function depositPayment() { |
| | | var that = this; |
| | | if (this.active) { |
| | | if (!this.disable) { |
| | | that.disable = true; |
| | | that.$u.api.createGoodsOrderPay().then(function (res) { |
| | | if (res.code === 200) { |
| | | wx.requestPayment({ |
| | | timeStamp: res.data.timeStamp, |
| | | nonceStr: res.data.nonceStr, |
| | | package: res.data.packageVal, |
| | | signType: 'MD5', |
| | | paySign: res.data.paySign, |
| | | success: function success(res) { |
| | | that.disable = false; |
| | | if (res.errMsg = 'requestPayment:ok') { |
| | | that.show1 = false; |
| | | that.info.depositStatus = 1; |
| | | that.carRental(); |
| | | uni.showToast({ |
| | | title: '充值成功', |
| | | icon: 'success', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | }, |
| | | fail: function fail(err) { |
| | | that.disable = false; |
| | | } |
| | | }); |
| | | } |
| | | }).catch(function (err) { |
| | | that.disable = false; |
| | | }); |
| | | } |
| | | } else { |
| | | uni.showToast({ |
| | | title: '请先勾选协议', |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | }, |
| | | // 获取手机号 |
| | | getPhone: function getPhone(e) { |
| | | var that = this; |
| | | if (e.detail.errMsg === 'getPhoneNumber:ok') { |
| | | uni.login({ |
| | | provider: 'weixin', |
| | | success: function success(loginRes) { |
| | | var code = loginRes.code; |
| | | that.$u.api.wxLogin({ |
| | | code: code |
| | | }).then(function (res) { |
| | | that.$u.api.wxPhone({ |
| | | encryptedData: e.detail.encryptedData, |
| | | iv: e.detail.iv, |
| | | sessionKey: res.data.sessionKey |
| | | }).then(function (result) { |
| | | if (result.code === 200) { |
| | | that.$store.commit('setUserInfo', result.data.userResponse); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | // 扫码租车 |
| | | carRental: function carRental() { |
| | | var _this7 = this; |
| | | return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() { |
| | | var that, res; |
| | | return _regenerator.default.wrap(function _callee10$(_context10) { |
| | | while (1) { |
| | | switch (_context10.prev = _context10.next) { |
| | | case 0: |
| | | that = _this7; |
| | | _context10.next = 3; |
| | | return _this7.$u.api.home(); |
| | | case 3: |
| | | res = _context10.sent; |
| | | if (!(res.code === 200)) { |
| | | _context10.next = 15; |
| | | break; |
| | | } |
| | | _this7.info = res.data; |
| | | |
| | | // 判断有没有交押金 |
| | | if (!(_this7.info.depositStatus === 0)) { |
| | | _context10.next = 11; |
| | | break; |
| | | } |
| | | _this7.show1 = true; |
| | | return _context10.abrupt("return"); |
| | | case 11: |
| | | if (!(_this7.info.depositStatus === 2)) { |
| | | _context10.next = 14; |
| | | break; |
| | | } |
| | | uni.showToast({ |
| | | title: '结算申请提交成功,请耐心等待退款!', |
| | | icon: 'none', |
| | | duration: 2000 |
| | | }); |
| | | return _context10.abrupt("return"); |
| | | case 14: |
| | | // 扫码获取车辆信息 |
| | | uni.scanCode({ |
| | | success: function () { |
| | | var _success = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9(result) { |
| | | var code, res, bicycle, num, timer; |
| | | return _regenerator.default.wrap(function _callee9$(_context9) { |
| | | while (1) { |
| | | switch (_context9.prev = _context9.next) { |
| | | case 0: |
| | | code = decodeURIComponent(result.path).split('=')[1]; |
| | | _context9.next = 3; |
| | | return that.$u.api.getBikeChargingRule({ |
| | | code: code |
| | | }); |
| | | case 3: |
| | | res = _context9.sent; |
| | | if (!(res.code === 200 && res.data.ridesType === 0)) { |
| | | _context9.next = 13; |
| | | break; |
| | | } |
| | | that.disable = true; |
| | | that.show5 = true; |
| | | // 调用开锁接口 |
| | | _context9.next = 9; |
| | | return that.$u.api.openLock({ |
| | | code: code |
| | | }); |
| | | case 9: |
| | | bicycle = _context9.sent; |
| | | if (bicycle.code === 200) { |
| | | that.disable = false; |
| | | that.show6 = false; |
| | | that.show5 = true; |
| | | |
| | | // 循环次数 |
| | | num = 1; // 循环查看解锁结果 |
| | | timer = setInterval( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() { |
| | | var res1; |
| | | return _regenerator.default.wrap(function _callee8$(_context8) { |
| | | while (1) { |
| | | switch (_context8.prev = _context8.next) { |
| | | case 0: |
| | | num += 1; |
| | | _context8.next = 3; |
| | | return that.$u.api.refreshLock({ |
| | | id: bicycle.data.id |
| | | }); |
| | | case 3: |
| | | res1 = _context8.sent; |
| | | // 开锁成功 |
| | | if (res1.data.status === 1) { |
| | | that.refresh(); |
| | | clearInterval(timer); |
| | | that.show5 = false; |
| | | setTimeout(function () { |
| | | that.show2 = true; |
| | | }, 500); |
| | | } |
| | | // 开锁失败 |
| | | if (res1.data.status === 3) { |
| | | that.refresh(); |
| | | clearInterval(timer); |
| | | that.show5 = false; |
| | | uni.showToast({ |
| | | title: '开锁失败', |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | // 开锁超时 |
| | | if (num === 180) { |
| | | that.refresh(); |
| | | clearInterval(timer); |
| | | that.show5 = false; |
| | | uni.showToast({ |
| | | title: '开锁超时', |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | case 7: |
| | | case "end": |
| | | return _context8.stop(); |
| | | } |
| | | } |
| | | }, _callee8); |
| | | })), 1000); |
| | | } else { |
| | | that.show5 = false; |
| | | that.disable = false; |
| | | } |
| | | _context9.next = 14; |
| | | break; |
| | | case 13: |
| | | if (res.code === 200 && res.data.ridesType === 1) { |
| | | that.$refs.d_tram.info = res.data; |
| | | that.$refs.d_tram.d_show1 = true; |
| | | } |
| | | case 14: |
| | | case "end": |
| | | return _context9.stop(); |
| | | } |
| | | } |
| | | }, _callee9); |
| | | })); |
| | | function success(_x2) { |
| | | return _success.apply(this, arguments); |
| | | } |
| | | return success; |
| | | }(), |
| | | fail: function fail() { |
| | | that.disable = false; |
| | | } |
| | | }); |
| | | case 15: |
| | | case "end": |
| | | return _context10.stop(); |
| | | } |
| | | } |
| | | }, _callee10); |
| | | }))(); |
| | | }, |
| | | // 获取经纬度 |
| | | getAddress: function getAddress() { |
| | | var that = this; |
| | | // 1、判断手机定位服务【GPS】 是否授权 |
| | | uni.getSystemInfo({ |
| | | success: function success(res) { |
| | | var locationEnabled = res.locationEnabled; // 判断手机定位服务是否开启 |
| | | var locationAuthorized = res.locationAuthorized; // 判断定位服务是否允许微信授权 |
| | | if (locationEnabled == false || locationAuthorized == false) { |
| | | //手机定位服务(GPS)未授权 |
| | | uni.showToast({ |
| | | title: "请打开手机GPS", |
| | | icon: "none" |
| | | }); |
| | | } else { |
| | | // 2、判断微信小程序是否授权位置信息 |
| | | uni.authorize({ |
| | | //授权请求窗口 |
| | | scope: "scope.userLocation", |
| | | success: function success(res) { |
| | | that.fnGetlocation(); |
| | | }, |
| | | fail: function fail(err) { |
| | | err = err["errMsg"]; |
| | | uni.showModal({ |
| | | content: "需要授权位置信息", |
| | | confirmText: "确认授权" |
| | | }).then(function (res) { |
| | | if (res.confirm) { |
| | | uni.openSetting({ |
| | | success: function success(res) { |
| | | if (res.authSetting["scope.userLocation"]) { |
| | | // 授权成功 |
| | | uni.showToast({ |
| | | title: "授权成功", |
| | | icon: "none" |
| | | }); |
| | | that.fnGetlocation(); |
| | | } else { |
| | | // 未授权 |
| | | uni.showToast({ |
| | | title: "授权失败,请重新授权", |
| | | icon: "none" |
| | | }); |
| | | uni.showModal({ |
| | | title: "授权", |
| | | content: "获取授权" + authouName + "失败,是否前往授权设置?", |
| | | success: function success(result) { |
| | | if (result.confirm) { |
| | | uni.openSetting(); |
| | | } |
| | | }, |
| | | fail: function fail() { |
| | | uni.showToast({ |
| | | title: "系统错误!", |
| | | icon: "none" |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | if (res.cancel) { |
| | | // 取消授权 |
| | | uni.showToast({ |
| | | title: "你拒绝了授权,无法获得周边信息", |
| | | icon: "none" |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | complete: function complete(res) { |
| | | if (res.errMsg == "authorize:ok") { |
| | | that.fnGetlocation(); |
| | | } else { |
| | | uni.showModal({ |
| | | title: "授权", |
| | | content: "获取授权" + authouName + "失败,是否前往授权设置?", |
| | | success: function success(result) { |
| | | if (result.confirm) { |
| | | uni.openSetting(); |
| | | } |
| | | }, |
| | | fail: function fail() { |
| | | uni.showToast({ |
| | | title: "系统错误!", |
| | | icon: "none" |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | // 定位获取 |
| | | fnGetlocation: function fnGetlocation() { |
| | | var that = this; |
| | | uni.getLocation({ |
| | | type: "gcj02", |
| | | altitude: true, |
| | | isHighAccuracy: true, |
| | | success: function success(res) { |
| | | that.latitude = res.latitude; |
| | | that.longitude = res.longitude; |
| | | }, |
| | | fail: function fail(err) { |
| | | if (err.errMsg === "getLocation:fail 频繁调用会增加电量损耗,可考虑使用 wx.onLocationChange 监听地理位置变化") { |
| | | uni.showToast({ |
| | | title: "请勿频繁定位", |
| | | icon: "none" |
| | | }); |
| | | } |
| | | if (err.errMsg === "getLocation:fail auth deny") { |
| | | // 未授权 |
| | | uni.showToast({ |
| | | title: "无法定位,请重新获取位置信息", |
| | | icon: "none" |
| | | }); |
| | | } |
| | | if (err.errMsg === "getLocation:fail:ERROR_NOCELL&WIFI_LOCATIONSWITCHOFF") { |
| | | uni.showModal({ |
| | | content: "请开启手机定位服务", |
| | | showCancel: false |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | // 刷新骑行状态 |
| | | refreshStatus: function refreshStatus() { |
| | | var _this8 = this; |
| | | this.timer = setInterval( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee11() { |
| | | var res; |
| | | return _regenerator.default.wrap(function _callee11$(_context11) { |
| | | while (1) { |
| | | switch (_context11.prev = _context11.next) { |
| | | case 0: |
| | | _context11.next = 2; |
| | | return _this8.$u.api.home(); |
| | | case 2: |
| | | res = _context11.sent; |
| | | if (!(res.code === 200)) { |
| | | _context11.next = 13; |
| | | break; |
| | | } |
| | | _this8.info = res.data; |
| | | // 骑行中 |
| | | if (!(res.data.rideStatus === 1)) { |
| | | _context11.next = 7; |
| | | break; |
| | | } |
| | | return _context11.abrupt("return"); |
| | | case 7: |
| | | _this8.show2 = false; |
| | | // 已换车 |
| | | if (!(res.data.rideStatus === 2)) { |
| | | _context11.next = 11; |
| | | break; |
| | | } |
| | | _this8.show6 = true; |
| | | return _context11.abrupt("return"); |
| | | case 11: |
| | | if (res.data.rideStatus === -1) { |
| | | _this8.show6 = false; |
| | | } |
| | | clearInterval(_this8.timer); |
| | | case 13: |
| | | case "end": |
| | | return _context11.stop(); |
| | | } |
| | | } |
| | | }, _callee11); |
| | | })), 10000); |
| | | }, |
| | | // 刷新电车信息 |
| | | refreshTram: function refreshTram() { |
| | | var _this9 = this; |
| | | this.timerdian = setInterval(function () { |
| | | _this9.$u.api.home().then(function (res) { |
| | | if (res.code === 200) { |
| | | _this9.info = res.data; |
| | | // 未查到骑行订单 |
| | | if (!res.data.memberRidesResponse) { |
| | | _this9.$refs.d_tram.d_show = false; |
| | | _this9.$refs.d_tram.d_show1 = false; |
| | | _this9.$refs.d_tram.d_show2 = false; |
| | | _this9.$refs.d_tram.d_show3 = false; |
| | | _this9.$refs.d_tram.d_show4 = false; |
| | | _this9.$refs.d_tram.d_show5 = false; |
| | | _this9.$refs.d_tram.d_show6 = false; |
| | | _this9.$refs.d_tram.d_show7 = false; |
| | | _this9.$refs.d_tram.d_show8 = false; |
| | | _this9.$refs.d_tram.d_show9 = false; |
| | | clearInterval(_this9.timerdian); |
| | | _this9.timerdian = null; |
| | | } |
| | | } |
| | | }); |
| | | }, 30000); |
| | | }, |
| | | // 获取首页信息 |
| | | getHomeInfo: function getHomeInfo() { |
| | | var _this10 = this; |
| | | var that = this; |
| | | this.$u.api.home().then( /*#__PURE__*/function () { |
| | | var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee13(res) { |
| | | var num, timer, arr; |
| | | return _regenerator.default.wrap(function _callee13$(_context13) { |
| | | while (1) { |
| | | switch (_context13.prev = _context13.next) { |
| | | case 0: |
| | | if (!(res.code === 200)) { |
| | | _context13.next = 14; |
| | | break; |
| | | } |
| | | _this10.info = res.data; |
| | | console.log('是否弹出广告图', res.data.adList.length > 0 && !res.data.memberRidesResponse); |
| | | // 是否弹出广告图 |
| | | if (res.data.adList.length > 0 && !res.data.memberRidesResponse) { |
| | | _this10.show = true; |
| | | } |
| | | // 自行车 |
| | | if (res.data.memberRidesResponse && res.data.memberRidesResponse.ridesType === 0) { |
| | | // 解锁中 |
| | | if (res.data.rideStatus === 0) { |
| | | _this10.show5 = true; |
| | | // 循环次数 |
| | | num = 1; // 循环查看解锁结果 |
| | | timer = setInterval( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee12() { |
| | | var res1; |
| | | return _regenerator.default.wrap(function _callee12$(_context12) { |
| | | while (1) { |
| | | switch (_context12.prev = _context12.next) { |
| | | case 0: |
| | | num += 1; |
| | | _context12.next = 3; |
| | | return _this10.$u.api.refreshLock({ |
| | | id: res.data.memberRidesResponse.rideId |
| | | }); |
| | | case 3: |
| | | res1 = _context12.sent; |
| | | // 开锁成功 |
| | | if (res1.data.status === 1) { |
| | | clearInterval(timer); |
| | | _this10.show5 = false; |
| | | setTimeout(function () { |
| | | _this10.show2 = true; |
| | | }, 500); |
| | | } |
| | | // 开锁失败 |
| | | if (res1.data.status === 3) { |
| | | clearInterval(timer); |
| | | _this10.show5 = false; |
| | | uni.showToast({ |
| | | title: '开锁失败', |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | // 开锁超时 |
| | | if (num === 180) { |
| | | clearInterval(timer); |
| | | _this10.show5 = false; |
| | | uni.showToast({ |
| | | title: '开锁超时', |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | case 7: |
| | | case "end": |
| | | return _context12.stop(); |
| | | } |
| | | } |
| | | }, _callee12); |
| | | })), 1000); |
| | | } |
| | | // 骑行中 |
| | | if (res.data.rideStatus === 1) { |
| | | _this10.show2 = true; |
| | | _this10.refreshStatus(); |
| | | } |
| | | if (res.data.rideStatus === 5) { |
| | | _this10.show5 = true; |
| | | } |
| | | if (res.data.rideStatus === 2) { |
| | | _this10.show6 = true; |
| | | _this10.refreshStatus(); |
| | | } |
| | | } else if (res.data.memberRidesResponse && res.data.memberRidesResponse.ridesType === 1) { |
| | | that.$refs.d_tram.info = _objectSpread(_objectSpread(_objectSpread({}, res.data.memberRidesResponse.discountMember), res.data.memberRidesResponse), {}, { |
| | | deposit: res.data.deposit, |
| | | goodsOrderId: res.data.goodsOrderId |
| | | }); |
| | | // 骑行中 |
| | | if (res.data.rideStatus === 1) { |
| | | that.$refs.d_tram.d_show3 = true; |
| | | } |
| | | // 临时锁车 |
| | | if (res.data.rideStatus === 4) { |
| | | that.$refs.d_tram.d_show4 = true; |
| | | } |
| | | } |
| | | // 是否营业 |
| | | if (!(res.data.isBusiness === 0)) { |
| | | _context13.next = 10; |
| | | break; |
| | | } |
| | | _this10.title = '暂停营业提醒'; |
| | | _this10.content = res.data.unBusinessTips; |
| | | _this10.show4 = true; |
| | | return _context13.abrupt("return"); |
| | | case 10: |
| | | // 是否停止服务 |
| | | if (res.data.isStopServe === 1) { |
| | | _this10.title = '暂停服务提醒'; |
| | | _this10.content = res.data.stopServeTips; |
| | | _this10.show4 = true; |
| | | } |
| | | _this10.tcList = res.data.discountList; |
| | | arr = JSON.parse(res.data.eleBusinessArea); |
| | | _this10.eleBusinessArea[0].points = arr.map(function (item) { |
| | | return { |
| | | latitude: item.lat, |
| | | longitude: item.lng |
| | | }; |
| | | }); |
| | | case 14: |
| | | case "end": |
| | | return _context13.stop(); |
| | | } |
| | | } |
| | | }, _callee13); |
| | | })); |
| | | return function (_x3) { |
| | | return _ref6.apply(this, arguments); |
| | | }; |
| | | }()); |
| | | }, |
| | | // 刷新首页信息 |
| | | refresh: function refresh(type) { |
| | | var _this11 = this; |
| | | this.$u.api.home().then(function (res) { |
| | | uni.stopPullDownRefresh(); |
| | | if (res.code === 200) { |
| | | _this11.info = res.data; |
| | | if (type === 'tram') { |
| | | _this11.refreshTram(); |
| | | } |
| | | // 未查到骑行订单 |
| | | if (!res.data.memberRidesResponse && _this11.onPullDownRefresh) { |
| | | _this11.show1 = false; |
| | | _this11.show2 = false; |
| | | _this11.show3 = false; |
| | | _this11.show4 = false; |
| | | _this11.show5 = false; |
| | | _this11.show6 = false; |
| | | _this11.show7 = false; |
| | | _this11.$refs.d_tram.d_show = false; |
| | | _this11.$refs.d_tram.d_show1 = false; |
| | | _this11.$refs.d_tram.d_show2 = false; |
| | | _this11.$refs.d_tram.d_show3 = false; |
| | | _this11.$refs.d_tram.d_show4 = false; |
| | | _this11.$refs.d_tram.d_show5 = false; |
| | | _this11.$refs.d_tram.d_show6 = false; |
| | | _this11.$refs.d_tram.d_show7 = false; |
| | | _this11.$refs.d_tram.d_show8 = false; |
| | | _this11.$refs.d_tram.d_show9 = false; |
| | | _this11.onPullDownRefresh = false; |
| | | return; |
| | | } |
| | | // 自行车 |
| | | if (res.data.memberRidesResponse.ridesType === 0) { |
| | | // 解锁中 |
| | | if (res.data.rideStatus === 0) { |
| | | _this11.show5 = true; |
| | | // 循环次数 |
| | | var num = 1; |
| | | // 循环查看解锁结果 |
| | | var timer = setInterval( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee14() { |
| | | var res1; |
| | | return _regenerator.default.wrap(function _callee14$(_context14) { |
| | | while (1) { |
| | | switch (_context14.prev = _context14.next) { |
| | | case 0: |
| | | num += 1; |
| | | _context14.next = 3; |
| | | return _this11.$u.api.refreshLock({ |
| | | id: res.data.memberRidesResponse.rideId |
| | | }); |
| | | case 3: |
| | | res1 = _context14.sent; |
| | | // 开锁成功 |
| | | if (res1.data.status === 1) { |
| | | clearInterval(timer); |
| | | _this11.show5 = false; |
| | | setTimeout(function () { |
| | | _this11.show2 = true; |
| | | }, 500); |
| | | } |
| | | // 开锁失败 |
| | | if (res1.data.status === 3) { |
| | | clearInterval(timer); |
| | | _this11.show5 = false; |
| | | uni.showToast({ |
| | | title: '开锁失败', |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | // 开锁超时 |
| | | if (num === 180) { |
| | | clearInterval(timer); |
| | | _this11.show5 = false; |
| | | uni.showToast({ |
| | | title: '开锁超时', |
| | | icon: 'error', |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | case 7: |
| | | case "end": |
| | | return _context14.stop(); |
| | | } |
| | | } |
| | | }, _callee14); |
| | | })), 1000); |
| | | } |
| | | if (res.data.rideStatus === 1) { |
| | | _this11.show2 = true; |
| | | _this11.refreshStatus(); |
| | | } |
| | | if (res.data.rideStatus === 5) { |
| | | _this11.show5 = true; |
| | | } |
| | | if (res.data.rideStatus === 2) { |
| | | _this11.show6 = true; |
| | | } |
| | | } else if (res.data.memberRidesResponse.ridesType === 1) { |
| | | _this11.$refs.d_tram.info = _objectSpread(_objectSpread(_objectSpread({}, res.data.memberRidesResponse.discountMember), res.data.memberRidesResponse), {}, { |
| | | deposit: res.data.deposit, |
| | | goodsOrderId: res.data.goodsOrderId |
| | | }); |
| | | // 骑行中 |
| | | if (res.data.rideStatus === 1) { |
| | | _this11.$refs.d_tram.d_show3 = true; |
| | | } |
| | | // 临时锁车 |
| | | if (res.data.rideStatus === 4) { |
| | | _this11.$refs.d_tram.d_show4 = true; |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | // 拨打电话 |
| | | calling: function calling(mobile) { |
| | | uni.makePhoneCall({ |
| | | phoneNumber: mobile |
| | | }); |
| | | } |
| | | }, |
| | | destroyed: function destroyed() { |
| | | clearInterval(this.timer); |
| | | } |
| | | }; |
| | | exports.default = _default; |
| | | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"])) |
| | | |
| | | /***/ }), |
| | | |
| | | /***/ 175: |
| | | /*!*************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/pages/index/index.vue?vue&type=style&index=0&lang=css& ***! |
| | | \*************************************************************************************/ |
| | | /*! no static exports found */ |
| | | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | __webpack_require__.r(__webpack_exports__); |
| | | /* harmony import */ var _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=css& */ 176); |
| | | /* harmony import */ var _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__); |
| | | /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
| | | /* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_0_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); |
| | | |
| | | /***/ }), |
| | | |
| | | /***/ 176: |
| | | /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ |
| | | !*** ./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:/豆米/parkBike/bicycle/pages/index/index.vue?vue&type=style&index=0&lang=css& ***! |
| | | \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ |
| | | /*! no static exports found */ |
| | | /***/ (function(module, exports, __webpack_require__) { |
| | | |
| | | // extracted by mini-css-extract-plugin |
| | | if(false) { var cssReload; } |
| | | |
| | | |
| | | /***/ }), |
| | | |
| | | /***/ 177: |
| | | /*!**************************************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/pages/index/index.vue?vue&type=style&index=1&id=57280228&lang=scss&scoped=true& ***! |
| | | \**************************************************************************************************************/ |
| | | /*! no static exports found */ |
| | | /***/ (function(module, __webpack_exports__, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | __webpack_require__.r(__webpack_exports__); |
| | | /* harmony import */ var _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-2!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--8-oneOf-1-3!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../办公/HBuilderX.3.8.12.20230817/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=1&id=57280228&lang=scss&scoped=true& */ 178); |
| | | /* harmony import */ var _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); |
| | | /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); |
| | | /* harmony default export */ __webpack_exports__["default"] = (_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_2_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_3_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_sass_loader_dist_cjs_js_ref_8_oneOf_1_4_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_8_oneOf_1_5_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HBuilderX_3_8_12_20230817_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_style_index_1_id_57280228_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); |
| | | |
| | | /***/ }), |
| | | |
| | | /***/ 178: |
| | | /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ |
| | | !*** ./node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-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--8-oneOf-1-2!./node_modules/postcss-loader/src??ref--8-oneOf-1-3!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--8-oneOf-1-5!./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:/豆米/parkBike/bicycle/pages/index/index.vue?vue&type=style&index=1&id=57280228&lang=scss&scoped=true& ***! |
| | | \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ |
| | | /*! no static exports found */ |
| | | /***/ (function(module, exports, __webpack_require__) { |
| | | |
| | | // extracted by mini-css-extract-plugin |
| | | if(false) { var cssReload; } |
| | | |
| | | |
| | | /***/ }) |
| | | |
| | | },[[163,"common/runtime","common/vendor"]]]); |
| | | (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{163:function(e,t,n){"use strict";(function(e,t){var a=n(4);n(30);a(n(25));var o=a(n(164));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n(1)["default"],n(2)["createPage"])},164:function(e,t,n){"use strict";n.r(t);var a=n(165),o=n(167);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);n(174),n(176);var s,i=n(37),u=Object(i["default"])(o["default"],a["render"],a["staticRenderFns"],!1,null,"57280228",null,!1,a["components"],s);u.options.__file="pages/index/index.vue",t["default"]=u.exports},165:function(e,t,n){"use strict";n.r(t);var a=n(166);n.d(t,"render",(function(){return a["render"]})),n.d(t,"staticRenderFns",(function(){return a["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return a["recyclableRender"]})),n.d(t,"components",(function(){return a["components"]}))},166:function(e,t,n){"use strict";var a;n.r(t),n.d(t,"render",(function(){return o})),n.d(t,"staticRenderFns",(function(){return s})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return a}));try{a={uPopup:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(n.bind(null,383))},uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,391))},uModal:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-modal/u-modal")]).then(n.bind(null,400))},tram:function(){return n.e("components/tram/tram").then(n.bind(null,408))}}}catch(i){if(-1===i.message.indexOf("Cannot find module")||-1===i.message.indexOf(".vue"))throw i;console.error(i.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,t=e.$createElement,n=(e._self._c,e.tcList.length),a=e.taocan.length,o=a>0?e.taocan.length:null,r=(e.info.deposit/100).toFixed(2),s=e.taocan.length,i=s>0?e.taocan.length:null,u=e.info&&e.info.memberRidesResponse&&e.info.memberRidesResponse.discountMember&&1===e.info.memberRidesResponse.discountMember.limitType?e.convertMinutesToHours(e.info.memberRidesResponse.discountMember.surplusTime):null,d=e.info&&e.info.memberRidesResponse&&e.info.memberRidesResponse.discountMember&&1===e.info.memberRidesResponse.discountMember.limitType?e.convertMinutesToHours(e.info.memberRidesResponse.discountMember.surplusTime):null;e._isMounted||(e.e0=function(t){e.show1=!1},e.e1=function(t){e.active=!e.active},e.e2=function(t){e.show1=!1},e.e3=function(t){e.show5=!1},e.e4=function(t){e.show2=!1},e.e5=function(t){e.show6=!1},e.e6=function(t){e.show3=!1},e.e7=function(t){e.show4=!1},e.e8=function(t){e.show7=!1},e.e9=function(t){e.show=!1},e.e10=function(t){e.show=!1}),e.$mp.data=Object.assign({},{$root:{g0:n,g1:a,g2:o,g3:r,g4:s,g5:i,m0:u,m1:d}})},r=!1,s=[];o._withStripped=!0},167:function(e,t,n){"use strict";n.r(t);var a=n(168),o=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=o.a},168:function(e,t,n){"use strict";(function(e,a){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(58)),s=o(n(60)),i=o(n(11)),u=n(34);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(){n.e("components/tram/tram").then(function(){return resolve(n(408))}.bind(null,n)).catch(n.oe)},f={data:function(){return{disable:!1,top:0,title:"",latitude:null,longitude:null,bgImg:n(169),show:!1,show1:!1,show2:!1,show3:!1,show4:!1,show5:!1,show6:!1,show7:!1,active:!1,markers:[],functionList:[{id:1,name:"押金充值",icon:n(170)},{id:2,name:"结算退押金",icon:n(171)},{id:3,name:"团购验券",icon:n(172)},{id:4,name:"个人中心",icon:n(173)}],info:{},content:"",timer:null,isDisabled:!0,tcList:[],type:1,types:[{name:"自行车",id:1},{name:"电动车",id:2}],eleBusinessArea:[{points:[],fillColor:"#0077FF12",strokeColor:"#0077FF",strokeWidth:3,zIndex:7}],onPullDownRefresh:!1,timerdian:null,taocan:[],mapShowLocation:!1}},components:{tram:l},computed:c({},(0,u.mapState)(["navHeight","statusbarHeight","userInfo"])),onLoad:function(t){var n=this;return(0,s.default)(r.default.mark((function a(){var o;return r.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return o=n,a.next=3,n.$onLaunched;case 3:return a.next=5,n.getAddress();case 5:return a.next=7,n.getSite();case 7:n.$u.api.home().then(function(){var a=(0,s.default)(r.default.mark((function a(i){var u,d,l,f,h,p,m;return r.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(200!==i.code){a.next=14;break}if(u=decodeURIComponent(t.scene),i.data.adList.length>0&&!i.data.memberRidesResponse&&(n.show=!0),i.data.memberRidesResponse&&0===i.data.memberRidesResponse.ridesType&&"undefined"!==u&&2!==i.data.rideStatus?(d="",d="ebike"===u.substring(0,u.indexOf("-"))?"电动车":"自行车",e.showToast({title:"当前存在未结算自行车订单,请先结算订单后再扫码租".concat(d),icon:"none"})):i.data.memberRidesResponse&&1===i.data.memberRidesResponse.ridesType&&"undefined"!==u&&(l="",l="ebike"===u.substring(0,u.indexOf("-"))?"电动车":"自行车",e.showToast({title:"当前存在未结算电动车订单,请先结算订单后再扫码租".concat(l),icon:"none"})),i.data.memberRidesResponse&&0===i.data.memberRidesResponse.ridesType?(0===i.data.rideStatus&&(n.show5=!0,f=1,h=setInterval((0,s.default)(r.default.mark((function t(){var a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return f+=1,t.next=3,n.$u.api.refreshLock({id:i.data.memberRidesResponse.rideId});case 3:a=t.sent,1===a.data.status&&(clearInterval(h),n.show5=!1,setTimeout((function(){n.show2=!0}),500)),3===a.data.status&&(clearInterval(h),n.show5=!1,e.showToast({title:"开锁失败",icon:"error",duration:2e3})),180===f&&(clearInterval(h),n.show5=!1,e.showToast({title:"开锁超时",icon:"error",duration:2e3}));case 7:case"end":return t.stop()}}),t)}))),1e3)),1===i.data.rideStatus&&(n.show2=!0,n.refreshStatus()),5===i.data.rideStatus&&(n.show5=!0),2===i.data.rideStatus&&(n.show6=!0,n.refreshStatus())):i.data.memberRidesResponse&&1===i.data.memberRidesResponse.ridesType?(o.$refs.d_tram.info=c(c(c({},i.data.memberRidesResponse.discountMember),i.data.memberRidesResponse),{},{deposit:i.data.deposit,goodsOrderId:i.data.goodsOrderId}),1===i.data.rideStatus&&(o.$refs.d_tram.d_show3=!0),4===i.data.rideStatus&&(o.$refs.d_tram.d_show4=!0),o.refreshTram()):i.data.memberRidesResponse||"undefined"!==decodeURIComponent(t.scene)&&(p=decodeURIComponent(t.scene),"ebike"===p.substring(0,p.indexOf("-"))?(console.log("电动车"),n.carRentalCopy(decodeURIComponent(t.scene),2)):(console.log("自行车"),n.carRentalCopy(decodeURIComponent(t.scene),1))),0!==i.data.isBusiness){a.next=10;break}return n.title="暂停营业提醒",n.content=i.data.unBusinessTips,n.show4=!0,a.abrupt("return");case 10:1===i.data.isStopServe&&(n.title="暂停服务提醒",n.content=i.data.stopServeTips,n.show4=!0),n.tcList=i.data.discountList,m=JSON.parse(i.data.eleBusinessArea),n.eleBusinessArea[0].points=m.map((function(e){return{latitude:e.lat,longitude:e.lng}}));case 14:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}()),n.getTC(),e.$on("update",(function(e){n.carRental()})),e.$on("sweep",(function(){n.carRental()}));case 11:case"end":return a.stop()}}),a)})))()},onPullDownRefresh:function(){this.onPullDownRefresh=!0,this.refresh()},onShow:function(){var e=this;return(0,s.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$onLaunched;case 2:e.refresh();case 3:case"end":return t.stop()}}),t)})))()},onPageScroll:function(e){this.top=e.scrollTop},methods:{getTC:function(){var e=this;this.$u.api.discountPage({capacity:10,page:1,model:{}}).then((function(t){200===t.code&&(e.taocan=t.data.records)}))},convertMinutesToHours:function(e){var t=Math.floor(e/60),n=e%60;return t>0&&n>0?"".concat(t,"小时").concat(n,"分钟"):0==t?"".concat(n,"分钟"):0==n?"".concat(t,"小时"):void 0},clickcontrol:function(){var t=e.createMapContext("mapId",this);t.moveToLocation({complete:function(e){console.log("移动完成:",e)}})},getEleBikeList:function(){var e=this;return(0,s.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.eleBikeList({});case 2:n=t.sent,200===n.code&&(e.markers=[],n.data.forEach((function(t,n){e.markers.push({id:n,width:40,height:40,latitude:t.latitude,longitude:t.longitude,title:t.name,iconPath:"/static/icon/ic_bike@2x.png"})})),e.clickcontrol());case 4:case"end":return t.stop()}}),t)})))()},clickType:function(e){this.type=e,1===e?this.getSite():this.getEleBikeList()},purchase:function(t){e.navigateTo({url:"/pages/packageDetails/packageDetails?id=".concat(t)})},jumpTC:function(){e.navigateTo({url:"/pages/setMenu/setMenu"})},carRentalCopy:function(t,n){var a=this;return(0,s.default)(r.default.mark((function o(){var i,u,d,c,l,f;return r.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return i=a,o.next=3,a.$u.api.home();case 3:if(u=o.sent,200!==u.code){o.next=28;break}if(a.info=u.data,0!==a.info.depositStatus){o.next=11;break}return a.show1=!0,o.abrupt("return");case 11:if(2!==a.info.depositStatus){o.next=14;break}return e.showToast({title:"结算申请提交成功,请耐心等待退款!",icon:"none",duration:2e3}),o.abrupt("return");case 14:if(1!==n){o.next=24;break}if(i.disable){o.next=22;break}return i.disable=!0,i.show5=!0,o.next=20,i.$u.api.openLock({code:t});case 20:d=o.sent,200===d.code?(i.disable=!1,i.show6=!1,i.show5=!0,c=1,l=setInterval((0,s.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return c+=1,t.next=3,i.$u.api.refreshLock({id:d.data.id});case 3:n=t.sent,1===n.data.status&&(i.refresh(),clearInterval(l),i.show5=!1,setTimeout((function(){i.show2=!0}),500)),3===n.data.status&&(i.refresh(),clearInterval(l),i.show5=!1,e.showToast({title:"开锁失败",icon:"error",duration:2e3})),180===c&&(i.refresh(),clearInterval(l),i.show5=!1,e.showToast({title:"开锁超时",icon:"error",duration:2e3}));case 7:case"end":return t.stop()}}),t)}))),1e3)):(i.show5=!1,i.disable=!1);case 22:o.next=28;break;case 24:return o.next=26,i.$u.api.getBikeChargingRule({code:t});case 26:f=o.sent,200===f.code&&(i.$refs.d_tram.info=f.data,i.$refs.d_tram.d_show1=!0);case 28:case"end":return o.stop()}}),o)})))()},jumpX:function(){e.navigateTo({url:"/pages/leaseNotice/leaseNotice"})},jumpMap:function(){e.navigateTo({url:"/pages/maps/maps?type=".concat(this.type)})},jumpgz:function(){e.navigateTo({url:"/pages/pricingRules/pricingRules"})},getSite:function(){var e=this;this.$u.api.rentSiteList().then((function(t){200===t.code&&(e.markers=[],t.data.forEach((function(t,n){e.markers.push({id:n,width:40,height:40,latitude:t.latitude,longitude:t.longitude,title:t.name,iconPath:"/static/icon/ic_bike@2x.png",addr:t.addr})})),e.clickcontrol())}))},settlement1:function(){var t=this;this.isDisabled&&(this.isDisabled=!1,this.$u.api.goodsOrderSettlement({}).then((function(n){200===n.code&&(t.show3=!1,t.show6=!1,t.show7=!1,e.showToast({title:"结算申请提交成功,请耐心等待退款!",icon:"none",duration:2e3}))})).finally((function(){t.refresh(),t.show3=!1,t.isDisabled=!0})))},minute:function(){this.show3=!1,-1!=this.info.rideStatus&&(this.show6=!0)},settlement:function(){2!==this.info.depositStatus?(this.show6=!1,this.show3=!0):e.showToast({title:"结算申请提交成功,请耐心等待退款!",icon:"none",duration:2e3})},navigationReturn:function(){e.navigateTo({url:"/pages/maps/maps"})},jump:function(t){var n=this;return(0,s.default)(r.default.mark((function a(){return r.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n.userInfo&&n.userInfo.mobile){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,n.refresh();case 4:if(3!==t.id){a.next=8;break}e.navigateTo({url:"/pages/couponRedemption/couponRedemption"}),a.next=37;break;case 8:if(4!==t.id){a.next=12;break}e.navigateTo({url:"/pages/personalCenter/personalCenter"}),a.next=37;break;case 12:if(5!==t.id){a.next=16;break}n.userInfo.sysuser?e.navigateTo({url:"/pages/operationsCenter/operationsCenter"}):e.navigateTo({url:"/pages/operationLogin/operationLogin"}),a.next=37;break;case 16:if(2!==t.id){a.next=25;break}if(n.userInfo.mobile){a.next=19;break}return a.abrupt("return");case 19:if(1!==n.info.rideStatus){a.next=22;break}return e.showToast({title:"骑行中不能结算押金",icon:"none",duration:2e3}),a.abrupt("return");case 22:1===n.info.depositStatus?n.show3=!0:2===n.info.depositStatus?e.showToast({title:"结算申请提交成功,请耐心等待退款!",icon:"none",duration:2e3}):e.showToast({title:"您暂无押金,无需结算!",icon:"none",duration:2e3}),a.next=37;break;case 25:if(1!==t.id){a.next=37;break}if(n.userInfo.mobile){a.next=28;break}return a.abrupt("return");case 28:if(1!==n.info.depositStatus){a.next=33;break}return e.showToast({title:"押金已充值",icon:"none",duration:2e3}),a.abrupt("return");case 33:if(2!==n.info.depositStatus){a.next=36;break}return e.showToast({title:"结算申请提交成功,请耐心等待退款!",icon:"none",duration:2e3}),a.abrupt("return");case 36:n.show1=!0;case 37:case"end":return a.stop()}}),a)})))()},toRidingDetails:function(){e.navigateTo({url:"/pages/ridingDetails/ridingDetails?id=".concat(this.info.goodsOrderId,"&price=").concat(this.info.deposit/100)})},toFaultReporting:function(){e.navigateTo({url:"/pages/problemReporting/problemReporting?code=".concat(this.info.memberRidesResponse.bikeCode)})},depositPayment:function(){var t=this;this.active?this.disable||(t.disable=!0,t.$u.api.createGoodsOrderPay().then((function(n){200===n.code&&a.requestPayment({timeStamp:n.data.timeStamp,nonceStr:n.data.nonceStr,package:n.data.packageVal,signType:"MD5",paySign:n.data.paySign,success:function(n){t.disable=!1,(n.errMsg="requestPayment:ok")&&(t.show1=!1,t.info.depositStatus=1,t.carRental(),e.showToast({title:"充值成功",icon:"success",duration:2e3}))},fail:function(e){t.disable=!1}})})).catch((function(e){t.disable=!1}))):e.showToast({title:"请先勾选协议",icon:"none",duration:2e3})},getPhone:function(t){var n=this;"getPhoneNumber:ok"===t.detail.errMsg&&e.login({provider:"weixin",success:function(a){var o=a.code;n.$u.api.wxLogin({code:o}).then((function(a){n.$store.commit("setToken",a.data.token),n.$u.api.wxPhone({encryptedData:t.detail.encryptedData,iv:t.detail.iv,sessionKey:a.data.sessionKey}).then((function(t){200===t.code&&(n.$store.commit("setUserInfo",t.data.userResponse),e.redirectTo({url:"/pages/index/index"}))}))}))}})},carRental:function(){var t=this;return(0,s.default)(r.default.mark((function n(){var a,o;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=t,n.next=3,t.$u.api.home();case 3:if(o=n.sent,200!==o.code){n.next=15;break}if(t.info=o.data,0!==t.info.depositStatus){n.next=11;break}return t.show1=!0,n.abrupt("return");case 11:if(2!==t.info.depositStatus){n.next=14;break}return e.showToast({title:"结算申请提交成功,请耐心等待退款!",icon:"none",duration:2e3}),n.abrupt("return");case 14:e.scanCode({success:function(){var t=(0,s.default)(r.default.mark((function t(n){var o,i,u,d,c;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o=decodeURIComponent(n.path).split("=")[1],t.next=3,a.$u.api.getBikeChargingRule({code:o});case 3:if(i=t.sent,200!==i.code||0!==i.data.ridesType){t.next=13;break}return a.disable=!0,a.show5=!0,t.next=9,a.$u.api.openLock({code:o});case 9:u=t.sent,200===u.code?(a.disable=!1,a.show6=!1,a.show5=!0,d=1,c=setInterval((0,s.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return d+=1,t.next=3,a.$u.api.refreshLock({id:u.data.id});case 3:n=t.sent,1===n.data.status&&(a.refresh(),clearInterval(c),a.show5=!1,setTimeout((function(){a.show2=!0}),500)),3===n.data.status&&(a.refresh(),clearInterval(c),a.show5=!1,e.showToast({title:"开锁失败",icon:"error",duration:2e3})),180===d&&(a.refresh(),clearInterval(c),a.show5=!1,e.showToast({title:"开锁超时",icon:"error",duration:2e3}));case 7:case"end":return t.stop()}}),t)}))),1e3)):(a.show5=!1,a.disable=!1),t.next=14;break;case 13:200===i.code&&1===i.data.ridesType&&(a.$refs.d_tram.info=i.data,a.$refs.d_tram.d_show1=!0);case 14:case"end":return t.stop()}}),t)})));function n(e){return t.apply(this,arguments)}return n}(),fail:function(){a.disable=!1}});case 15:case"end":return n.stop()}}),n)})))()},getAddress:function(){var t=this;e.getSystemInfo({success:function(n){var a=n.locationEnabled,o=n.locationAuthorized;0==a||0==o?e.showToast({title:"请打开手机GPS",icon:"none"}):t.fnGetlocation()}})},fnGetlocation:function(){var t=this;e.getLocation({type:"gcj02",altitude:!0,isHighAccuracy:!0,success:function(e){t.mapShowLocation=!0,t.latitude=e.latitude,t.longitude=e.longitude},fail:function(n){"getLocation:fail auth deny"!==n.errMsg&&"getLocation:fail authorize no response"!==n.errMsg?("getLocation:fail 频繁调用会增加电量损耗,可考虑使用 wx.onLocationChange 监听地理位置变化"===n.errMsg&&e.showToast({title:"请勿频繁定位",icon:"none"}),"getLocation:fail:ERROR_NOCELL&WIFI_LOCATIONSWITCHOFF"===n.errMsg&&e.showModal({content:"请开启手机定位服务",showCancel:!1})):e.showModal({content:"需要授权位置信息",confirmText:"确认授权"}).then((function(n){n.confirm&&e.openSetting({success:function(e){e.authSetting["scope.userLocation"]&&t.fnGetlocation()}})}))}})},refreshStatus:function(){var e=this;this.timer=setInterval((0,s.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$u.api.home();case 2:if(n=t.sent,200!==n.code){t.next=13;break}if(e.info=n.data,1!==n.data.rideStatus){t.next=7;break}return t.abrupt("return");case 7:if(e.show2=!1,2!==n.data.rideStatus){t.next=11;break}return e.show6=!0,t.abrupt("return");case 11:-1===n.data.rideStatus&&(e.show6=!1),clearInterval(e.timer);case 13:case"end":return t.stop()}}),t)}))),1e4)},refreshTram:function(){var e=this;this.timerdian=setInterval((function(){e.$u.api.home().then((function(t){200===t.code&&(e.info=t.data,t.data.memberRidesResponse||(e.$refs.d_tram.d_show=!1,e.$refs.d_tram.d_show1=!1,e.$refs.d_tram.d_show2=!1,e.$refs.d_tram.d_show3=!1,e.$refs.d_tram.d_show4=!1,e.$refs.d_tram.d_show5=!1,e.$refs.d_tram.d_show6=!1,e.$refs.d_tram.d_show7=!1,e.$refs.d_tram.d_show8=!1,e.$refs.d_tram.d_show9=!1,clearInterval(e.timerdian),e.timerdian=null))}))}),3e4)},getHomeInfo:function(){var t=this,n=this;this.$u.api.home().then(function(){var a=(0,s.default)(r.default.mark((function a(o){var i,u,d;return r.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(200!==o.code){a.next=14;break}if(t.info=o.data,console.log("是否弹出广告图",o.data.adList.length>0&&!o.data.memberRidesResponse),o.data.adList.length>0&&!o.data.memberRidesResponse&&(t.show=!0),o.data.memberRidesResponse&&0===o.data.memberRidesResponse.ridesType?(0===o.data.rideStatus&&(t.show5=!0,i=1,u=setInterval((0,s.default)(r.default.mark((function n(){var a;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i+=1,n.next=3,t.$u.api.refreshLock({id:o.data.memberRidesResponse.rideId});case 3:a=n.sent,1===a.data.status&&(clearInterval(u),t.show5=!1,setTimeout((function(){t.show2=!0}),500)),3===a.data.status&&(clearInterval(u),t.show5=!1,e.showToast({title:"开锁失败",icon:"error",duration:2e3})),180===i&&(clearInterval(u),t.show5=!1,e.showToast({title:"开锁超时",icon:"error",duration:2e3}));case 7:case"end":return n.stop()}}),n)}))),1e3)),1===o.data.rideStatus&&(t.show2=!0,t.refreshStatus()),5===o.data.rideStatus&&(t.show5=!0),2===o.data.rideStatus&&(t.show6=!0,t.refreshStatus())):o.data.memberRidesResponse&&1===o.data.memberRidesResponse.ridesType&&(n.$refs.d_tram.info=c(c(c({},o.data.memberRidesResponse.discountMember),o.data.memberRidesResponse),{},{deposit:o.data.deposit,goodsOrderId:o.data.goodsOrderId}),1===o.data.rideStatus&&(n.$refs.d_tram.d_show3=!0),4===o.data.rideStatus&&(n.$refs.d_tram.d_show4=!0)),0!==o.data.isBusiness){a.next=10;break}return t.title="暂停营业提醒",t.content=o.data.unBusinessTips,t.show4=!0,a.abrupt("return");case 10:1===o.data.isStopServe&&(t.title="暂停服务提醒",t.content=o.data.stopServeTips,t.show4=!0),t.tcList=o.data.discountList,d=JSON.parse(o.data.eleBusinessArea),t.eleBusinessArea[0].points=d.map((function(e){return{latitude:e.lat,longitude:e.lng}}));case 14:case"end":return a.stop()}}),a)})));return function(e){return a.apply(this,arguments)}}())},refresh:function(t){var n=this;this.$u.api.home().then((function(a){if(e.stopPullDownRefresh(),200===a.code){if(n.info=a.data,"tram"===t&&n.refreshTram(),!a.data.memberRidesResponse&&n.onPullDownRefresh)return n.show1=!1,n.show2=!1,n.show3=!1,n.show4=!1,n.show5=!1,n.show6=!1,n.show7=!1,n.$refs.d_tram.d_show=!1,n.$refs.d_tram.d_show1=!1,n.$refs.d_tram.d_show2=!1,n.$refs.d_tram.d_show3=!1,n.$refs.d_tram.d_show4=!1,n.$refs.d_tram.d_show5=!1,n.$refs.d_tram.d_show6=!1,n.$refs.d_tram.d_show7=!1,n.$refs.d_tram.d_show8=!1,n.$refs.d_tram.d_show9=!1,void(n.onPullDownRefresh=!1);if(0===a.data.memberRidesResponse.ridesType){if(0===a.data.rideStatus){n.show5=!0;var o=1,i=setInterval((0,s.default)(r.default.mark((function t(){var s;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return o+=1,t.next=3,n.$u.api.refreshLock({id:a.data.memberRidesResponse.rideId});case 3:s=t.sent,1===s.data.status&&(clearInterval(i),n.show5=!1,setTimeout((function(){n.show2=!0}),500)),3===s.data.status&&(clearInterval(i),n.show5=!1,e.showToast({title:"开锁失败",icon:"error",duration:2e3})),180===o&&(clearInterval(i),n.show5=!1,e.showToast({title:"开锁超时",icon:"error",duration:2e3}));case 7:case"end":return t.stop()}}),t)}))),1e3)}1===a.data.rideStatus&&(n.show2=!0,n.refreshStatus()),5===a.data.rideStatus&&(n.show5=!0),2===a.data.rideStatus&&(n.show6=!0)}else 1===a.data.memberRidesResponse.ridesType&&(n.$refs.d_tram.info=c(c(c({},a.data.memberRidesResponse.discountMember),a.data.memberRidesResponse),{},{deposit:a.data.deposit,goodsOrderId:a.data.goodsOrderId}),1===a.data.rideStatus&&(n.$refs.d_tram.d_show3=!0),4===a.data.rideStatus&&(n.$refs.d_tram.d_show4=!0))}}))},calling:function(t){e.makePhoneCall({phoneNumber:t})}},destroyed:function(){clearInterval(this.timer)}};t.default=f}).call(this,n(2)["default"],n(1)["default"])},174:function(e,t,n){"use strict";n.r(t);var a=n(175),o=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=o.a},175:function(e,t,n){},176:function(e,t,n){"use strict";n.r(t);var a=n(177),o=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=o.a},177:function(e,t,n){}},[[163,"common/runtime","common/vendor"]]]); |
| | | //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map |