(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/order"],{ /***/ 213: /*!************************************************************************!*\ !*** C:/Users/18634/Desktop/项目/xxdj1/main.js?{"page":"pages%2Forder"} ***! \************************************************************************/ /*! 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 _order = _interopRequireDefault(__webpack_require__(/*! ./pages/order.vue */ 214)); // @ts-ignore wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__; createPage(_order.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"])) /***/ }), /***/ 214: /*!*******************************************************!*\ !*** C:/Users/18634/Desktop/项目/xxdj1/pages/order.vue ***! \*******************************************************/ /*! no static exports found */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _order_vue_vue_type_template_id_42e2fba5___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./order.vue?vue&type=template&id=42e2fba5& */ 215); /* harmony import */ var _order_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./order.vue?vue&type=script&lang=js& */ 217); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _order_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 _order_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"])( _order_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _order_vue_vue_type_template_id_42e2fba5___WEBPACK_IMPORTED_MODULE_0__["render"], _order_vue_vue_type_template_id_42e2fba5___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], false, null, null, null, false, _order_vue_vue_type_template_id_42e2fba5___WEBPACK_IMPORTED_MODULE_0__["components"], renderjs ) component.options.__file = "pages/order.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ 215: /*!**************************************************************************************!*\ !*** C:/Users/18634/Desktop/项目/xxdj1/pages/order.vue?vue&type=template&id=42e2fba5& ***! \**************************************************************************************/ /*! 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_order_vue_vue_type_template_id_42e2fba5___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!./order.vue?vue&type=template&id=42e2fba5& */ 216); /* 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_order_vue_vue_type_template_id_42e2fba5___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_order_vue_vue_type_template_id_42e2fba5___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_order_vue_vue_type_template_id_42e2fba5___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_order_vue_vue_type_template_id_42e2fba5___WEBPACK_IMPORTED_MODULE_0__["components"]; }); /***/ }), /***/ 216: /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/pages/order.vue?vue&type=template&id=42e2fba5& ***! \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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 var render = function () { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h var g0 = _vm.tabList.length var l0 = _vm.__map(_vm.list.data, function (item, index) { var $orig = _vm.__get_orig(item) var g1 = !(item.pay_type == 1) ? [2, 3, 4, 5, 6].includes(item.pay_type) : null return { $orig: $orig, g1: g1, } }) var g2 = _vm.loading ? _vm.list.current_page >= _vm.list.last_page && _vm.list.data.length > 0 : null var g3 = !_vm.loading && _vm.list.data.length <= 0 && _vm.list.current_page == 1 _vm.$mp.data = Object.assign( {}, { $root: { g0: g0, l0: l0, g2: g2, g3: g3, }, } ) } var recyclableRender = false var staticRenderFns = [] render._withStripped = true /***/ }), /***/ 217: /*!********************************************************************************!*\ !*** C:/Users/18634/Desktop/项目/xxdj1/pages/order.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_order_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!./order.vue?vue&type=script&lang=js& */ 218); /* 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_order_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_order_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_order_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_order_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_order_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); /***/ }), /***/ 218: /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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/pages/order.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 _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11)); var _asyncToGenerator2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */ 38)); 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; } // import tabbar from "@/components/tabbar.vue" var _default = { // components: { // tabbar // }, data: function data() { return { options: {}, statusType: { '-1': '已取消', 1: '待支付', 2: '待服务', 3: '技师接单', 4: '技师出发', 5: '技师到达', 6: '服务中', 7: '已完成' }, loading: true, popupInfo: {}, lockTap: false }; }, computed: (0, _vuex.mapState)({ pageActive: function pageActive(state) { return state.order.pageActive; }, activeIndex: function activeIndex(state) { return state.order.activeIndex; }, tabList: function tabList(state) { return state.order.tabList; }, param: function param(state) { return state.order.param; }, list: function list(state) { return state.order.list; }, primaryColor: function primaryColor(state) { return state.config.configInfo.primaryColor; }, subColor: function subColor(state) { return state.config.configInfo.subColor; }, configInfo: function configInfo(state) { return state.config.configInfo; }, userInfo: function userInfo(state) { return state.user.userInfo; } }), onLoad: function onLoad(options) { var _this = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { var _options$tab, tab; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: _options$tab = options.tab, tab = _options$tab === void 0 ? 0 : _options$tab; _this.updateOrderItem({ key: 'activeIndex', val: tab }); _context.next = 4; return _this.initIndex(); case 4: _this.updateOrderItem({ key: 'pageActive', val: true }); case 5: case "end": return _context.stop(); } } }, _callee); }))(); }, 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.loading = true; this.getList(this.param.page + 1); }, methods: _objectSpread(_objectSpread(_objectSpread({}, (0, _vuex.mapActions)(['getConfigInfo', 'getOrderList'])), (0, _vuex.mapMutations)(['updateOrderItem'])), {}, { initIndex: function initIndex() { var _arguments = arguments, _this2 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() { var refresh; return _regenerator.default.wrap(function _callee2$(_context2) { while (1) { switch (_context2.prev = _context2.next) { case 0: refresh = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : false; if (!(!_this2.configInfo.id || refresh)) { _context2.next = 4; break; } _context2.next = 4; return _this2.getConfigInfo(); case 4: _context2.next = 6; return _this2.getList(1); case 6: _this2.$util.setNavigationBarColor({ bg: _this2.primaryColor }); case 7: case "end": return _context2.stop(); } } }, _callee2); }))(); }, initRefresh: function initRefresh() { this.initIndex(true); }, getList: function getList() { var _arguments2 = arguments, _this3 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() { var page, _param, oldList, param, tabList, activeIndex; return _regenerator.default.wrap(function _callee3$(_context3) { while (1) { switch (_context3.prev = _context3.next) { case 0: page = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : 0; if (page) { _param = _this3.$util.deepCopy(_this3.param); _param.page = page; _this3.updateOrderItem({ key: 'param', val: _param }); } oldList = _this3.list, param = _this3.param, tabList = _this3.tabList, activeIndex = _this3.activeIndex; param.pay_type = tabList[activeIndex].id; _context3.next = 6; return _this3.getOrderList(param); case 6: _this3.loading = false; _this3.$util.hideAll(); case 8: case "end": return _context3.stop(); } } }, _callee3); }))(); }, handerTabChange: function handerTabChange(index) { this.updateOrderItem({ key: 'activeIndex', val: index }); uni.pageScrollTo({ scrollTop: 0 }); this.$util.showLoading(); this.getList(1); }, // 门店 goShop: function goShop(index) { var _this4 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() { var cap_id; return _regenerator.default.wrap(function _callee4$(_context4) { while (1) { switch (_context4.prev = _context4.next) { case 0: cap_id = _this4.list.data[index].cap_info.id; _context4.next = 3; return _this4.$api.order.selectCap({ cap_id: cap_id }); case 3: _this4.$util.goUrl({ url: "/pages/index?key=2" }); case 4: case "end": return _context4.stop(); } } }, _callee4); }))(); }, // 取消/删除订单 toCancel: function toCancel(index) { var _this5 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() { var _this5$list$data$inde, id, order_code, order_goods, pay_type, image, refs_key; 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, order_code = _this5$list$data$inde.order_code, order_goods = _this5$list$data$inde.order_goods, pay_type = _this5$list$data$inde.pay_type; image = order_goods[0].goods_cover; _this5.popupInfo = { id: id, name: "\u7CFB\u7EDF\u5355\u53F7\uFF1A".concat(order_code), image: image, index: index }; refs_key = pay_type == -1 ? 'del_item' : 'cancel_item'; _this5.$refs[refs_key].open(); case 5: case "end": return _context5.stop(); } } }, _callee5); }))(); }, // 确认:取消订单 confirmCancel: function confirmCancel() { var _this6 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6() { var _this6$popupInfo, id, index; return _regenerator.default.wrap(function _callee6$(_context6) { while (1) { switch (_context6.prev = _context6.next) { case 0: _this6$popupInfo = _this6.popupInfo, id = _this6$popupInfo.id, index = _this6$popupInfo.index; _context6.next = 3; return _this6.$api.order.cancelOrder({ id: id }); case 3: if (_this6.activeIndex == 0) { _this6.list.data[index].pay_type = -1; } else { _this6.list.data.splice(index, 1); } _this6.$util.showToast({ title: "\u53D6\u6D88\u6210\u529F" }); _this6.$refs.cancel_item.close(); case 6: case "end": return _context6.stop(); } } }, _callee6); }))(); }, // 确认:删除订单 confirmDel: function confirmDel() { var _this7 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() { var _this7$popupInfo, id, index; return _regenerator.default.wrap(function _callee7$(_context7) { while (1) { switch (_context7.prev = _context7.next) { case 0: _this7$popupInfo = _this7.popupInfo, id = _this7$popupInfo.id, index = _this7$popupInfo.index; _context7.next = 3; return _this7.$api.order.delOrder({ id: id }); case 3: _this7.list.data.splice(index, 1); _this7.$util.showToast({ title: "\u5220\u9664\u6210\u529F" }); _this7.$refs.del_item.close(); case 6: case "end": return _context7.stop(); } } }, _callee7); }))(); }, // 去支付 toPay: function toPay(index) { var _this8 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee8() { var id, _yield$_this8$$api$or, pay_list; return _regenerator.default.wrap(function _callee8$(_context8) { while (1) { switch (_context8.prev = _context8.next) { case 0: if (!_this8.lockTap) { _context8.next = 2; break; } return _context8.abrupt("return"); case 2: _this8.lockTap = true; _this8.$util.showLoading(); id = _this8.list.data[index].id; _context8.prev = 5; _context8.next = 8; return _this8.$api.order.rePayOrder({ id: id }); case 8: _yield$_this8$$api$or = _context8.sent; pay_list = _yield$_this8$$api$or.pay_list; _this8.$util.hideAll(); if (!pay_list) { _context8.next = 24; break; } _context8.prev = 12; _context8.next = 15; return _this8.$util.pay(pay_list); case 15: _this8.$util.showToast({ title: "\u652F\u4ED8\u6210\u529F" }); if (_this8.activeIndex == 0) { _this8.list.data[index].pay_type = 2; } else { _this8.list.data.splice(index, 1); } _this8.lockTap = false; _context8.next = 24; break; case 20: _context8.prev = 20; _context8.t0 = _context8["catch"](12); _this8.lockTap = false; return _context8.abrupt("return"); case 24: _context8.next = 29; break; case 26: _context8.prev = 26; _context8.t1 = _context8["catch"](5); setTimeout(function () { _this8.lockTap = false; _this8.$util.hideAll(); }, 2000); case 29: case "end": return _context8.stop(); } } }, _callee8, null, [[5, 26], [12, 20]]); }))(); }, // 去核销 toHx: function toHx(index) { var _this9 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee9() { var _this9$list$data$inde, id, image; return _regenerator.default.wrap(function _callee9$(_context9) { while (1) { switch (_context9.prev = _context9.next) { case 0: _this9$list$data$inde = _this9.list.data[index], id = _this9$list$data$inde.id, image = _this9$list$data$inde.qr; _this9.popupInfo = { id: id, image: image }; _this9.$refs.hx_item.open(); case 3: case "end": return _context9.stop(); } } }, _callee9); }))(); }, // 订单详情/申请退款/去评价 goDetail: function goDetail(index, page) { var id = this.list.data[index].id; var url = "/user/pages/order/".concat(page, "?id=").concat(id); this.$util.goUrl({ url: url }); }, // 再来一单 toAgain: function toAgain(index) { var _this10 = this; return (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee10() { var _this10$list$data$ind, order_id, coach_id; return _regenerator.default.wrap(function _callee10$(_context10) { while (1) { switch (_context10.prev = _context10.next) { case 0: _this10$list$data$ind = _this10.list.data[index], order_id = _this10$list$data$ind.id, coach_id = _this10$list$data$ind.coach_id; _context10.next = 3; return _this10.$api.order.onceMoreOrder({ order_id: order_id }); case 3: _this10.$util.goUrl({ url: "/user/pages/order?id=".concat(coach_id) }); case 4: case "end": return _context10.stop(); } } }, _callee10); }))(); } }) }; exports.default = _default; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) /***/ }) },[[213,"common/runtime","common/vendor"]]]); //# sourceMappingURL=../../.sourcemap/mp-weixin/pages/order.js.map