| | |
| | | }); |
| | | }; // 获取字典值信息 |
| | | |
| | | var discountPage = function discountPage() { |
| | | var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.post('web/business/discountPage', data); |
| | | }; // 热销套餐 |
| | | var discountDetail = function discountDetail() { |
| | | var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.get('web/business/discountDetail', { |
| | | params: params |
| | | }); |
| | | }; // 套餐详情 |
| | | var createDiscountOrderPay = function createDiscountOrderPay() { |
| | | var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.get('web/business/createDiscountOrderPay', { |
| | | params: params |
| | | }); |
| | | }; // 套餐购买 |
| | | var eleBikeList = function eleBikeList() { |
| | | var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.get('web/business/eleBikeList', { |
| | | params: params |
| | | }); |
| | | }; // 查询所有电动车信息 |
| | | var eleSiteList = function eleSiteList() { |
| | | var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.get('web/business/eleSiteList', { |
| | | params: params |
| | | }); |
| | | }; // 电动车站点列表 |
| | | var getEleBusinessArea = function getEleBusinessArea() { |
| | | var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.get('web/business/getEleBusinessArea', { |
| | | params: params |
| | | }); |
| | | }; // 获取电动车运营区域 |
| | | var getBikeChargingRule = function getBikeChargingRule() { |
| | | var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.get('web/business/getBikeChargingRule', { |
| | | params: params |
| | | }); |
| | | }; // 扫码获取车辆信息 |
| | | var openElecBike = function openElecBike() { |
| | | var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.post('web/business/openElecBike', data); |
| | | }; // 电车开锁 |
| | | var backElecBike = function backElecBike() { |
| | | var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.post('web/business/backElecBike', data); |
| | | }; // 电车站点还车 |
| | | var pauseElecBike = function pauseElecBike() { |
| | | var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.post('web/business/pauseElecBike', data); |
| | | }; // 电车临时停车 |
| | | var pauseOpenElecBike = function pauseOpenElecBike() { |
| | | var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; |
| | | return uni.$u.http.post('web/business/pauseOpenElecBike', data); |
| | | }; // 电车临停开锁 |
| | | |
| | | vm.$u.api = { |
| | | getUserInfo: getUserInfo, |
| | | wxLogin: wxLogin, |
| | |
| | | onlineBike: onlineBike, |
| | | transactionsPage: transactionsPage, |
| | | goodsOrderSettlement: goodsOrderSettlement, |
| | | getSysDict: getSysDict |
| | | getSysDict: getSysDict, |
| | | discountPage: discountPage, |
| | | discountDetail: discountDetail, |
| | | createDiscountOrderPay: createDiscountOrderPay, |
| | | eleBikeList: eleBikeList, |
| | | eleSiteList: eleSiteList, |
| | | getEleBusinessArea: getEleBusinessArea, |
| | | getBikeChargingRule: getBikeChargingRule, |
| | | openElecBike: openElecBike, |
| | | backElecBike: backElecBike, |
| | | pauseElecBike: pauseElecBike, |
| | | pauseOpenElecBike: pauseOpenElecBike |
| | | }; |
| | | }; |
| | | var _default = { |
| | |
| | | icon: "none", |
| | | duration: 2000 |
| | | }); |
| | | return response.data; |
| | | } |
| | | return response.data; |
| | | }, function (response) { |
| | |
| | | /* 311 */, |
| | | /* 312 */, |
| | | /* 313 */, |
| | | /* 314 */ |
| | | /* 314 */, |
| | | /* 315 */, |
| | | /* 316 */, |
| | | /* 317 */, |
| | | /* 318 */, |
| | | /* 319 */, |
| | | /* 320 */, |
| | | /* 321 */ |
| | | /*!********************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-parse/props.js ***! |
| | | \********************************************************************************/ |
| | |
| | | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) |
| | | |
| | | /***/ }), |
| | | /* 315 */ |
| | | /* 322 */ |
| | | /*!*********************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-parse/parser.js ***! |
| | | \*********************************************************************************/ |
| | |
| | | /* 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"])) |
| | | |
| | | /***/ }), |
| | | /* 316 */, |
| | | /* 317 */, |
| | | /* 318 */, |
| | | /* 319 */, |
| | | /* 320 */, |
| | | /* 321 */, |
| | | /* 322 */, |
| | | /* 323 */ |
| | | /* 323 */, |
| | | /* 324 */, |
| | | /* 325 */, |
| | | /* 326 */, |
| | | /* 327 */, |
| | | /* 328 */, |
| | | /* 329 */, |
| | | /* 330 */ |
| | | /*!***************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-loading-page/props.js ***! |
| | | \***************************************************************************************/ |
| | |
| | | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) |
| | | |
| | | /***/ }), |
| | | /* 324 */, |
| | | /* 325 */, |
| | | /* 326 */, |
| | | /* 327 */, |
| | | /* 328 */, |
| | | /* 329 */, |
| | | /* 330 */, |
| | | /* 331 */ |
| | | /* 331 */, |
| | | /* 332 */, |
| | | /* 333 */, |
| | | /* 334 */, |
| | | /* 335 */, |
| | | /* 336 */, |
| | | /* 337 */, |
| | | /* 338 */ |
| | | /*!*************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-count-down/props.js ***! |
| | | \*************************************************************************************/ |
| | | /*! no static exports found */ |
| | | /***/ (function(module, exports, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | /* WEBPACK VAR INJECTION */(function(uni) { |
| | | |
| | | Object.defineProperty(exports, "__esModule", { |
| | | value: true |
| | | }); |
| | | exports.default = void 0; |
| | | var _default = { |
| | | props: { |
| | | // 倒计时时长,单位ms |
| | | time: { |
| | | type: [String, Number], |
| | | default: uni.$u.props.countDown.time |
| | | }, |
| | | // 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒 |
| | | format: { |
| | | type: String, |
| | | default: uni.$u.props.countDown.format |
| | | }, |
| | | // 是否自动开始倒计时 |
| | | autoStart: { |
| | | type: Boolean, |
| | | default: uni.$u.props.countDown.autoStart |
| | | }, |
| | | // 是否展示毫秒倒计时 |
| | | millisecond: { |
| | | type: Boolean, |
| | | default: uni.$u.props.countDown.millisecond |
| | | } |
| | | } |
| | | }; |
| | | exports.default = _default; |
| | | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) |
| | | |
| | | /***/ }), |
| | | /* 339 */ |
| | | /*!*************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-count-down/utils.js ***! |
| | | \*************************************************************************************/ |
| | | /*! no static exports found */ |
| | | /***/ (function(module, exports, __webpack_require__) { |
| | | |
| | | "use strict"; |
| | | |
| | | |
| | | Object.defineProperty(exports, "__esModule", { |
| | | value: true |
| | | }); |
| | | exports.isSameSecond = isSameSecond; |
| | | exports.parseFormat = parseFormat; |
| | | exports.parseTimeData = parseTimeData; |
| | | // 补0,如1 -> 01 |
| | | function padZero(num) { |
| | | var targetLength = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2; |
| | | var str = "".concat(num); |
| | | while (str.length < targetLength) { |
| | | str = "0".concat(str); |
| | | } |
| | | return str; |
| | | } |
| | | var SECOND = 1000; |
| | | var MINUTE = 60 * SECOND; |
| | | var HOUR = 60 * MINUTE; |
| | | var DAY = 24 * HOUR; |
| | | function parseTimeData(time) { |
| | | var days = Math.floor(time / DAY); |
| | | var hours = Math.floor(time % DAY / HOUR); |
| | | var minutes = Math.floor(time % HOUR / MINUTE); |
| | | var seconds = Math.floor(time % MINUTE / SECOND); |
| | | var milliseconds = Math.floor(time % SECOND); |
| | | return { |
| | | days: days, |
| | | hours: hours, |
| | | minutes: minutes, |
| | | seconds: seconds, |
| | | milliseconds: milliseconds |
| | | }; |
| | | } |
| | | function parseFormat(format, timeData) { |
| | | var days = timeData.days, |
| | | hours = timeData.hours, |
| | | minutes = timeData.minutes, |
| | | seconds = timeData.seconds, |
| | | milliseconds = timeData.milliseconds; |
| | | // 如果格式化字符串中不存在DD(天),则将天的时间转为小时中去 |
| | | if (format.indexOf('DD') === -1) { |
| | | hours += days * 24; |
| | | } else { |
| | | // 对天补0 |
| | | format = format.replace('DD', padZero(days)); |
| | | } |
| | | // 其他同理于DD的格式化处理方式 |
| | | if (format.indexOf('HH') === -1) { |
| | | minutes += hours * 60; |
| | | } else { |
| | | format = format.replace('HH', padZero(hours)); |
| | | } |
| | | if (format.indexOf('mm') === -1) { |
| | | seconds += minutes * 60; |
| | | } else { |
| | | format = format.replace('mm', padZero(minutes)); |
| | | } |
| | | if (format.indexOf('ss') === -1) { |
| | | milliseconds += seconds * 1000; |
| | | } else { |
| | | format = format.replace('ss', padZero(seconds)); |
| | | } |
| | | return format.replace('SSS', padZero(milliseconds, 3)); |
| | | } |
| | | function isSameSecond(time1, time2) { |
| | | return Math.floor(time1 / 1000) === Math.floor(time2 / 1000); |
| | | } |
| | | |
| | | /***/ }), |
| | | /* 340 */, |
| | | /* 341 */, |
| | | /* 342 */, |
| | | /* 343 */, |
| | | /* 344 */, |
| | | /* 345 */, |
| | | /* 346 */, |
| | | /* 347 */ |
| | | /*!**********************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-overlay/props.js ***! |
| | | \**********************************************************************************/ |
| | |
| | | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) |
| | | |
| | | /***/ }), |
| | | /* 332 */, |
| | | /* 333 */, |
| | | /* 334 */, |
| | | /* 335 */, |
| | | /* 336 */, |
| | | /* 337 */, |
| | | /* 338 */, |
| | | /* 339 */ |
| | | /* 348 */, |
| | | /* 349 */, |
| | | /* 350 */, |
| | | /* 351 */, |
| | | /* 352 */, |
| | | /* 353 */, |
| | | /* 354 */, |
| | | /* 355 */ |
| | | /*!*************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-transition/props.js ***! |
| | | \*************************************************************************************/ |
| | |
| | | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) |
| | | |
| | | /***/ }), |
| | | /* 340 */ |
| | | /* 356 */ |
| | | /*!******************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-transition/transition.js ***! |
| | | \******************************************************************************************/ |
| | |
| | | exports.default = void 0; |
| | | var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ 30)); |
| | | var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 32)); |
| | | var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 341)); |
| | | var _nvueAniMap = _interopRequireDefault(__webpack_require__(/*! ./nvue.ani-map.js */ 357)); |
| | | // 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法 |
| | | var nextTick = function nextTick() { |
| | | return new Promise(function (resolve) { |
| | |
| | | exports.default = _default; |
| | | |
| | | /***/ }), |
| | | /* 341 */ |
| | | /* 357 */ |
| | | /*!********************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-transition/nvue.ani-map.js ***! |
| | | \********************************************************************************************/ |
| | |
| | | exports.default = _default; |
| | | |
| | | /***/ }), |
| | | /* 342 */, |
| | | /* 343 */, |
| | | /* 344 */, |
| | | /* 345 */, |
| | | /* 346 */, |
| | | /* 347 */, |
| | | /* 348 */, |
| | | /* 349 */ |
| | | /* 358 */, |
| | | /* 359 */, |
| | | /* 360 */, |
| | | /* 361 */, |
| | | /* 362 */, |
| | | /* 363 */, |
| | | /* 364 */, |
| | | /* 365 */ |
| | | /*!*************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-status-bar/props.js ***! |
| | | \*************************************************************************************/ |
| | |
| | | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) |
| | | |
| | | /***/ }), |
| | | /* 350 */, |
| | | /* 351 */, |
| | | /* 352 */, |
| | | /* 353 */, |
| | | /* 354 */, |
| | | /* 355 */, |
| | | /* 356 */, |
| | | /* 357 */ |
| | | /* 366 */, |
| | | /* 367 */, |
| | | /* 368 */, |
| | | /* 369 */, |
| | | /* 370 */, |
| | | /* 371 */, |
| | | /* 372 */, |
| | | /* 373 */ |
| | | /*!*******************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-icon/icons.js ***! |
| | | \*******************************************************************************/ |
| | |
| | | exports.default = _default; |
| | | |
| | | /***/ }), |
| | | /* 358 */ |
| | | /* 374 */ |
| | | /*!*******************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-icon/props.js ***! |
| | | \*******************************************************************************/ |
| | |
| | | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) |
| | | |
| | | /***/ }), |
| | | /* 359 */, |
| | | /* 360 */, |
| | | /* 361 */, |
| | | /* 362 */, |
| | | /* 363 */, |
| | | /* 364 */, |
| | | /* 365 */, |
| | | /* 366 */ |
| | | /* 375 */, |
| | | /* 376 */, |
| | | /* 377 */, |
| | | /* 378 */, |
| | | /* 379 */, |
| | | /* 380 */, |
| | | /* 381 */, |
| | | /* 382 */ |
| | | /*!**************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-safe-bottom/props.js ***! |
| | | \**************************************************************************************/ |
| | |
| | | exports.default = _default; |
| | | |
| | | /***/ }), |
| | | /* 367 */, |
| | | /* 368 */, |
| | | /* 369 */, |
| | | /* 370 */, |
| | | /* 371 */, |
| | | /* 372 */, |
| | | /* 373 */, |
| | | /* 374 */ |
| | | /* 383 */, |
| | | /* 384 */, |
| | | /* 385 */, |
| | | /* 386 */, |
| | | /* 387 */, |
| | | /* 388 */, |
| | | /* 389 */, |
| | | /* 390 */ |
| | | /*!*******************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-line/props.js ***! |
| | | \*******************************************************************************/ |
| | |
| | | /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) |
| | | |
| | | /***/ }), |
| | | /* 375 */, |
| | | /* 376 */, |
| | | /* 377 */, |
| | | /* 378 */, |
| | | /* 379 */, |
| | | /* 380 */, |
| | | /* 381 */, |
| | | /* 382 */ |
| | | /* 391 */, |
| | | /* 392 */, |
| | | /* 393 */, |
| | | /* 394 */, |
| | | /* 395 */, |
| | | /* 396 */, |
| | | /* 397 */, |
| | | /* 398 */ |
| | | /*!***************************************************************************************!*\ |
| | | !*** D:/豆米/parkBike/bicycle/node_modules/uview-ui/components/u-loading-icon/props.js ***! |
| | | \***************************************************************************************/ |