(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["user/pages/stored/consume"],{ /***/ 457: /*!******************************************************************************************!*\ !*** C:/Users/18634/Desktop/项目/xxdj1/main.js?{"page":"user%2Fpages%2Fstored%2Fconsume"} ***! \******************************************************************************************/ /*! 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 */ 26); __webpack_require__(/*! @dcloudio/uni-stat/dist/uni-stat.es.js */ 27); var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25)); var _consume = _interopRequireDefault(__webpack_require__(/*! ./user/pages/stored/consume.vue */ 458)); // @ts-ignore wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__; createPage(_consume.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"])) /***/ }), /***/ 458: /*!*********************************************************************!*\ !*** C:/Users/18634/Desktop/项目/xxdj1/user/pages/stored/consume.vue ***! \*********************************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _consume_vue_vue_type_template_id_0955f9e1___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./consume.vue?vue&type=template&id=0955f9e1& */ 459); /* harmony import */ var _consume_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./consume.vue?vue&type=script&lang=js& */ 461); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _consume_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 _consume_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 66); var renderjs /* normalize component */ var component = Object(_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])( _consume_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _consume_vue_vue_type_template_id_0955f9e1___WEBPACK_IMPORTED_MODULE_0__["render"], _consume_vue_vue_type_template_id_0955f9e1___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], false, null, null, null, false, _consume_vue_vue_type_template_id_0955f9e1___WEBPACK_IMPORTED_MODULE_0__["components"], renderjs ) component.options.__file = "user/pages/stored/consume.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ 459: /*!****************************************************************************************************!*\ !*** C:/Users/18634/Desktop/项目/xxdj1/user/pages/stored/consume.vue?vue&type=template&id=0955f9e1& ***! \****************************************************************************************************/ /*! exports provided: render, staticRenderFns, recyclableRender, components */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_vue_vue_type_template_id_0955f9e1___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./consume.vue?vue&type=template&id=0955f9e1& */ 460); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_vue_vue_type_template_id_0955f9e1___WEBPACK_IMPORTED_MODULE_0__["render"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_vue_vue_type_template_id_0955f9e1___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_vue_vue_type_template_id_0955f9e1___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_vue_vue_type_template_id_0955f9e1___WEBPACK_IMPORTED_MODULE_0__["components"]; }); /***/ }), /***/ 460: /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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!C:/Users/18634/Desktop/项目/xxdj1/user/pages/stored/consume.vue?vue&type=template&id=0955f9e1& ***! \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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 = { wPicker: function () { return __webpack_require__.e(/*! import() | components/w-picker/w-picker */ "components/w-picker/w-picker").then(__webpack_require__.bind(null, /*! @/components/w-picker/w-picker.vue */ 884)) }, } } 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.loading ? _vm.list.current_page >= _vm.list.last_page && _vm.list.data.length > 0 : null var g1 = !_vm.loading && _vm.list.data.length <= 0 && _vm.list.current_page == 1 _vm.$mp.data = Object.assign( {}, { $root: { g0: g0, g1: g1, }, } ) } var recyclableRender = false var staticRenderFns = [] render._withStripped = true /***/ }), /***/ 461: /*!**********************************************************************************************!*\ !*** C:/Users/18634/Desktop/项目/xxdj1/user/pages/stored/consume.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 _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!./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!./consume.vue?vue&type=script&lang=js& */ 462); /* harmony import */ var _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_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 _D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (_D_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_D_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_consume_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), /***/ 462: /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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!C:/Users/18634/Desktop/项目/xxdj1/user/pages/stored/consume.vue?vue&type=script&lang=js& ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(uni) { 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 */ 36)); var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ 5)); var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 38)); var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11)); var _vuex = __webpack_require__(/*! vuex */ 48); 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 wPicker = function wPicker() { __webpack_require__.e(/*! require.ensure | components/w-picker/w-picker */ "components/w-picker/w-picker").then((function () { return resolve(__webpack_require__(/*! @/components/w-picker/w-picker.vue */ 884)); }).bind(null, __webpack_require__)).catch(__webpack_require__.oe); }; var _default = { components: { wPicker: wPicker }, data: function data() { return { toDay: '', startYear: '', showKey: '', showDate: false, rankList: ['本月', '日期筛选'], rankInd: 0, start_time: '', param: { page: 1, start_time: '', end_time: '' }, list: { data: [] }, loading: true, curInd: -1, startX: 0, //开始坐标 startY: 0, //开始坐标 lockTap: false }; }, computed: (0, _vuex.mapState)({ primaryColor: function primaryColor(state) { return state.config.configInfo.primaryColor; }, subColor: function subColor(state) { return state.config.configInfo.subColor; } }), onLoad: function onLoad() { this.$util.showLoading(); this.initIndex(); }, onPullDownRefresh: function onPullDownRefresh() { uni.showNavigationBarLoading(); this.initRefresh(); uni.stopPullDownRefresh(); }, onReachBottom: function onReachBottom() { if (this.list.current_page >= this.list.last_page || this.loading) return; this.param.page = this.param.page + 1; this.loading = true; this.getList(); }, methods: _objectSpread(_objectSpread({}, (0, _vuex.mapMutations)(['updateUserItem'])), {}, { initIndex: function initIndex() { var _arguments = arguments, _this = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { var refresh, cur_time; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: refresh = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : false; cur_time = new Date(Math.ceil(new Date().getTime())); _this.toDay = _this.$util.formatTime(cur_time, 'YY-M-D'); _this.startYear = _this.$util.formatTime(cur_time, 'YY'); _this.start_time = _this.$util.formatTime(cur_time, 'YY-M') + '-01'; _context.next = 7; return _this.getList(); case 7: _this.$util.setNavigationBarColor({ bg: _this.primaryColor }); case 8: case "end": return _context.stop(); } } }, _callee); }))(); }, initRefresh: function initRefresh() { this.param.page = 1; this.initIndex(true); }, getList: function getList() { var _this2 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() { var oldList, rankInd, start_time, toDay, param, newList; return _regenerator.default.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: oldList = _this2.list, rankInd = _this2.rankInd, start_time = _this2.start_time, toDay = _this2.toDay; param = _this2.$util.deepCopy(_this2.param); if (rankInd == 0) { param.start_time = start_time; param.end_time = toDay; } param.start_time = _this2.$util.DateToUnix(param.start_time); param.end_time = _this2.$util.DateToUnix(param.end_time) + 24 * 3600 - 1; _context2.next = 7; return _this2.$api.mine.payWater(param); case 7: newList = _context2.sent; newList.data.map(function (item) { item.isTouchMove = false; }); if (_this2.param.page == 1) { _this2.list = newList; } else { newList.data = oldList.data.concat(newList.data); _this2.list = newList; } _this2.loading = false; _this2.$util.hideAll(); case 12: case "end": return _context2.stop(); } } }, _callee2); }))(); }, toChangeItem: function toChangeItem(index, key) { var _this3 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() { var methodModel; return _regenerator.default.wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: _this3[key] = index; if (!(key == 'rankInd')) { _context3.next = 9; break; } methodModel = index == 1 ? 'open' : 'close'; _this3.$refs.show_choose_time[methodModel](); if (!(index == 1)) { _context3.next = 6; break; } return _context3.abrupt("return"); case 6: _this3.param.page = 1; _context3.next = 9; return _this3.getList(); case 9: case "end": return _context3.stop(); } } }, _callee3); }))(); }, toShowTime: function toShowTime(key) { if (key == 'end_time' && !this.param.start_time) { this.$util.showToast({ title: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4" }); return; } this.showKey = key; this.showDate = true; }, onConfirm: function onConfirm(val) { var _this4 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() { var _this4$param, start_time, end_time, showKey; return _regenerator.default.wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: _this4$param = _this4.param, start_time = _this4$param.start_time, end_time = _this4$param.end_time; showKey = _this4.showKey; if (!(showKey == 'end_time' && _this4.$util.DateToUnix(start_time) > _this4.$util.DateToUnix(val.result))) { _context4.next = 5; break; } _this4.$util.showToast({ title: "\u7ED3\u675F\u65F6\u95F4\u4E0D\u80FD\u5C0F\u4E8E\u6216\u7B49\u4E8E\u5F00\u59CB\u65F6\u95F4" }); return _context4.abrupt("return"); case 5: _this4.param[showKey] = val.result; if (!(showKey == 'end_time')) { _context4.next = 12; break; } _this4.showDate = false; _this4.$refs.show_choose_time.close(); _this4.param.page = 1; _context4.next = 12; return _this4.getList(); case 12: case "end": return _context4.stop(); } } }, _callee4); }))(); }, toDel: function toDel(index) { var _this5 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() { var _this5$list$data$inde, id, title, _yield$uni$showModal, _yield$uni$showModal2, res_del, confirm, param; return _regenerator.default.wrap(function _callee5$(_context5) { while (1) { switch (_context5.prev = _context5.next) { case 0: _this5$list$data$inde = _this5.list.data[index], id = _this5$list$data$inde.id, title = _this5$list$data$inde.title; _context5.next = 3; return uni.showModal({ content: "\u8BF7\u786E\u8BA4\u662F\u5426\u8981\u5220\u9664\u2018".concat(title, "'") }); case 3: _yield$uni$showModal = _context5.sent; _yield$uni$showModal2 = (0, _slicedToArray2.default)(_yield$uni$showModal, 2); res_del = _yield$uni$showModal2[0]; confirm = _yield$uni$showModal2[1].confirm; if (confirm) { _context5.next = 9; break; } return _context5.abrupt("return"); case 9: param = { id: id, status: -1 }; _context5.next = 12; return _this5.$api.master.goodsCateUpdate(param); case 12: _this5.$util.showToast({ title: "\u5220\u9664\u6210\u529F" }); _this5.list.data.splice(index, 1); case 14: case "end": return _context5.stop(); } } }, _callee5); }))(); }, //手指触摸动作开始 记录起点X坐标 touchstart: function touchstart(e) { //开始触摸时 重置所有删除 this.list.data.forEach(function (item) { if (item.isTouchMove) //只操作为true的 item.isTouchMove = false; }); this.startX = e.changedTouches[0].clientX; this.startY = e.changedTouches[0].clientY; }, //滑动事件处理 touchmove: function touchmove(e) { var startX = this.startX, startY = this.startY; var index = e.currentTarget.dataset.index; //当前索引 var _e$changedTouches$ = e.changedTouches[0], clientX = _e$changedTouches$.clientX, clientY = _e$changedTouches$.clientY; var touchMoveX = clientX; var touchMoveY = clientY; //获取滑动角度 var angle = this.angle({ X: startX, Y: startY }, { X: touchMoveX, Y: touchMoveY }); this.list.data.forEach(function (v, i) { v.isTouchMove = false; //滑动超过30度角 return if (Math.abs(angle) > 30) return; if (i == index) { if (touchMoveX > startX) //右滑 v.isTouchMove = false;else //左滑 v.isTouchMove = true; } }); }, /** * 计算滑动角度 * @param {Object} start 起点坐标 * @param {Object} end 终点坐标 */ angle: function angle(start, end) { var _X = end.X - start.X, _Y = end.Y - start.Y; //返回角度 /Math.atan()返回数字的反正切值 return 360 * Math.atan(_Y / _X) / (2 * Math.PI); } }) }; exports.default = _default; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) /***/ }) },[[457,"common/runtime","common/vendor"]]]); //# sourceMappingURL=../../../../.sourcemap/mp-weixin/user/pages/stored/consume.js.map