(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/index/index"],{ /***/ 45: /*!**********************************************************************************************************************!*\ !*** /Users/zhangshaokang/Desktop/git/yicaijob_view/dandelionPlatform2_uni/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 */ 26); var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25)); var _index = _interopRequireDefault(__webpack_require__(/*! ./pages/index/index.vue */ 46)); // @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"])) /***/ }), /***/ 46: /*!***************************************************************************************************!*\ !*** /Users/zhangshaokang/Desktop/git/yicaijob_view/dandelionPlatform2_uni/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___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=57280228& */ 47); /* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ 49); /* 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& */ 52); /* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32); var renderjs /* normalize component */ var component = Object(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])( _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["render"], _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"], false, null, null, null, false, _index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["components"], renderjs ) component.options.__file = "pages/index/index.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ 47: /*!**********************************************************************************************************************************!*\ !*** /Users/zhangshaokang/Desktop/git/yicaijob_view/dandelionPlatform2_uni/pages/index/index.vue?vue&type=template&id=57280228& ***! \**********************************************************************************************************************************/ /*! exports provided: render, staticRenderFns, recyclableRender, components */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--17-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=57280228& */ 48); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["render"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; }); /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_17_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_index_vue_vue_type_template_id_57280228___WEBPACK_IMPORTED_MODULE_0__["components"]; }); /***/ }), /***/ 48: /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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!/Users/zhangshaokang/Desktop/git/yicaijob_view/dandelionPlatform2_uni/pages/index/index.vue?vue&type=template&id=57280228& ***! \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /*! 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.selectBrandList.length var g1 = _vm.whichOneShow == "brand" && _vm.selectBrandList.length <= 0 var g2 = _vm.whichOneShow != "brand" && _vm.selectBrandList.length <= 0 var g3 = _vm.selectBrandList.length var g4 = g3 > 0 ? _vm.selectBrandList.length : null var g5 = _vm.selectJobList.length var g6 = _vm.whichOneShow == "special" && _vm.selectJobList.length <= 0 var g7 = _vm.whichOneShow != "special" && _vm.selectJobList.length <= 0 var g8 = _vm.selectJobList.length var g9 = g8 > 0 ? _vm.selectJobList.length : null var g10 = _vm.selectBrandList.length > 0 || _vm.selectJobList.length > 0 || _vm.sexid != "-1" || (_vm.storeJobListSearchForm.ageRangeStr && _vm.storeJobListSearchForm.ageRangeStr != "16-60") var g11 = g10 && _vm.sexid != "-1" ? _vm.sexid != "-1" && (_vm.selectJobList.length > 0 || _vm.selectBrandList.length > 0) : null var g12 = g10 ? _vm.selectBrandList.length : null var g13 = g10 && g12 > 0 ? _vm.selectBrandList.length > 0 && _vm.selectJobList.length > 0 : null var g14 = g10 ? _vm.selectJobList.length : null var g15 = _vm.selectBrandList.length > 0 || _vm.selectJobList.length > 0 || _vm.activez != "zuigao" || _vm.sexid != "-1" var g16 = _vm.recordList != null && _vm.recordList.length > 0 var l0 = g16 ? _vm.__map(_vm.recordList, function (item, index) { var $orig = _vm.__get_orig(item) var g17 = item.jobSpecialLabelNameArray.length return { $orig: $orig, g17: g17, } }) : null var g18 = g16 ? (_vm.recordList == null || _vm.recordList.length == 0) && _vm.storeJobListSearchForm.keys != null && _vm.storeJobListSearchForm.keys != "" : null var g19 = g16 && !g18 ? !_vm.hasMoreData && _vm.recordList.length != 0 : null var g20 = (_vm.recordList == null || _vm.recordList.length == 0) && _vm.pageShow _vm.$mp.data = Object.assign( {}, { $root: { g0: g0, g1: g1, g2: g2, g3: g3, g4: g4, g5: g5, g6: g6, g7: g7, g8: g8, g9: g9, g10: g10, g11: g11, g12: g12, g13: g13, g14: g14, g15: g15, g16: g16, l0: l0, g18: g18, g19: g19, g20: g20, }, } ) } var recyclableRender = false var staticRenderFns = [] render._withStripped = true /***/ }), /***/ 49: /*!****************************************************************************************************************************!*\ !*** /Users/zhangshaokang/Desktop/git/yicaijob_view/dandelionPlatform2_uni/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 _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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__(/*! -!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js& */ 50); /* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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 _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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 _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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"] = (_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_13_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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); /***/ }), /***/ 50: /*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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!/Users/zhangshaokang/Desktop/git/yicaijob_view/dandelionPlatform2_uni/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) { var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ 18)); var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ 11)); var _methods; 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 rangeSlider = function rangeSlider() { __webpack_require__.e(/*! require.ensure | components/range/range-slider */ "components/range/range-slider").then((function () { return resolve(__webpack_require__(/*! ../../components/range/range-slider */ 436)); }).bind(null, __webpack_require__)).catch(__webpack_require__.oe); }; var bottomDrawer = function bottomDrawer() { Promise.all(/*! require.ensure | components/bottom-drawer/index */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/bottom-drawer/index")]).then((function () { return resolve(__webpack_require__(/*! ../../components/bottom-drawer/index */ 443)); }).bind(null, __webpack_require__)).catch(__webpack_require__.oe); }; var app = getApp(); var commonUtil = __webpack_require__(/*! ../../utils/commonUtil.js */ 51); var _default = { components: { rangeSlider: rangeSlider, bottomDrawer: bottomDrawer }, data: function data() { return { navList: [], currentInfo: {}, swiperHeight: 0, toped: '1', chaShowed: false, isTrigger: false, // background: ["../../assets/images/banner1.jpg", "../../assets/images/banner2.jpg", "../../assets/images/banner3.jpg", "../../assets/images/banner4.jpg"], pullNum: 0, //下拉次数 tabs: [], activeTab: 0, systemInfo: {}, getMenuButtonBoundingClientRect: {}, // 手机基础信息 tabs2: [], loadMore: '', loadContent: ['马不停蹄加载更多数据中...', '-- 已经到底了,加不了咯 --'], statusBarHeight: uni.getStorageSync('statusBarHeight'), // 状态栏高度 navigationBarHeight: uni.getStorageSync('navigationBarHeight'), // 导航栏高度 menuButtonHeight: uni.getStorageSync('menuButtonHeight'), // 胶囊按钮高度 menuButton: uni.getStorageSync('menuButtonInfo'), // 胶囊信息 navigatorHeight: 60, activeTab2: 0, contentIndex: 0, latestClass: 0, zoneClass: 0, recordList: [], jobSpecialLabelNames: [], storeJobListSearchForm: { recruitment: 1, pageNum: 1, pageSize: 20, classify: 1, sex: -1, workTypeStr: '', lat: '', lng: '', jobClassify: '', sortTag: 0, jobSpecialLabelIds: '', cityName: '', brandIds: '', jobCategoryLabelIds: '', ujc: 0, ageRangeStr: '', keys: '' }, loading: true, topJobList: [], hasLocation: false, chooseActive: false, //筛选是否高亮 labelItems: [], checkedlabelItems: [], hasMoreData: false, //下拉是否还有更多数据 inputShowed: false, inputVal: '搜索职位', wxCode: '', isCollect: false, collectTxt: '收藏', isLogin: app.globalData.isLogin, hasUserInfo: 0, searchCityParamStorage: { name: '', shortName: '' }, iosDialog1: false, phoneDialog: false, triggered: false, pageShow: false, whichOneShow: '', siv: '', activez: 'zuigao', sexid: '-1', // 性别筛选的id dialog1: false, dialog2: false, jobSpecialLabelList: [], brandList: [], firstMenu: '排序', // 工价筛选tab显示 secondMenu: '性别', // 性别筛选tab显示 selectBrandList: [], // 选中的品牌标签 selectJobList: [], // 选中的特色标签 tagArray0: [], tagArray1: [], tagArray2: [], tagArray3: [], tagArray4: [], recordBillType: '', // 报名类型(拍照或者直接报名) signType: 0, // 职位类型(自营 三方) recordCount: 0, totalPage: 0, currPage: 0, currentJobDrawer: {}, // 当前简版职位抽屉信息 drawerShow: false, // 简版职位抽屉显隐 choiceCollect: 0, //收藏的筛选 corpUserFlag: app.globalData.loginUserInfo.corpUserFlag, // 内部成员的判断 agencyStatus: app.globalData.loginUserInfo.agencyStatus, // 是否是代理的判断 serviceInfo: {}, // 代理信息 navigatorBarHeight: 0, // 头部整体高度信息 iosDialog: false, // 成为代理弹窗 isLoading: true, // 成为代理图片加载loading效果 isScrollTop: false, // 控制职位列表的滚动 swiperTextList: ['日结工', '18岁', '电子厂', '短期工', '47岁', '保底', '小时工'], // 关键词轮播的关键词列表 placeholderText: '', // 当前关键词 leftShow: false, // 左侧智能匹配抽屉显示 /** * 滑动相关变量 */ lastX: 0, //滑动开始x轴位置 lastY: 0, //滑动开始y轴位置 text: '没有滑动', currentGesture: 0, //标识手势 listPosition: null, // 存储列表当前位置 halfHide: true, // 智能匹配显示一半控制 topNum: 0, scrollTo: '', // 列表滚动的控制 bannerList: [], filterData: { sex: [{ name: '男', id: 1, active: 0, icon: 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nan912.png', selectIcon: 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nan912-1.png' }, { name: '女', id: 2, active: 0, icon: 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nv912.png', selectIcon: 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nv912-1.png' }, { name: '男女不限', id: -1, active: -1 }], jobFilter: { tagArray0: [], tagArray1: [], tagArray2: [], tagArray3: [], tagArray4: [] }, classifyList: [] }, //智能筛选数据 smartObj: { tattoo: [{ name: '无', id: 1, active: 0 }, { name: '小面积', id: 2, active: 0 }, { name: '大面积', id: 3, active: 0 }], criminal: [{ name: '无', id: 1, active: 0 }, { name: '有', id: 2, active: 0 }], blacklist: [{ name: '是', id: 1, active: 0 }, { name: '否', id: 2, active: 0 }], idCardType: [{ name: '原件正常', id: 1, active: 0 }, { name: '临时', id: 2, active: 0 }, { name: '消磁', id: 3, active: 0 }, { name: '过期', id: 4, active: 0 }, { name: '复印件', id: 5, active: 0 }], sex: [{ name: '男', id: 1, active: 0, icon: 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nan912.png', selectIcon: 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nan912-1.png' }, { name: '女', id: 2, active: 0, icon: 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nv912.png', selectIcon: 'https://matripe-cms.oss-cn-beijing.aliyuncs.com/1shoudan/nv912-1.png' }, { name: '男女不限', id: -1, active: -1 }], nativePlace: '', nation: '' }, copyList: {}, innerFilter: false, // 年龄筛选参数 rangeValues: [16, 60], // 年龄筛选区间 maxAge: 60, // 年龄区间最大取值 minAge: 16, recordShow: false, userInfo: '', jobFilter: '', classifyList: '', selected: 0, isShow: false, age: false, readed: '' }; }, onShareAppMessage: function onShareAppMessage() { // var path = commonUtil.getCurrentPageUrlWithArgs(); // if (app.globalData.isLogin && app.globalData.agencyStatus - 0 != 0) { // //当前用户是代理人 // path += (path.indexOf("?") >= 0 ? "&" : "?") + "agencyUserId=" + app.globalData.loginUserInfo.id; // } // console.log(path); // let img; // this.data.templateList.forEach((element) => { // if (element.title == "职位云小程序首页卡片分享封面") { // img = element.img + "?" + new Date().getTime(); // } // }); // return { // title: " ", // path: path, // imageUrl: img, // }; }, onLoad: function onLoad(options) { var _this = this; var that = this; // console.log('options+++++++++++++++++++++++++++++++++',options); console.log(uni.getSystemInfoSync()); // Array.prototype.logResult = function(){ // console.log('Array'); // } this.setData({ placeholderText: this.swiperTextList[0] }); var arr = []; arr.logResult(); this.getListByTypeAndIndustry(); this.getBrandNameAllList(); // 查看是否授权 uni.getSetting({ success: function success(res) { if (res.authSetting['scope.userInfo']) { // 已经授权,可以直接调用 getUserInfo 获取头像昵称 uni.getUserInfo({ success: function success(res) { console.log(res.userInfo); } }); } } }); // if (app.isNotEmptyCheck(options.fromSearchPage) && options.fromSearchPage == 1) { // try { // var searchCityParamStorage = wx.getStorageSync("searchCityParamStorage"); // if (searchCityParamStorage) { // console.log("searchCityParamStorage======", searchCityParamStorage); // that.data.storeJobListSearchForm.cityName = searchCityParamStorage.name; // if (app.isEmptyCheck(searchCityParamStorage.name)) { // that.data.storeJobListSearchForm.cityName = "全国"; // } // that.setData({ // searchCityParamStorage: searchCityParamStorage, // }); // } // } catch (e) { // console.log("获取缓存设置的查询职位列表参数错误:", e); // } // } else { // try { // wx.removeStorageSync("searchJobListParamStorage"); // } catch (e) { // console.log("删除缓存设置的查询职位列表参数错误:", e); // } // try { // wx.removeStorageSync("searchCityParamStorage"); // } catch (e) { // console.log("删除缓存设置的查询职位列表参数错误:", e); // } // } try { if (app.globalData.isScanQRCodes - 1 == 0) { uni.showToast({ title: '欢迎查看好工作', icon: 'success', duration: 2000 }); if (!getApp().globalData.isLogin) { setTimeout(function () { if (!getApp().globalData.isLogin) { that.openIOS2(); } }, 5000); } } } catch (e) { console.log('CatchClause', e); console.log('CatchClause', e); console.log('获取缓存设置的查询职位列表参数错误:', e); } console.log('options==============================1'); console.log(options); console.log('options==============================2'); if (app.globalData.isNotEmptyCheck(options.scene)) { //扫小程序码携带参数 var sceneStr = decodeURIComponent(options.scene); var sceneJson = commonUtil.sceneToJson(sceneStr); console.log('sceneJson===', sceneJson); if (sceneJson.fromType == 1) { app.globalData.isCommission = 1; uni.setStorageSync('storageSyncAgencyUserId', sceneJson.userId); } //先设置代理人缓存人再登录 app.globalData.getLoginUserTokenInfo(); } else if (app.globalData.isNotEmptyCheck(options.fromType)) { //扫小程序普通二维码携带参数-来源ID console.log('options.fromType========' + options.fromType); if (options.fromType == 0) { console.log('options.id========' + options.id); console.log('options.userId========' + options.userId); try { app.globalData.isCommission = 1; uni.setStorageSync('fromQrCodeChannelContactId', options.id); that.getAgencyUserId(options.id); } catch (e) { console.log('CatchClause', e); console.log('CatchClause', e); console.log('0-扫描微信二维码,设置参数错误:', e); } } else if (options.fromType.indexOf('0&id=') >= 0) { //兼容2021-9-9之前的二维码 var paramsTempId = options.fromType.replace('0&id=', ''); console.log('¶msTempId========' + paramsTempId); try { app.globalData.isCommission = 1; uni.setStorageSync('fromQrCodeChannelContactId', paramsTempId); that.getAgencyUserId(paramsTempId); } catch (e) { console.log('CatchClause', e); console.log('CatchClause', e); console.log('0-扫描微信二维码,设置参数错误:', e); } } else { //兼容2021-9-9之前的二维码 var paramsTempId = options.fromType.replace('0,id=', ''); console.log('=paramsTempId========' + paramsTempId); try { app.globalData.isCommission = 1; uni.setStorageSync('fromQrCodeChannelContactId', paramsTempId); that.getAgencyUserId(paramsTempId); } catch (e) { console.log('CatchClause', e); console.log('CatchClause', e); console.log('0-扫描微信二维码,设置参数错误:', e); } } } else { console.log('options.fromType===else=====' + options); } //this.wxLogin(); var res = uni.getStorageSync('storeJobId'); //详情页返回 console.log(res); if (app.globalData.isEmptyCheck(res.data)) { this.setData({ recordList: [] }); } else { uni.removeStorageSync({ key: 'storeJobId' }); } console.log('on show'); //登录=================================start if (app.globalData.isLogin) { this.setData({ isLogin: app.globalData.isLogin, hasUserInfo: app.globalData.hasUserInfo, agencyStatus: app.globalData.loginUserInfo.agencyStatus, corpUserFlag: app.globalData.loginUserInfo.corpUserFlag, userInfo: app.globalData.loginUserInfo, serviceInfo: app.globalData.serviceInfo, isLoading: true }); } else { // 由于 userLogin 是网络请求,可能会在 Page.onLoad 之后才返回 // 所以此处加入 callback 以防止这种情况 app.globalData.userLoginCallback = function (res) { _this.setData({ isLogin: app.globalData.isLogin, hasUserInfo: app.globalData.hasUserInfo, agencyStatus: app.globalData.loginUserInfo.agencyStatus, corpUserFlag: app.globalData.loginUserInfo.corpUserFlag, userInfo: app.globalData.loginUserInfo, serviceInfo: app.globalData.serviceInfo }); console.log(that.serviceInfo); }; console.log(that.serviceInfo); } //登录=================================end this.getHopeJobLabels(); var agencyUserId = options.agencyUserId; if (agencyUserId) { uni.setStorageSync('storageSyncAgencyUserId', agencyUserId); console.log('agencyUserId', agencyUserId); app.globalData.isCommission = 1; } app.globalData.getLoginUserTokenInfo(); that.getType(); // this.getJobList(); if (uni.getStorageSync('FILTER_LIST')) { var list = uni.getStorageSync('FILTER_LIST'); list.forEach(function (item) { item.active = 0; if (item.typeClassify == '0') { _this.filterData.jobFilter['tagArray0'].push(item); } else if (item.typeClassify == '1') { _this.filterData.jobFilter['tagArray1'].push(item); } else if (item.typeClassify == '2') { _this.filterData.jobFilter['tagArray2'].push(item); } else if (item.typeClassify == '3') { _this.filterData.jobFilter['tagArray3'].push(item); } else if (item.typeClassify == '4') { _this.filterData.jobFilter['tagArray4'].push(item); } }); var jobFilter = 'filterData.jobFilter'; this.setData((0, _defineProperty2.default)({}, jobFilter, this.filterData.jobFilter)); } if (uni.getStorageSync('CLASSIFY_LIST')) { console.log(uni.getStorageSync('CLASSIFY_LIST')); this.filterData.classifyList = uni.getStorageSync('CLASSIFY_LIST'); this.filterData.classifyList.forEach(function (item) { console.log(item); item.active = 0; delete item.typeClassify; }); var classifyList = 'filterData.classifyList'; this.setData((0, _defineProperty2.default)({}, classifyList, this.filterData.classifyList)); } this.setData({ copyList: JSON.parse(JSON.stringify(this.filterData)) }); that.setData({ recordList: [] }); that.getJobList(); // that.getJobList(); }, onReady: function onReady() { var that = this; that.setData({ recordList: [] }); that.getJobList(); // var query = wx.createSelectorQuery(); // query.select(".navigatorBar").boundingClientRect(); // query.exec(function (res) { // //res就是 所有标签为v1的元素的信息 的数组 // console.log(res); // //取高度 // console.log(res[0].height); // that.setData({ // navigatorBarHeight: res[0].height, // }); // }); }, onShow: function onShow() { var _this2 = this; var that = this; // that.setData({ // navList:[{ // id: 45, // img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/2024-03-14/77694bb5-34e7-4381-8f2c-f4cc1987cf3a_职教职培.png", // path: "/subPage/vocationalList/index", // remark: "职教职培", // sortIdx: 1, // status: 1, // title: "职教职培" // }] // }) that.getchannelList(); // that.searchAnimate(); that.storeJobListSearchForm.pageNum = 1; uni.setStorageSync('BILLFROM', 'firstBill'); // var query = wx.createSelectorQuery(); // query.select(".toppic").boundingClientRect(); // query.exec(function (res) { // //res就是 所有标签为v1的元素的信息 的数组 // console.log(res); // //取高度 // console.log(res[0].height); // that.setData({ // swiperHeight: res[0].height, // }); // }); // wx.showTabBar({ // success(e) {}, // }); // let index = 1; // that.setData({ // placeholderText: that.data.swiperTextList[0], // }); // setInterval(() => { // that.data.placeholderText = that.data.swiperTextList[index % that.data.swiperTextList.length]; // that.setData({ // placeholderText: that.data.placeholderText, // }); // index++; // }, 5000); if (uni.getStorageSync('FROMCITY')) { try { var searchCityParamStorage = uni.getStorageSync('searchCityParamStorage'); if (searchCityParamStorage) { console.log('searchCityParamStorage======', searchCityParamStorage); that.storeJobListSearchForm.cityName = searchCityParamStorage.name; if (app.globalData.isEmptyCheck(searchCityParamStorage.name)) { that.storeJobListSearchForm.cityName = ''; } that.setData({ searchCityParamStorage: searchCityParamStorage, storeJobListSearchForm: that.storeJobListSearchForm }); that.setData({ recordList: [] }); this.getJobList(); } } catch (e) { console.log('CatchClause', e); console.log('CatchClause', e); console.log('获取缓存设置的查询职位列表参数错误:', e); } uni.removeStorageSync('FROMCITY'); } else { // that.setData({ // recordList: [], // }); // that.getJobList(); } if (typeof this.getTabBar === 'function' && this.getTabBar()) { this.getTabBar().setData({ selected: 0, isShow: true }); } uni.setStorageSync('comeFromPage', 'index'); this.setData({ storeJobListSearchForm: that.storeJobListSearchForm, isLogin: app.globalData.isLogin, recordBillType: '' }); console.log(app.globalData); setTimeout(function () { if (app.globalData.isLogin) { that.setData({ agencyStatus: app.globalData.loginUserInfo.agencyStatus, corpUserFlag: app.globalData.loginUserInfo.corpUserFlag, userInfo: app.globalData.loginUserInfo, serviceInfo: app.globalData.serviceInfo }); console.log(app.globalData.loginUserInfo); } else { that.setData({ serviceInfo: app.globalData.serviceInfo }); _this2.wxLogin(); } }, 100); console.log(app.globalData.headers); // if (that.data.inputVal != "搜索工作") { // console.log(that.data.inputVal); // that.setData({ // recordList: [], // }); // that.getJobList(); // } uni.removeStorage({ key: 'townsManInfo' }); uni.removeStorage({ key: 'townsManInfoJob' }); /*this.wxLogin(); let res = wx.getStorageSync({ key: "storeJobId" }); //详情页返回 if (app.isEmptyCheck(res.data)) { this.setData({ recordList: [] }); } else { wx.removeStorageSync({ key: "storeJobId" }); } console.log("on show"); this.getHopeJobLabels(); var reset = true;*/ that.getTemplateList(); that.searchAnimate(); that.getBannerList(); }, onPageScroll: function onPageScroll(e) {}, // tabbar点击监听 onTabItemTap: function onTabItemTap(e) { console.log(e); var that = this; that.setData({ topNum: 1 }); }, onHide: function onHide() { this.setData({ whichOneShow: '' // topNum: 1, }); }, onUnload: function onUnload() { console.log('destory'); }, methods: (_methods = { // onPullDownRefresh:function(){ // this.getJobList(); // console.log(123); // wx.stopPullDownRefresh({ // success() { // app.refreshSuccess(); // } // }); // }, goLogin: function goLogin() { uni.setStorageSync('comeFromPage', 'index'); uni.navigateTo({ url: '/pages/login/index' }); }, close: function close() { var that = this; var brandList = that.brandList; var selectBrandList = that.selectBrandList; if (selectBrandList.length > 0) { for (var i = 0; i < brandList.length; i++) { console.log('level1'); for (var j = 0; j < selectBrandList.length; j++) { console.log('level2'); if (brandList[i].id == selectBrandList[j].id) { return brandList[i].checked = true; } else { brandList[i].checked = false; } } } } else { brandList.forEach(function (item) { item.checked = false; }); } return brandList; }, closeFix: function closeFix() { var that = this; // let brandList = that.close() // that.data.brandList.forEach((item) => { // if (that.data.selectBrandList.length > 0) { // that.data.selectBrandList.forEach((item1) => { // if (item.id != item1.id) { // console.log("isSame"); // item.checked = false; // console.log(item.checked); // } else { // item.checked = true; // } // }); // } else { // item.checked = false; // } // }); // console.log(that.data.brandList); // console.log(that.data.selectBrandList); console.log('isout'); }, touchStart: function touchStart(e) { // console.log("滚起来", e); // this.setData({ // scrollStop: false // }) this.setData({ // whichOneShow: mark, siv: '' }); }, choosenTop: function choosenTop(e) { var that = this; // that.data.storeJobListSearchForm.pageNum = 1; var id = e.currentTarget.dataset.id; setTimeout(function () { that.setData({ toped: id // isScrollTop: false, }); }, 0); // 切换标准 简版 重新查询列表 // that.data.storeJobListSearchForm.pageNum = 1; // that.setData({ // toped: id, // recordList: [], // }); // that.getJobList(); }, chooseNl: function chooseNl(e) { var _this3 = this; var that = this; console.log(e); var mark = ''; var type = e.target.dataset.type; var whichOneShow = that.whichOneShow; // if (!that.data.isLogin) { // wx.navigateTo({ // url: "/pages/login/index", // }); // return; // } if (type == 'gj') { if (whichOneShow == 'gj') { mark = ''; } else { mark = 'gj'; } } else if (type == 'sex') { if (whichOneShow == 'sex') { mark = ''; } else { mark = 'sex'; } } else if (type == 'brand') { if (whichOneShow == 'brand') { mark = ''; } else { mark = 'brand'; } } else if (type == 'special') { if (whichOneShow == 'special') { mark = ''; } else { mark = 'special'; } } if (that.siv != 'menu') { setTimeout(function () { that.setData({ whichOneShow: mark // siv:'menu' }); console.log(_this3.whichOneShow); }, 0); that.setData({ siv: 'menu', scrollTo: 'sticky' }); } this.hideLeft(); }, getType: function getType() { var that = this; uni.request({ url: app.globalData.ip + '/yishoudan/labels/type/app/95', method: 'get', header: app.globalData.headers, success: function success(res) { console.log(res); var classifyList = 'filterData.classifyList'; that.setData((0, _defineProperty2.default)({}, classifyList, res.data.data.labels)); // that.data.storeJobListSearchForm['jobCategoryLabelIds'] = res.data.data.labels[0].id // that.setData({ // list:res.data.data.labels, // storeJobListSearchForm: that.data.storeJobListSearchForm // }) } }); }, toSpecialArea: function toSpecialArea(e) { var id = e.currentTarget.dataset.id; uni.navigateTo({ url: '../specialArea/index?id=' + id }); }, chooseM: function chooseM(e) { var str = e.currentTarget.dataset.id; console.log(str); this.setData({ activez: str }); }, watch: function watch() {}, witchNav: function witchNav(e) { console.log(e); uni.navigateTo({ url: '../empty/index' }); // wx.showToast({ // title: '敬请期待...', // icon:'none' // }) // if (!this.data.isLogin) { // wx.navigateTo({ // url: "/pages/login/index", // }); // return; // } // if (e.currentTarget.dataset.title == "成为代理") { // console.log("成为代理"); // if (app.globalData.loginUserInfo.agencyStatus == 1) { // wx.showToast({ // title: "您已经是代理了", // icon: "none", // duration: 2000, // }); // return; // } // } else if (e.currentTarget.dataset.title == "主推/热推") { // wx.navigateTo({ // url: e.currentTarget.dataset.url + "?listtype=" + this.data.toped, // }); // return; // } // wx.navigateTo({ // url: e.currentTarget.dataset.url, // }); }, toHot: function toHot(e) { if (e.currentTarget.dataset.path) { if (e.currentTarget.dataset.path == '/pages/hotList/index') { uni.navigateTo({ url: "".concat(e.currentTarget.dataset.path, "?listtype=").concat(this.toped) }); } } }, choiceSex: function choiceSex(e) { var that = this; var data = e.currentTarget.dataset; that.filterData[data.type].forEach(function (item) { item.active = 0; }); var index = that.filterData[data.type].findIndex(function (item) { return item.id == data.id; }); that.filterData[data.type][index].active = data.id; // let str = that.data.sexid console.log(e); var str = e.currentTarget.dataset.id; console.log(str); if (str == '1') { that.secondMenu = '男生'; } else if (str == '2') { that.secondMenu = '女生'; } else if (str == '-1') { that.secondMenu = '不限'; } that.setData({ sexid: str, secondMenu: this.secondMenu }); that.storeJobListSearchForm.pageNum = 1; that.storeJobListSearchForm.sex = str; that.setData({ storeJobListSearchForm: that.storeJobListSearchForm, recordList: [], filterData: that.filterData, innerFilter: true }); that.getJobList().then(function () { that.setData({ siv: 'menu', whichOneShow: '' }); }); }, onScrollRefresh: function onScrollRefresh() { var that = this; that.storeJobListSearchForm.pageNum = 1; that.setData({ recordList: [] }); that.getJobList(); // setTimeout(function(){ // that.setData({ // recordList: [],: false, // }) // },2000); }, cc: function cc() {} }, (0, _defineProperty2.default)(_methods, "close", function close() { this.setData({ dialog1: false, dialog2: false, phoneDialog: false }); }), (0, _defineProperty2.default)(_methods, "searchKey", function searchKey(e) { if (!this.isLogin) { uni.navigateTo({ url: '../login/index' }); return; } console.log(e); this.recordList = []; this.storeJobListSearchForm.pageNum = 1; this.storeJobListSearchForm.keys = this.inputVal; this.getJobList(); }), (0, _defineProperty2.default)(_methods, "goSearch", function goSearch() { if (!this.isLogin) { uni.navigateTo({ url: '../login/index' }); return; } uni.navigateTo({ url: "../jobListSearch/index?from=project&listtype=".concat(this.toped, "&key=").concat(this.placeholderText) }); }), (0, _defineProperty2.default)(_methods, "clearInput", function clearInput() { this.setData({ inputVal: '搜索职位', chaShowed: false, inputShowed: false, hasMoreData: true }); this.inputBlur(); this.recordList = []; this.storeJobListSearchForm.pageNum = 1; this.storeJobListSearchForm.keys = ''; this.getJobList(); }), (0, _defineProperty2.default)(_methods, "inputTyping", function inputTyping(e) { this.setData({ inputVal: e.detail.value }); console.log(this.inputVal == ''); if (this.inputVal == '') { this.recordList = []; this.storeJobListSearchForm.pageNum = 1; this.storeJobListSearchForm.keys = ''; this.getJobList(); } }), (0, _defineProperty2.default)(_methods, "clear", function clear() { uni.clearStorage(); console.log('清除成功'); }), (0, _defineProperty2.default)(_methods, "inputBlur", function inputBlur() {}), (0, _defineProperty2.default)(_methods, "getListByTypeAndIndustry", function getListByTypeAndIndustry() { var that = this; uni.request({ url: app.globalData.ip + '/yishoudan/labels/type/app/90', header: app.globalData.header, method: 'GET', success: function success(res) { console.log(res.data.data.labels); uni.setStorageSync('FILTER_LIST', res.data.data.labels); res.data.data.labels.forEach(function (item) { if (item.typeClassify == '0') { that.tagArray0.push(item); } else if (item.typeClassify == '1') { that.tagArray1.push(item); } else if (item.typeClassify == '2') { that.tagArray2.push(item); } else if (item.typeClassify == '3') { that.tagArray3.push(item); } else if (item.typeClassify == '4') { that.tagArray4.push(item); } }); that.setData({ tagArray0: that.tagArray0, tagArray1: that.tagArray1, tagArray2: that.tagArray2, tagArray3: that.tagArray3, tagArray4: that.tagArray4 }); var jobSpecialLabelIdArray = that.storeJobListSearchForm.jobSpecialLabelIds.split(','); res.data.data.labels.forEach(function (item) { item['checked'] = false; jobSpecialLabelIdArray.forEach(function (item1) { if (item.id == item1) { item['checked'] = true; } }); }); that.setData({ jobSpecialLabelList: res.data.data.labels }); } }); }), (0, _defineProperty2.default)(_methods, "golistSharePage", function golistSharePage() { if (this.isLogin) { if (app.globalData.loginUserInfo.agencyStatus == 1) { uni.navigateTo({ url: "/pages/listSharePage/index?listtype=".concat(this.toped) }); } else { uni.navigateTo({ url: "/pages/tobeAgency/index" }); } } else { uni.navigateTo({ url: "/pages/login/index" }); } }), (0, _defineProperty2.default)(_methods, "clear", function clear() { // wx.clearStorage() }), (0, _defineProperty2.default)(_methods, "getBrandNameAllList", function getBrandNameAllList() { var that = this; uni.request({ url: app.globalData.ip + '/yishoudan/labels/type/app/95', // 分类列表获取接口 header: app.globalData.header, method: 'GET', success: function success(res) { console.log(res); if (res.data.status == 200) { if (that.storeJobListSearchForm.brandIds) { var brandIdArray = that.storeJobListSearchForm.brandIds.split(','); } console.log(res.data.data.labels); uni.setStorageSync('CLASSIFY_LIST', res.data.data.labels); res.data.data.labels.forEach(function (item) { item['checked'] = false; delete item.typeClassify; if (brandIdArray) { brandIdArray.forEach(function (item1) { if (item.id == item1) { item['checked'] = true; } }); } }); that.setData({ brandList: res.data.data.labels }); } } }); }), (0, _defineProperty2.default)(_methods, "selectBrand", function selectBrand(e) { var that = this; var data = e.currentTarget.dataset; var index = that.filterData[data.type].findIndex(function (item) { return item.id == data.id; }); that.filterData[data.type][index].active = data.id; if (that.brandList[data.index].checked) { that.brandList[data.index].checked = false; // let index1 = that.data.selectBrandList.indexOf(that.data.brandList[index]) // that.data.selectBrandList.splice(index1,1) } else { that.brandList[data.index].checked = true; } console.log(that.selectBrandList); this.setData({ brandList: that.brandList, filterData: that.filterData }); }), (0, _defineProperty2.default)(_methods, "reset", function reset(e) { var that = this; console.log(e); if (e.target.dataset.type == 1) { //特色 that.jobSpecialLabelList.forEach(function (item) { // console.log(item); if (item.checked) { item.checked = false; } }); that.setData({ jobSpecialLabelList: that.jobSpecialLabelList, tagArray0: that.tagArray0, tagArray1: that.tagArray1, tagArray2: that.tagArray2, tagArray3: that.tagArray3, selectJobList: [], whichOneShow: '' }); that.storeJobListSearchForm.jobSpecialLabelIds = ''; } else if (e.target.dataset.type == 2) { //品牌 that.brandList.forEach(function (item) { if (item.checked) { item.checked = false; } }); that.setData({ brandList: that.brandList, selectBrandList: [], whichOneShow: '' }); that.storeJobListSearchForm.jobCategoryLabelIds = ''; // that.data.storeJobListSearchForm.brandIds = ""; } else if (e.target.dataset.type == 4) { that.setData({ activez: '' }); } that.storeJobListSearchForm.pageNum = 1; that.setData({ recordList: [], innerFilter: false }); that.getJobList(); }), (0, _defineProperty2.default)(_methods, "loginOut", function loginOut() { var that = this; var jobSpecialLabelIdArray = []; // var brandIdArray = []; that.selectBrandList = []; that.filterData.classifyList.forEach(function (item) { if (item.active) { if (that.selectBrandList.indexOf(item) == -1) { that.selectBrandList.push(item); } // brandIdArray.push(item.id); } }); that.selectJobList = []; var subArr = that.filterData.jobFilter; var jobList = subArr.tagArray0.concat(subArr.tagArray1, subArr.tagArray2, subArr.tagArray3, subArr.tagArray4); jobList.forEach(function (item) { if (item.active) { if (that.selectJobList.indexOf(item) == -1) { that.selectJobList.push(item); } } }); // if (brandIdArray.length > 0) { // // that.data.storeJobListSearchForm.brandIds = brandIdArray.join(","); // that.data.storeJobListSearchForm.jobCategoryLabelIds = brandIdArray.join(","); // } else { // // that.data.storeJobListSearchForm.brandIds = ""; // that.data.storeJobListSearchForm.jobCategoryLabelIds = ""; // } // that.data.storeJobListSearchForm.pageNum = 1; that.setData({ // recordList: [], // siv: "", // whichOneShow: "", selectBrandList: that.selectBrandList, selectJobList: that.selectJobList // innerFilter:true }); // that.getJobList(); }), (0, _defineProperty2.default)(_methods, "goChannel", function goChannel(e) { console.log(e); }), (0, _defineProperty2.default)(_methods, "setActive", function setActive(e, _dataset) { /* ---处理dataset begin--- */ this.handleDataset(e, _dataset); /* ---处理dataset end--- */ console.log(e); var data = e.currentTarget.dataset; if (data.type == 'yanba' || data.type == 'sex' || data.type == 'price') { console.log(data.id); var index = this.filterData[data.type].findIndex(function (item) { return item.id == data.id; }); if (this.filterData[data.type][index].active == data.id) { this.filterData[data.type][index].active = 0; } else { this.filterData[data.type].forEach(function (item) { item.active = 0; }); this.filterData[data.type][index].active = data.id; } this.setData({ filterData: this.filterData }); } else if (data.type != 'jobFilter') { this.filterData[data.type].forEach(function (item) { if (item.id == data.id) { if (item.active == data.id) { item.active = 0; } else { item.active = data.id; } } }); console.log(this.filterData[data.type]); } else { this.filterData[data.type][data.arr].forEach(function (item) { if (item.id == data.id) { if (item.active == data.id) { item.active = 0; } else { item.active = data.id; } } }); } this.setData({ filterData: this.filterData }); }), (0, _defineProperty2.default)(_methods, "getBannerList", function getBannerList() { var that = this; uni.request({ url: app.globalData.ip + '/daotian/banner/list', success: function success(res) { console.log(res); if (res.data.status == 200) { that.setData({ bannerList: res.data.data.banners }); } } }); }), (0, _defineProperty2.default)(_methods, "getTemplateList", function getTemplateList() { // let that = this; // wx.request({ // url: app.globalData.ip + "/daotian/image/list", // success (res) { // console.log(res); // if (res.data.status == 200) { // app.globalData.templateList = res.data.data.pageBean.images; // that.setData({ // templateList: res.data.data.pageBean.images, // }); // } // }, // }); }), (0, _defineProperty2.default)(_methods, "getchannelList", function getchannelList() { var that = this; uni.request({ url: app.globalData.ip + '/daotian/channel/list', success: function success(res) { console.log(res); if (res.data.status == 200) { that.setData({ // navList: res.data.data.channels navList: [{ path: "/subPage/vocationalList/index", img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/2024-03-14/77694bb5-34e7-4381-8f2c-f4cc1987cf3a_职教职培.png", remark: "职教职培", id: 45, title: "职教职培" }, { path: "/pages/tobeAgency/index", img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/2023-08-31/69997d62-bfd5-4597-8553-b873fb154c40_成为代理.png", remark: "赚取积分", id: 18, title: "赚取积分" }, { path: "/pages/xiangmuhezuo/index", img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/2023-08-31/0a3700d8-61ef-41e7-86f1-3cd1298f54f1_项目合作.png", remark: "推荐有奖", id: 19, title: "推荐有奖" }, { path: "/pages/xiangmuhezuo/index", img: "https://matripe-cms.oss-cn-beijing.aliyuncs.com/2023-08-31/ad39756d-f3b5-4cad-8833-537ce84efbbf_联系我们.png", remark: "联系我们", id: 20, title: "联系我们" }] }); } } }); }), (0, _defineProperty2.default)(_methods, "clearFilter1", function clearFilter1(e) { var middleList = JSON.parse(JSON.stringify(this.copyList)); var type = e.currentTarget.dataset.type; var filterData = this.filterData; console.log(type); if (type == 2) { filterData = _objectSpread(_objectSpread({}, filterData), {}, { classifyList: middleList.classifyList }); this.setData({ selectBrandList: [] }); } else if (type == 1) { filterData = _objectSpread(_objectSpread({}, filterData), {}, { jobFilter: middleList.jobFilter }); this.setData({ selectJobList: [] }); } else if (type == 'outerClear') { console.log('storeJobListSearchForm', this.storeJobListSearchForm.ageRangeStr); filterData = middleList; this.setData({ selectJobList: [], selectBrandList: [], firstMenu: '排序', secondMenu: '不限', sexid: -1, rangeValues: [16, 60], maxAge: 60, minAge: 16, activez: 'zuigao', innerFilter: false }); console.log('storeJobListSearchForm', this.storeJobListSearchForm.ageRangeStr); } else if (type == 'innerclear') { filterData = middleList; this.setData({ selectJobList: [], selectBrandList: [], firstMenu: '排序', secondMenu: '不限', sexid: -1, rangeValues: [16, 60], maxAge: 60, minAge: 16, activez: 'zuigao', innerFilter: false }); } console.log(filterData); this.setData({ filterData: filterData, leftShow: false, recordList: [], whichOneShow: '', scrollTo: 'sticky' }); if (this.choiceCollect == 0) { this.storeJobListSearchForm.ujc = 0; } else { this.storeJobListSearchForm.ujc = 1; } this.toList(); // this.getJobList(); }), (0, _defineProperty2.default)(_methods, "toList", function toList() { var _this4 = this; var that = this; var innerFilter = false; console.log(this.filterData); var formSearch = { pageNum: 1, pageSize: 20 }; var filter = this.filterData; for (var k in filter) { if (k != 'jobFilter') { (function () { var jobCategoryArr = []; filter[k].forEach(function (item) { if (item.active != 0) { if (k == 'price') { if (item.name == '8000以上') { formSearch.monthlyPayStr = '8001-20000'; } else { formSearch.monthlyPayStr = item.name; } } else if (k == 'sex') { formSearch.sex = item.id; if (item.id == -1) { _this4.secondMenu = '不限'; } else if (item.id == 1) { _this4.secondMenu = '男生'; innerFilter = true; } else if (item.id == 2) { _this4.secondMenu = '女生'; innerFilter = true; } _this4.setData({ sexid: item.id, secondMenu: _this4.secondMenu }); } else if (k == 'classifyList') { jobCategoryArr.push(item.id); if (jobCategoryArr.length > 0) { innerFilter = true; } } } }); formSearch.jobCategoryLabelIds = jobCategoryArr.join(); })(); } else { (function () { var totalArr = [].concat((0, _toConsumableArray2.default)(filter['jobFilter'].tagArray0), (0, _toConsumableArray2.default)(filter['jobFilter'].tagArray1), (0, _toConsumableArray2.default)(filter['jobFilter'].tagArray2), (0, _toConsumableArray2.default)(filter['jobFilter'].tagArray3), (0, _toConsumableArray2.default)(filter['jobFilter'].tagArray4)); var jobSpecialArr = []; console.log(totalArr); totalArr.forEach(function (item) { if (item.active != 0) { jobSpecialArr.push(item.id); } }); console.log(jobSpecialArr); if (jobSpecialArr.length > 0) { innerFilter = true; } console.log(jobSpecialArr.join(',')); formSearch.jobSpecialLabelIds = jobSpecialArr.join(','); })(); } } console.log(formSearch); that.storeJobListSearchForm = _objectSpread(_objectSpread(_objectSpread({}, that.storeJobListSearchForm), formSearch), {}, { ageRangeStr: that.minAge + '-' + that.maxAge }); if (this.choiceCollect == 0) { that.storeJobListSearchForm.ujc = 0; } else { that.storeJobListSearchForm.ujc = 1; } console.log(that.storeJobListSearchForm); that.setData({ recordList: [], leftShow: false, innerFilter: innerFilter, whichOneShow: '', storeJobListSearchForm: that.storeJobListSearchForm }); that.loginOut(); that.getJobList(); }), (0, _defineProperty2.default)(_methods, "onTabClick", function onTabClick(e) { var index = e.detail.index; this.setData({ activeTab: index }); }), (0, _defineProperty2.default)(_methods, "onChange", function onChange(e) { var index = e.detail.index; this.setData({ activeTab: index }); }), (0, _defineProperty2.default)(_methods, "findLocation", function findLocation() { var that = this; uni.getLocation({ type: 'gcj02', success: function success(res1) { console.log('获取位置2'); console.log(res1); app.globalData.lng = res1.longitude; app.globalData.lat = res1.latitude; }, fail: function fail() {} }); }), (0, _defineProperty2.default)(_methods, "emptyMethod", function emptyMethod(e) { console.log(e); }), (0, _defineProperty2.default)(_methods, "chooseIdCard", function chooseIdCard() { var that = this; if (that.agencyStatus != 1) { this.setData({ iosDialog: true }); return; } uni.chooseImage({ count: 1, sizeType: ['original', 'compressed'], sourceType: ['album', 'camera'], success: function success(res) { console.log(res); uni.navigateTo({ url: "../newEnroll/enroll/index?applyType=1&imgUrl=".concat(res.tempFilePaths[0]) }); // that.uploadIdcardImg(res); } }); }), (0, _defineProperty2.default)(_methods, "navigatorToRecord", function navigatorToRecord() { if (this.agencyStatus != 1) { this.setData({ iosDialog: true }); return; } uni.navigateTo({ url: "../newEnroll/enroll/index?applyType=1" }); }), (0, _defineProperty2.default)(_methods, "PageScroll", function PageScroll(e) { var that = this; var query = uni.createSelectorQuery().in(this); query.select('.sticky').boundingClientRect(function (res) { // console.log(res); if (res.top <= 5) { that.setData({ isScrollTop: true }); } else if (res.top > 0 && res.top < 90) { that.setData({ isScrollTop: false }); } else if (res.top >= 90) { that.setData({ isScrollTop: false }); } }).exec(); }), (0, _defineProperty2.default)(_methods, "collectedStoreJobList", function collectedStoreJobList() { var that = this; uni.request({ url: app.globalData.ip + '/store/job/collected/list?ujc=1', method: 'GET', data: {}, header: app.globalData.headers, success: function success(res) { console.log(res); var collectList = res.data.data.pageBean.recordList; var jobs = that.recordList; if (collectList != null && collectList != '' && collectList != undefined && collectList.length != 0 && jobs != null && jobs != '' && jobs != undefined && jobs.length != 0) { for (var j = 0; j != jobs.length; ++j) { jobs[j].collected = 2; } for (var i = 0; i != collectList.length; ++i) { for (var j = 0; j != jobs.length; ++j) { if (collectList[i].storeJobId - jobs[j].id == 0) { jobs[j].collected = 1; break; } } } that.setData({ recordList: jobs }); } }, fail: function fail(res) {} }); }), (0, _defineProperty2.default)(_methods, "getHopeJobLabels", function getHopeJobLabels() { var that = this; uni.request({ url: app.globalData.ip + '/labels/findAllHopeJobLabels', // ?category=4 method: 'GET', data: {}, success: function success(res0) { console.log('感兴趣职位 ↓↓↓'); console.log(res0); if (res0.data.data != null) { res0.data.data.forEach(function (item, index) { item['title'] = item.name; item['checked'] = false; if (index == 0 || index == 1) { item['checked'] = true; } }); } that.setData({ labelItems: res0.data.data == null ? [] : res0.data.data }); that.initData(); console.log('感兴趣职位 赋值title↓↓↓'); console.log(res0); }, fail: function fail(res) { console.log(res); uni.showToast({ title: '获取失败', icon: 'none', duration: 2000 }); } }); }), (0, _defineProperty2.default)(_methods, "makePhoneCall", function makePhoneCall() { var that = this; uni.makePhoneCall({ phoneNumber: '13937184434' }); }), (0, _defineProperty2.default)(_methods, "goScreen", function goScreen() { uni.navigateTo({ url: '../screen/index' }); }), (0, _defineProperty2.default)(_methods, "goCity", function goCity() { var that = this; uni.navigateTo({ url: '../city/index' }); }), (0, _defineProperty2.default)(_methods, "initData", function initData() { var that = this; try { // 获取手机基础信息(头状态栏和标题栏高度) var systemInfo = uni.getSystemInfoSync(); var getMenuButtonBoundingClientRect = uni.getMenuButtonBoundingClientRect(); console.log(uni.getMenuButtonBoundingClientRect()); this.setData({ systemInfo: systemInfo, getMenuButtonBoundingClientRect: getMenuButtonBoundingClientRect }); } catch (e) { console.log('CatchClause', e); console.log('CatchClause', e); console.log(e); uni.alert({ title: '温馨提示', content: 'onLoad 执行异常' }); } var res0 = uni.getStorageSync('checkedlabelItems'); console.log(app.globalData.isNotEmptyCheck(res0.data)); that.tabs2 = [{ name: '打勾推荐', category: -1, id: 406, checked: true, title: '打勾推荐' }]; if (app.globalData.isNotEmptyCheck(res0.data)) { for (var i = 0; i < res0.data.length; i++) { res0.data[i]['title'] = res0.data[i].name; // that.data.tabs2.push(res0.data[i]); } console.log('获取缓存'); // res0.data.unshift(); // console.log(res.data.unshift({name: "打勾推荐", category: 3, id: 406, checked: true, title: "打勾推荐"})); } else { console.log('无感兴趣职位 push两个职位 ↓↓↓'); console.log(that.labelItems); that.labelItems.forEach(function (item) { if (item.name == '理货员' || item.name == '餐饮服务员') { // that.data.tabs2.push(item); } }); // that.data.tabs2.push(that.data.labelItems[0], that.data.labelItems[1]) } that.setData({ tabs2: that.tabs2 }); var res = uni.getStorageSync('sex'); //性别 if (app.globalData.isNotEmptyCheck(res.data)) { that.storeJobListSearchForm.sex = res.data; that.storeJobListSearchForm.pageNum = 1; } else { // res.data = []; } var res2 = uni.getStorageSync('checkedJobItems'); //筛选职位 var workTypeStrCurr = ''; if (app.globalData.isNotEmptyCheck(res2.data)) { res2.data.forEach(function (item, index) { workTypeStrCurr += item.value + ','; }); if (workTypeStrCurr.length > 0) { workTypeStrCurr = workTypeStrCurr.substr(0, workTypeStrCurr.length - 1); } that.storeJobListSearchForm.workTypeStr = workTypeStrCurr; that.storeJobListSearchForm.pageNum = 1; } else { that.storeJobListSearchForm.workTypeStr = ''; that.storeJobListSearchForm.pageNum = 1; } console.log(res.data + '===' + res2.data); if (res.data == -1 && (res2.data == null || res2.data == '')) { that.setData({ chooseActive: false }); } else { that.setData({ chooseActive: true }); } // this.getJobList(); }), (0, _defineProperty2.default)(_methods, "getJobList", function getJobList() { var that = this; // debugger that.setData({ pageShow: false }); return new Promise(function (resolve, reject) { if (that.storeJobListSearchForm.sortTag == 2) { //如果按照距离排序,拼接上坐标 that.storeJobListSearchForm.lng = app.globalData.lng; that.storeJobListSearchForm.lat = app.globalData.lat; } console.log(that.inputVal); that.storeJobListSearchForm.cityName = that.searchCityParamStorage.name; console.log(that.storeJobListSearchForm.cityName); if (app.globalData.isEmptyCheck(that.searchCityParamStorage.name) || that.storeJobListSearchForm.cityName == '全国') { that.storeJobListSearchForm.cityName = ''; } that.storeJobListSearchForm.keys = that.inputVal == '搜索职位' ? '' : that.inputVal; that.storeJobListSearchForm.recruitment = 1; // debugger; uni.showLoading({ title: '加载中...' }); console.log(that.storeJobListSearchForm); uni.request({ url: app.globalData.ip + '/yishoudan/custom/job/listApp', method: 'POST', header: app.globalData.headers, data: that.storeJobListSearchForm, success: function success(res) { console.log('职位列表↓↓↓↓'); console.log(res); that.setData({ totalPage: res.data.data.pageBean.pageCount, currPage: res.data.data.pageBean.currentPage }); setTimeout(function () { that.setData({ triggered: false }); }, 1000); if (res.data.data.pageBean.recordList == null || res.data.data.pageBean.recordList.length == 0 || res.data.data.pageBean.recordList.length < that.storeJobListSearchForm.pageSize) { var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList); that.recordList = that.recordList.concat(jobListTemp); that.setData({ recordList: that.recordList, hasMoreData: false, isTrigger: false }); } else { var jobListTemp = commonUtil.disposeJobListData(res.data.data.pageBean.recordList); that.recordList = that.recordList.concat(jobListTemp); that.setData({ recordList: that.recordList, hasMoreData: true, isTrigger: false }); } uni.hideLoading({ success: function success(res) {} }); that.setData({ loading: false, pageShow: true, storeJobListSearchForm: that.storeJobListSearchForm }); resolve(); that.getTag(); that.recordList.forEach(function (item, index) { // console.log(item.storeDistrict); item['citys'] = commonUtil.setJobInfoPosition(item.storeDistrict); // console.log(item); if (app.globalData.isNotEmptyCheck(item.returnFeeType) || item.returnFeeType == '0' || item.returnFee == '0') { item['fuWuFei'] = commonUtil.getReturnFeeTypeName1ById(item.returnFeeType, item.returnFee); } else { item['fuWuFei'] = ''; } // 简版弹窗通告显示 if (item.id == that.currentJobDrawer.id) { item['jobDesp'] = item.jobDesp.replace(/\*\*\*\*\*/g, '').split('————————')[0]; // 展示用字段 item['jobDesp1'] = item.jobDesp.replace('⚠', ""); item['jobDesp1'] = item.jobDesp1.replace('[红包]', ""); that.currentJobDrawer = _objectSpread(_objectSpread({}, item), {}, { index: that.currentJobDrawer.index ? that.currentJobDrawer.index : null }); } }); that.setData({ recordList: that.recordList, currentJobDrawer: that.currentJobDrawer }); console.log(that.recordList); // if (that.data.recordList.length < res.data.data.pageBean.recordCount) { // that.setData({ // hasMoreData: true, // }); // } else { // that.setData({ // hasMoreData: false, // }); // } } }); }); }), (0, _defineProperty2.default)(_methods, "onScrollRefresh", function onScrollRefresh() { this.recordList = []; this.storeJobListSearchForm.pageNum = 1; this.getJobList(); }), (0, _defineProperty2.default)(_methods, "getTag", function getTag() { var that = this; var query = uni.createSelectorQuery().in(that); query.selectAll('.tttg').boundingClientRect().exec(function (res) { res.forEach(function (item) { item.forEach(function (element, index) { if (element.width > 200) { // that.data.recordList[index].isTagShow = true; var age = 'recordList[' + index + '].isTagShow'; that.setData((0, _defineProperty2.default)({}, age, true)); } }); }); // if(){ // } // console.log(res); }); }), (0, _defineProperty2.default)(_methods, "onScrollToLower", function onScrollToLower() { console.log('===================================================='); var that = this; // if (app.globalData.isLogin) { that.storeJobListSearchForm.pageNum = that.storeJobListSearchForm.pageNum + 1; if (that.hasMoreData) { that.getJobList(); } this.setData({ loadMore: 'load' }); // } else { // } that.pullNum = that.pullNum + 1; }), (0, _defineProperty2.default)(_methods, "handleTabClick", function handleTabClick(e) { var that = this; var index = e.detail.index; console.log(e.detail.index); var categoryCurr = that.tabs2[index].category; // that.data.tabs2.forEach((item,index2) => { // if (index == index2) { // categoryCurr = item.category // } // if( index == 0){ // categoryCurr = -1 // } // }) this.setData({ // [tabsName]: index, contentIndex: index }); console.log(categoryCurr); that.storeJobListSearchForm.jobClassify = categoryCurr; that.storeJobListSearchForm.pageNum = 1; that.setData({ recordList: [] }); that.getJobList(); }), (0, _defineProperty2.default)(_methods, "goDetail", function goDetail(e) { console.log(e); var that = this; if (this.isLogin) { uni.navigateTo({ url: '../detail/index?storeJobId=' + e.currentTarget.dataset.id + '&wxCode=' + that.wxCode }); } else { uni.navigateTo({ url: '../login/index' }); } }), (0, _defineProperty2.default)(_methods, "goDrawer", function goDrawer(event) { var that = this; console.log(event.currentTarget.dataset.item); event.currentTarget.dataset.item['jobDesp'] = event.currentTarget.dataset.item.jobDesp.replace(/\*\*\*\*\*/g, '').split('————————')[0]; // 展示用字段 event.currentTarget.dataset.item['jobDesp1'] = event.currentTarget.dataset.item.jobDesp.replace('⚠', ""); event.currentTarget.dataset.item['jobDesp1'] = event.currentTarget.dataset.item.jobDesp1.replace('[红包]', ""); // wx.hideTabBar({ // success(e) { this.getTabBar().setData({ isShow: false }); that.setData({ currentJobDrawer: _objectSpread(_objectSpread({}, event.currentTarget.dataset.item), {}, { index: event.currentTarget.dataset.index }), drawerShow: true }); // }, // }); console.log(this.currentJobDrawer); }), (0, _defineProperty2.default)(_methods, "copyClose", function copyClose() { var that = this; var contentInfo; var query = uni.createSelectorQuery().in(this); query.select('.contactInfo').boundingClientRect(function (res) { contentInfo = res.dataset.info; var text = that.currentJobDrawer.jobDesp + contentInfo; uni.setClipboardData({ data: text, success: function success(res) { uni.getClipboardData({ success: function success(res) { console.log(res.data); // data uni.showToast({ title: '内容已复制', icon: 'none', duration: 1500 }); } }); } }); }).exec(); }), (0, _defineProperty2.default)(_methods, "hideDrawer", function hideDrawer() { var that = this; this.getTabBar().setData({ isShow: true }); that.setData({ drawerShow: false }); // this.getJobList(); // setTimeout(() => { // wx.showTabBar({ // success(e) {}, // }); // }, 300); }), (0, _defineProperty2.default)(_methods, "goEnroll", function goEnroll(e) { console.log(e); // wx.navigateTo({ // url: "../newEnroll/index?applyType=0" // }); var that = this; uni.removeStorageSync('townsManInfo'); uni.removeStorageSync('townsManInfoJob'); uni.removeStorageSync('storeInfoJob'); // if(app.isNotEmptyCheck(wx.getStorage('townsManInfo'))){ // wx.removeStorageSync('townsManInfo') // } // if(app.isNotEmptyCheck(wx.getStorage('townsManInfoJob'))){ // wx.removeStorageSync('townsManInfoJob') // } // if(app.isNotEmptyCheck(wx.getStorage('storeInfoJob'))){ // wx.removeStorageSync('storeInfoJob') // } // wx.removeStorageSync('townsManInfoJob') console.log(app.globalData.loginUserInfo.tel); uni.setStorageSync('jobDetailStorage', that.recordList[e.currentTarget.dataset.idx]); var argument; argument = JSON.stringify(e.currentTarget.dataset.info).replace(/\=|\&/g, '3D'); uni.navigateTo({ url: "../newEnroll/enroll/index?applyType=1&info=".concat(argument) }); }), (0, _defineProperty2.default)(_methods, "wxLogin", function wxLogin() { var that = this; uni.login({ success: function success(res) { if (res.code) { that.setData({ wxCode: res.code }); } else { console.log('获取code失败!' + res.errMsg); } } }); }), (0, _defineProperty2.default)(_methods, "changeRecordBillType", function changeRecordBillType(e) { var that = this; console.log(e); that.setData({ recordBillType: e.currentTarget.dataset.type }); }), (0, _defineProperty2.default)(_methods, "toSmart", function toSmart() { uni.navigateTo({ url: '/pages/IDCardWithNFC/index' }); }), (0, _defineProperty2.default)(_methods, "getPhoneNumber", function getPhoneNumber(e) { var that = this; console.log(e); console.log(e.detail.errMsg); /*wx.setStorageSync({ key: "jobDetailStorage", data: that.data.recordList[e.currentTarget.dataset.idx] });*/ uni.setStorageSync('jobDetailStorage', that.recordList[e.currentTarget.dataset.idx]); // console.log(e); // console.log(e.detail.errMsg) // console.log(e.detail.iv) // console.log(e.detail.encryptedData) if ('getPhoneNumber:ok' == e.detail.errMsg) { //同意 var iv = e.detail.iv; var encryptedData = e.detail.encryptedData; console.log(iv, '=-=========', encryptedData); uni.checkSession({ success: function success() { //session_key 未过期,并且在本生命周期一直有效 uni.request({ url: app.globalData.ip + '/getWechatTel', data: { code: that.wxCode, iv: iv, encryptedData: encryptedData, type: 'yishoudan', appId: app.globalData.appId }, success: function success(res) { console.log(res); app.globalData.openId = res.data.data.openId; var promise = app.globalData.setLoginUserTokenInfo(res.data.data.phoneNumber, null); var collected = e.currentTarget.dataset.collected; console.log(uni.getStorage('loginUserTokenInfo')); console.log(collected); promise.then(function (res) { that.setData({ isLogin: app.globalData.isLogin }); // debugger setTimeout(function () { that.doCollected(collected, e.currentTarget.dataset.jobid); }, 1000); // that.collectedStoreJobList(); }); }, fail: function fail(res) { console.log('获取用户手机号错误'); } }); }, fail: function fail() { // session_key 已经失效,需要重新执行登录流程 uni.login({ success: function success(res) { if (res.code) { console.log(res.code); //发起网络请求 uni.request({ url: app.globalData.ip + '/getWechatTel', data: { code: res.code, iv: iv, encryptedData: encryptedData, type: 'yishoudan', appId: app.globalData.appId }, success: function success(res) { console.log(res); var promise = app.globalData.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null); var collected = e.currentTarget.dataset.collected; if (collected) { promise.then(function (res) { that.setData({ isLogin: app.globalData.isLogin }); that.doCollected(collected, e.currentTarget.dataset.jobid); }); } else { promise.then(function (res) { uni.navigateTo({ url: '../enroll/index?applyType=1' //url: "../enroll/index?applyType=1&tel=" + res.data.data.pageBean.phoneNumber }); }); } }, fail: function fail(res) { console.log('获取用户手机号错误'); } }); } else { console.log('获取手机号失败!' + res.errMsg); } } }); } }); } else { //拒绝 var collected = e.currentTarget.dataset.collected; if (collected) { try { uni.setStorageSync('comeFromPage', 'index'); } catch (e) { console.log('CatchClause', e); console.log('CatchClause', e); console.log('index-页面跳转,设置参数错误:', e); } uni.navigateTo({ url: '/pages/login/index' }); } else { uni.navigateTo({ url: '../enroll/index?applyType=1' }); } } return false; }), (0, _defineProperty2.default)(_methods, "getPhoneNumber1", function getPhoneNumber1(e) { var that = this; console.log(e); console.log(e.detail.errMsg); that.close(); // console.log(e); // console.log(e.detail.errMsg) // console.log(e.detail.iv) // console.log(e.detail.encryptedData) if ('getPhoneNumber:ok' == e.detail.errMsg) { //同意 var iv = e.detail.iv; var encryptedData = e.detail.encryptedData; uni.checkSession({ success: function success() { //session_key 未过期,并且在本生命周期一直有效 uni.request({ url: app.globalData.ip + '/getWechatTel', data: { code: that.wxCode, iv: iv, encryptedData: encryptedData, type: 'yishoudan', appId: app.globalData.appId }, success: function success(res) { console.log(res); var promise = app.globalData.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null); promise.then(function (res) { that.setData({ isLogin: app.globalData.isLogin }); that.onScrollToLower(); }); }, fail: function fail(res) { console.log('获取用户手机号错误'); } }); }, fail: function fail() { // session_key 已经失效,需要重新执行登录流程 uni.login({ success: function success(res) { if (res.code) { console.log(res.code); //发起网络请求 uni.request({ url: app.globalData.ip + '/getWechatTel', data: { code: res.code, iv: iv, encryptedData: encryptedData, type: 'yishoudan', appId: app.globalData.appId }, success: function success(res) { console.log(res); var promise = app.globalData.setLoginUserTokenInfo(res.data.data.pageBean.phoneNumber, null); promise.then(function (res) { that.setData({ isLogin: app.globalData.isLogin }); }); }, fail: function fail(res) { console.log('获取用户手机号错误'); } }); } else { console.log('获取手机号失败!' + res.errMsg); } } }); } }); } else { //拒绝 if (e.currentTarget.dataset.type != 'close') { try { uni.setStorageSync('comeFromPage', 'index'); } catch (e) { console.log('CatchClause', e); console.log('CatchClause', e); console.log('index-页面跳转,设置参数错误:', e); } uni.navigateTo({ url: '/pages/login/index' }); } else { that.close(); } } return false; }), (0, _defineProperty2.default)(_methods, "getAgencyUserId", function getAgencyUserId(id) { var that = this; uni.request({ url: app.globalData.ip + '/channel/contact/getAgencyUserId', method: 'GET', header: app.globalData.header, data: { channelContactId: id }, success: function success(res) { console.log('获取来源对应的代理人,来源ID:', id); console.log(res); try { if (app.globalData.isNotEmptyCheck(res.data.data.pageBean)) { uni.setStorageSync('storageSyncAgencyUserId', res.data.data.pageBean); } //先设置代理人缓存人再登录 app.globalData.getLoginUserTokenInfo(); } catch (e) { console.log('CatchClause', e); console.log('CatchClause', e); console.log('0-扫描微信二维码,设置参数错误:', e); //先设置代理人缓存人再登录 app.globalData.getLoginUserTokenInfo(); } }, fail: function fail(res0) { console.log('获取来源对应的代理人错误', id); } }); }), (0, _defineProperty2.default)(_methods, "collectPaste", function collectPaste(e) { var txt; var that = this; if (!this.isLogin) { uni.navigateTo({ url: '/pages/login/index' }); return; } var collected = e.currentTarget.dataset.collected; var storeJobId = e.currentTarget.dataset.jobid; that.doCollected(collected, storeJobId); // console.log(collected); // if(!this.data.isCollect){ // that.setData({ // isCollect: true, // collectTxt:'已收藏' // }) // txt = '收藏成功' // }else{ // that.setData({ // isCollect: false, // collectTxt:'收藏' // }) // } }), (0, _defineProperty2.default)(_methods, "doCollected", function doCollected(collected, storeJobId) { var that = this; var url = '/yishoudan/custom/job/collect/' + storeJobId; // if (collected - 1 == 0) { // url = "/user/collect/job/remove"; // } // console.log(app.globalData.headers); //发起网络请求 uni.request({ url: app.globalData.ip + url, // data: { // jobId: storeJobId, // classify:0 // }, header: app.globalData.headers, method: 'GET', success: function success(res) { var txt; if (collected - 1 == 0) { //取消收藏 for (var i = 0; i != that.recordList.length; ++i) { if (that.recordList[i].id - storeJobId == 0) { that.recordList[i].collected = 0; break; } } txt = '取消收藏'; } else { //收藏 for (var i = 0; i != that.recordList.length; ++i) { if (that.recordList[i].id - storeJobId == 0) { that.recordList[i].collected = 1; break; } } txt = '收藏成功'; } that.setData({ recordList: that.recordList, currentJobDrawer: that.currentJobDrawer, isLogin: app.globalData.isLogin }); uni.showToast({ icon: 'none', title: txt }); }, fail: function fail(res) { console.log('操作失败'); } }); }), (0, _defineProperty2.default)(_methods, "getUserInfoBtn", function getUserInfoBtn(e) { console.log(e); var that = this; var type = e.currentTarget.dataset.type; var collected = e.currentTarget.dataset.collected; var storeJobId = e.currentTarget.dataset.jobid; var idx = e.currentTarget.dataset.idx; console.log(type); uni.getUserProfile({ desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写 success: function success(res) { console.log(res); //发起网络请求 uni.request({ url: app.globalData.ip + '/updateUserWechatInfo', data: { nickName: res.userInfo.nickName, avatarUrl: res.userInfo.avatarUrl, gender: res.userInfo.gender, country: res.userInfo.country, province: res.userInfo.province, city: res.userInfo.city }, method: 'POST', header: app.globalData.headers, success: function success(res) { console.log(res); app.globalData.hasUserInfo = 1; that.setData({ hasUserInfo: 1 }); that.doMenuClick(type, collected, storeJobId, idx); }, fail: function fail(res) { that.doMenuClick(type, collected, storeJobId, idx); } }); }, fail: function fail(res) { console.log(res); that.doMenuClick(type, collected, storeJobId, idx); } }); }), (0, _defineProperty2.default)(_methods, "doMenuClick", function doMenuClick(_type, _collected, _storeJobId, _idx) { var that = this; if (_type - 1 == 0) { //点击全国 that.goCity(); } else if (_type - 2 == 0) { //搜索 } else if (_type - 3 == 0) { //筛选 that.goScreen(); } else if (_type - 4 == 0) { //收藏 that.doCollected(_collected, _storeJobId); } else if (_type - 5 == 0) { //报名 uni.setStorageSync('jobDetailStorage', that.recordList[_idx]); uni.navigateTo({ url: '../enroll/index?applyType=1&tel=' + app.globalData.loginUserInfo.tel }); } }), (0, _defineProperty2.default)(_methods, "changSign", function changSign(e) { var that = this; console.log(e); that.storeJobListSearchForm.pageNum = 1; if (e.target.dataset.type == 0 && that.signType != 0) { that.storeJobListSearchForm.signType = ''; that.setData({ signType: e.target.dataset.type, recordList: [], storeJobListSearchForm: that.storeJobListSearchForm }); that.getJobList(); } else if (e.target.dataset.type == 1 && that.signType != 1) { that.storeJobListSearchForm.signType = 1; that.setData({ signType: e.target.dataset.type, recordList: [], storeJobListSearchForm: that.storeJobListSearchForm }); that.getJobList(); } else if (e.target.dataset.type == 2 && that.signType != 2) { that.storeJobListSearchForm.signType = 2; that.setData({ signType: e.target.dataset.type, recordList: [], storeJobListSearchForm: that.storeJobListSearchForm }); that.getJobList(); } }), (0, _defineProperty2.default)(_methods, "collectChange", function collectChange(e) { var that = this; if (that.isLogin || !that.isLogin && e.currentTarget.dataset.id == 0) { if (e.currentTarget.dataset.id) { that.choiceCollect = e.currentTarget.dataset.id; that.storeJobListSearchForm.ujc = e.currentTarget.dataset.id; that.storeJobListSearchForm.pageNum = 1; that.setData({ choiceCollect: that.choiceCollect, storeJobListSearchForm: that.storeJobListSearchForm, recordList: [], hasMoreData: false }); that.getJobList(); } } else { that.setData({ recordList: [], hasMoreData: false, choiceCollect: 1 }); // } } }), (0, _defineProperty2.default)(_methods, "choiceFilter", function choiceFilter(e) { var that = this; // let str = that.data.activez var str = e.currentTarget.dataset.id; if (str == 'all') { that.storeJobListSearchForm.sortTag = 0; that.setData({ firstMenu: '排序', // storeJobListSearchForm: that.data.storeJobListSearchForm, recordList: [] }); that.getJobList().then(function () { that.setData({ siv: 'menu' }); }); } else if (str == 'zuijin') { //距离最近 if (that.storeJobListSearchForm.lng && that.storeJobListSearchForm.lat) { that.storeJobListSearchForm.sortTag = 2; that.setData({ firstMenu: '距离', // storeJobListSearchForm: tha t.data.storeJobListSearchForm, recordList: [] }); that.getJobList().then(function () { that.setData({ siv: 'menu' }); }); } else { uni.getLocation({ type: 'gcj02', success: function success(res1) { console.log('获取位置1'); app.globalData.lng = res1.longitude; app.globalData.lat = res1.latitude; that.storeJobListSearchForm.lng = res1.longitude; that.storeJobListSearchForm.lat = res1.latitude; that.storeJobListSearchForm.sortTag = 2; that.storeJobListSearchForm.pageNum = 1; that.setData({ firstMenu: '距离', storeJobListSearchForm: that.storeJobListSearchForm, recordList: [] }); that.getJobList().then(function () { that.setData({ siv: 'menu' }); }); // var promise = new Promise(function(resolve,reject){ // that.getJobList(); // }); }, fail: function fail() { console.log('获取位置失败,打开位置设置界面'); // wx.openSetting({ // success(res) { // console.log(res.authSetting); // if (res.authSetting["scope.userLocation"]) { // wx.getLocation({ // type: "gcj02", // success(res1) { // console.log("获取位置2"); // console.log(res1); // app.globalData.lng = res1.longitude; // app.globalData.lat = res1.latitude; // that.data.storeJobListSearchForm.sortTag = 2; // that.data.storeJobListSearchForm.lng = res1.longitude; // that.data.storeJobListSearchForm.lat = res1.latitude; // that.data.storeJobListSearchForm.pageNum = 1; // that.setData({ // storeJobListSearchForm: that.data.storeJobListSearchForm, // recordList: [], // }); // that.getJobList().then(() => { // that.setData({ // siv: "menu", // }); // }); // }, // fail() {}, // }); // } // }, // }); } }); } } else if (str == 'zuigao') { //工价最高 that.storeJobListSearchForm.sortTag = 1; that.storeJobListSearchForm.pageNum = 1; that.setData({ storeJobListSearchForm: that.storeJobListSearchForm, firstMenu: '排序', recordList: [] }); that.getJobList().then(function () { that.setData({ siv: 'menu' }); }); } that.setData({ activez: str }); that.setData({ whichOneShow: '', siv: '' }); // setTimeout(() => { // that.setData({ // whichOneShow: "", // }); // console.log(this.data.whichOneShow); // console.log("112233"); // }, 1); }), (0, _defineProperty2.default)(_methods, "clearFilter", function clearFilter() { var that = this; that.jobSpecialLabelList.forEach(function (item) { // console.log(item); if (item.checked) { item.checked = false; } }); that.brandList.forEach(function (item) { if (item.checked) { item.checked = false; } }); that.storeJobListSearchForm.jobSpecialLabelIds = ''; // that.data.storeJobListSearchForm.ujc = // that.data.storeJobListSearchForm.brandIds = ""; that.storeJobListSearchForm.jobCategoryLabelIds = ''; that.storeJobListSearchForm.pageNum = 1; that.setData({ jobSpecialLabelList: that.jobSpecialLabelList, tagArray0: that.tagArray0, tagArray1: that.tagArray1, tagArray2: that.tagArray2, tagArray3: that.tagArray3, brandList: that.brandList, selectJobList: [], selectBrandList: [], recordList: [], whichOneShow: '', firstMenu: '排序', secondMenu: '不限', sexid: -1, activez: 'zuigao' }); // that.choiceFilter({ // currentTarget: { // dataset: { // id: "all", // }, // }, // }); // that.choiceSex({ // currentTarget: { // dataset: { // id: "-1", // }, // }, // }); that.getJobList(); }), (0, _defineProperty2.default)(_methods, "scroll", function scroll(e) { return false; }), (0, _defineProperty2.default)(_methods, "stoptap", function stoptap(e) { return false; }), (0, _defineProperty2.default)(_methods, "changeContact", function changeContact() { console.log(2123); uni.navigateTo({ url: "/pages/configAnnunciate/index" }); }), (0, _defineProperty2.default)(_methods, "recordBill", function recordBill(e) { var _this5 = this; console.log(e.currentTarget.dataset.job); console.log(this.recordShow); uni.hideTabBar({ animation: false, success: function success(result) { _this5.setData({ recordShow: true, currentInfo: e.currentTarget.dataset.job }); }, fail: function fail() {}, complete: function complete() {} }); this.setData({ recordShow: true, currentInfo: e.currentTarget.dataset.job }); // this.recordShow = true; // this.currentInfo = e.currentTarget.dataset.job // return; // if (!this.isLogin) { // uni.navigateTo({ // url: '/pages/login/index' // }); // return; // } // console.log(e.currentTarget.dataset.job); // console.log(123); // let middleInfo = e.currentTarget.dataset.job; // let info = JSON.stringify({ // id: middleInfo.id, // jobName: middleInfo.jobName, // storeName: middleInfo.storeName, // aliasName: middleInfo.aliasName, // storeId: middleInfo.storeId // }); // console.log(info); // uni.navigateTo({ // url: `../newEnroll/enroll/index?applyType=1&info=${info}` // }); // wx.navigateTo({ // url: `../newEnroll/enroll/index?applyType=1&info=${info}`, // }); }), (0, _defineProperty2.default)(_methods, "imageLoad", function imageLoad() { this.setData({ isLoading: false }); }), (0, _defineProperty2.default)(_methods, "closeDialog", function closeDialog() { this.setData({ iosDialog: false }); }), (0, _defineProperty2.default)(_methods, "showLeft", function showLeft() { this.setData({ leftShow: true }); }), (0, _defineProperty2.default)(_methods, "hideLeft", function hideLeft() { this.setData({ leftShow: false, whichOneShow: '' }); console.log(this.innerFilter); if (!this.innerFilter) { this.setData({ filterData: JSON.parse(JSON.stringify(this.copyList)) }); } }), (0, _defineProperty2.default)(_methods, "modalMove", function modalMove() { console.log('123'); return false; }), (0, _defineProperty2.default)(_methods, "getSwiperIndex", function getSwiperIndex(e) { // console.dir(e); if (e.detail.current) { this.setData({ placeholderText: this.swiperTextList[e.detail.current] }); // console.log(this.data.swiperTextList[e.detail.current]); // console.log(this.data.placeholderText); } }), (0, _defineProperty2.default)(_methods, "drawerTouchStart", function drawerTouchStart(event) { this.handletouchtart(event); }), (0, _defineProperty2.default)(_methods, "drawerTouchMove", function drawerTouchMove(event) { var tx = this.handletouchmove(event); console.log(tx); if (tx.ty > 100) { this.hideDrawer(); } }), (0, _defineProperty2.default)(_methods, "filterTouchMove", function filterTouchMove(event) { var tx = this.handletouchmove(event); if (tx.tx < -100) { this.setData({ leftShow: false }); } }), (0, _defineProperty2.default)(_methods, "filterTouchStart", function filterTouchStart(event) { this.handletouchtart(event); }), (0, _defineProperty2.default)(_methods, "listTouchMove", function listTouchMove(event) { if (event.detail.scrollTop - this.listPosition > 15 && this.halfHide == false) { this.setData({ halfHide: true }); } else if (event.detail.scrollTop - this.listPosition < -15 && this.halfHide == true) { this.setData({ halfHide: false }); } if (event.detail.scrollTop > 200) { // wx.setTabBarItem({ // index: 0, // text: "回顶部", // iconPath: "/assets/images/ysd.png", // selectedIconPath: "/assets/images/top.png", // success: (e) => {}, // fail(e) { // console.log(e); // }, // }); } else if (event.detail.scrollTop <= 200) { // wx.setTabBarItem({ // index: 0, // text: "首页", // iconPath: "/assets/images/ysd.png", // selectedIconPath: "/assets/images/ysd1.png", // success: (e) => {}, // fail(e) { // console.log(e); // }, // }); } // console.log(event); }), (0, _defineProperty2.default)(_methods, "listTouchStart", function listTouchStart(event) { this.listPosition = event.detail.scrollTop; }), (0, _defineProperty2.default)(_methods, "handletouchmove", function handletouchmove(event) { var that = this; var currentX = event.touches[0].pageX; var currentY = event.touches[0].pageY; var tx = currentX - this.lastX; var ty = currentY - this.lastY; //左右方向滑动 if (Math.abs(tx) > Math.abs(ty)) { return { tx: tx }; } //上下方向滑动 else { return { ty: ty }; } }), (0, _defineProperty2.default)(_methods, "handletouchtart", function handletouchtart(event) { this.lastX = event.touches[0].pageX; this.lastY = event.touches[0].pageY; }), (0, _defineProperty2.default)(_methods, "searchAnimate", function searchAnimate() { var _this6 = this; var that = this; return; uni.createSelectorQuery().in(uni).select('#listBox').fields({ scrollOffset: true, size: true }, function (res) { _this6.$scope.animate('#searchInputBox', [{ // paddingTop: "10px", // paddingBottom: "10px", top: '10px', width: '100%' // height: "40px", // backgroundColor: "#f5f5f5", }, { // paddingTop: that.data.statusBarHeight + (that.data.navigationBarHeight - that.data.menuButtonHeight) / 2 + "px", // paddingBottom: "30px", top: '-48px', width: '70%' // height: "84px", // backgroundColor: "#ff4400", // paddingTop:'100px', }], 800, { scrollSource: '#listBox', timeRange: 1000, startScrollOffset: 0, endScrollOffset: 60 }); _this6.$scope.animate('.the_city', [{ color: '#333' }, { color: '#fff' }], 500, { scrollSource: '#listBox', timeRange: 1000, startScrollOffset: 0, endScrollOffset: 90 }); _this6.$scope.animate('.daotian', [{ opacity: '1' }, { opacity: '0' }], 1000, { scrollSource: '#listBox', timeRange: 1000, startScrollOffset: 0, endScrollOffset: 90 }); }).exec(); }), (0, _defineProperty2.default)(_methods, "deleteMark", function deleteMark(e) { var _this7 = this; // console.log(e); console.log(e); var data = e.currentTarget.dataset.item; var filter = this.filterData; // if(e.currentTarget.dataset.item){ // 判断是否是标签筛选项 this.storeJobListSearchForm.pageNum = 1; if (data.hasOwnProperty('typeClassify')) { console.log(e); this.selectJobList.forEach(function (item, index) { console.log(item); if (item.id == data.id) { _this7.selectJobList.splice(index, 1); var ind = filter.jobFilter['tagArray' + data.typeClassify].indexOf(item); console.log(filter.jobFilter['tagArray' + data.typeClassify][ind]); filter.jobFilter['tagArray' + data.typeClassify][ind].active = 0; _this7.toList(); } }); this.setData({ selectJobList: this.selectJobList, filterData: this.filterData }); } else { this.selectBrandList.forEach(function (item, index) { if (item.id == data.id) { _this7.selectBrandList.splice(index, 1); // let ind = filter.jobFilter["tagArray" + data.typeClassify].indexOf(item); // console.log(filter.jobFilter["tagArray" + data.typeClassify][ind]); // filter.jobFilter["tagArray" + data.typeClassify][ind].active = 0; var ind = filter.classifyList.indexOf(item); console.log(filter.classifyList[ind]); filter.classifyList[ind].active = 0; _this7.toList(); } }); this.setData({ selectBrandList: this.selectBrandList, filterData: this.filterData }); } // } }), (0, _defineProperty2.default)(_methods, "deleteAge", function deleteAge(e) { console.log(e); var that = this; that.storeJobListSearchForm.ageRangeStr = '16-60'; that.storeJobListSearchForm.pageNum = 1; this.setData({ minAge: 16, maxAge: 60, rangeValues: [16, 60] }); this.toList(); }), (0, _defineProperty2.default)(_methods, "deletePaixu", function deletePaixu(e) { console.log(e); var that = this; // let data = e.currentTarget.dataset.item; this.storeJobListSearchForm.sortTag = 0; that.storeJobListSearchForm.pageNum = 1; this.setData({ firstMenu: '工价', activez: 'zuigao' }); this.toList(); }), (0, _defineProperty2.default)(_methods, "deleteSex", function deleteSex() { var filter = this.filterData; this.storeJobListSearchForm.pageNum = 1; this.filterData.sex.forEach(function (item, index) { item.active = 0; if (index == 2) { item.active = -1; } }); this.smartObj.sex.forEach(function (item, index) { item.active = 0; if (index == 2) { item.active = -1; } }); this.setData({ filterData: this.filterData, smartObj: this.smartObj }); this.toList(); }), (0, _defineProperty2.default)(_methods, "goList", function goList() { uni.navigateTo({ url: '/pages/filterPage/index' }); }), (0, _defineProperty2.default)(_methods, "goMap", function goMap() { uni.getLocation({ type: 'gcj02', //返回可以用于wx.openLocation的经纬度 success: function success(res) { var latitude = 34.757034; var longitude = 113.772587; uni.openLocation({ latitude: latitude, longitude: longitude, name: '郑州一才企业管理有限公司', address: '河南省郑州市管城回族区心怡路与东站南街交叉口郑东升龙广场2号楼5楼', scale: 18 }); } }); }), (0, _defineProperty2.default)(_methods, "makePhone", function makePhone(e) { var that = this; var tel = e.currentTarget.dataset.tel; uni.makePhoneCall({ // number: that.data.jobDetail.assistantUserTel + "" phoneNumber: tel }); }), (0, _defineProperty2.default)(_methods, "onRangeChange", function onRangeChange(e) { var maxAge = Math.floor(e.detail.maxValue) + ''; var minAge = Math.floor(e.detail.minValue) + ''; console.log(maxAge, minAge); this.setData({ rangeValues: [minAge, maxAge], maxAge: maxAge, minAge: minAge }); }), (0, _defineProperty2.default)(_methods, "hidedrawershow", function hidedrawershow(e) { console.log(e); this.setData((0, _defineProperty2.default)({}, e.detail.type, false)); uni.showTabBar({ animation: false, success: function success(result) {}, fail: function fail() {}, complete: function complete() {} }); }), _methods) }; exports.default = _default; /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"])) /***/ }), /***/ 52: /*!************************************************************************************************************************************!*\ !*** /Users/zhangshaokang/Desktop/git/yicaijob_view/dandelionPlatform2_uni/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 _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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__(/*! -!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=css& */ 53); /* harmony import */ var _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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(_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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 _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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 _Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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"] = (_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_Applications_HBuilderX_app_Contents_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_Applications_HBuilderX_app_Contents_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); /***/ }), /***/ 53: /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./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!/Users/zhangshaokang/Desktop/git/yicaijob_view/dandelionPlatform2_uni/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; } /***/ }) },[[45,"common/runtime","common/vendor"]]]); //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map