2022-11-15 10:03:13 +00:00
|
|
|
|
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/worker/sign/sign"],{
|
|
|
|
|
|
|
|
|
|
/***/ 24:
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/*!************************************************************************************!*\
|
|
|
|
|
!*** D:/Lee/工地打卡小程序/building-sign/main.js?{"page":"pages%2Fworker%2Fsign%2Fsign"} ***!
|
|
|
|
|
\************************************************************************************/
|
2022-11-15 10:03:13 +00:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
/* WEBPACK VAR INJECTION */(function(createPage) {__webpack_require__(/*! uni-pages */ 5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 4));
|
|
|
|
|
var _sign = _interopRequireDefault(__webpack_require__(/*! ./pages/worker/sign/sign.vue */ 25));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
|
|
|
|
|
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_sign.default);
|
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 25:
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/*!***************************************************************!*\
|
|
|
|
|
!*** D:/Lee/工地打卡小程序/building-sign/pages/worker/sign/sign.vue ***!
|
|
|
|
|
\***************************************************************/
|
2022-11-15 10:03:13 +00:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony import */ var _sign_vue_vue_type_template_id_4844bef7_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./sign.vue?vue&type=template&id=4844bef7&scoped=true& */ 26);
|
|
|
|
|
/* harmony import */ var _sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sign.vue?vue&type=script&lang=js& */ 28);
|
|
|
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 11);
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
|
|
|
|
var renderjs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
|
|
2022-11-28 06:26:17 +00:00
|
|
|
|
var component = Object(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
2022-11-15 10:03:13 +00:00
|
|
|
|
_sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
|
|
|
_sign_vue_vue_type_template_id_4844bef7_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
|
|
|
_sign_vue_vue_type_template_id_4844bef7_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
|
|
|
false,
|
|
|
|
|
null,
|
|
|
|
|
"4844bef7",
|
|
|
|
|
null,
|
|
|
|
|
false,
|
|
|
|
|
_sign_vue_vue_type_template_id_4844bef7_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
|
|
|
|
|
renderjs
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
component.options.__file = "pages/worker/sign/sign.vue"
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 26:
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/*!**********************************************************************************************************!*\
|
|
|
|
|
!*** D:/Lee/工地打卡小程序/building-sign/pages/worker/sign/sign.vue?vue&type=template&id=4844bef7&scoped=true& ***!
|
|
|
|
|
\**********************************************************************************************************/
|
2022-11-15 10:03:13 +00:00
|
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_template_id_4844bef7_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sign.vue?vue&type=template&id=4844bef7&scoped=true& */ 27);
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_template_id_4844bef7_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_template_id_4844bef7_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_template_id_4844bef7_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_template_id_4844bef7_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 27:
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./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--16-0!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pages/worker/sign/sign.vue?vue&type=template&id=4844bef7&scoped=true& ***!
|
|
|
|
|
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
2022-11-15 10:03:13 +00:00
|
|
|
|
/*! exports provided: render, staticRenderFns, recyclableRender, components */
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return recyclableRender; });
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "components", function() { return components; });
|
|
|
|
|
var components
|
|
|
|
|
try {
|
|
|
|
|
components = {
|
|
|
|
|
statusNav: function() {
|
2022-11-18 10:33:37 +00:00
|
|
|
|
return __webpack_require__.e(/*! import() | components/status-nav/status-nav */ "components/status-nav/status-nav").then(__webpack_require__.bind(null, /*! @/components/status-nav/status-nav.vue */ 121))
|
2022-11-15 10:03:13 +00:00
|
|
|
|
},
|
2022-12-08 10:07:45 +00:00
|
|
|
|
signCalendar: function() {
|
|
|
|
|
return Promise.all(/*! import() | components/sign-calendar/sign-calendar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/sign-calendar/sign-calendar")]).then(__webpack_require__.bind(null, /*! @/components/sign-calendar/sign-calendar.vue */ 171))
|
|
|
|
|
},
|
2022-11-15 10:03:13 +00:00
|
|
|
|
tabbar: function() {
|
2022-11-18 10:33:37 +00:00
|
|
|
|
return Promise.all(/*! import() | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then(__webpack_require__.bind(null, /*! @/components/tabbar/tabbar.vue */ 128))
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
if (
|
|
|
|
|
e.message.indexOf("Cannot find module") !== -1 &&
|
|
|
|
|
e.message.indexOf(".vue") !== -1
|
|
|
|
|
) {
|
|
|
|
|
console.error(e.message)
|
|
|
|
|
console.error("1. 排查组件名称拼写是否正确")
|
|
|
|
|
console.error(
|
|
|
|
|
"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
|
|
|
|
|
)
|
|
|
|
|
console.error(
|
|
|
|
|
"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件"
|
|
|
|
|
)
|
|
|
|
|
} else {
|
|
|
|
|
throw e
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var render = function() {
|
|
|
|
|
var _vm = this
|
|
|
|
|
var _h = _vm.$createElement
|
|
|
|
|
var _c = _vm._self._c || _h
|
|
|
|
|
var l0 = _vm.__map(_vm.signList, function(item, index) {
|
|
|
|
|
var $orig = _vm.__get_orig(item)
|
|
|
|
|
|
|
|
|
|
var g0 = item.created_at.substr(item.created_at.length - 8)
|
|
|
|
|
return {
|
|
|
|
|
$orig: $orig,
|
|
|
|
|
g0: g0
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2022-11-22 05:47:31 +00:00
|
|
|
|
if (!_vm._isMounted) {
|
|
|
|
|
_vm.e0 = function($event) {
|
|
|
|
|
;(_vm.showRadio = false), (_vm.radioIndex = 0)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-15 10:03:13 +00:00
|
|
|
|
_vm.$mp.data = Object.assign(
|
|
|
|
|
{},
|
|
|
|
|
{
|
|
|
|
|
$root: {
|
|
|
|
|
l0: l0
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
var recyclableRender = false
|
|
|
|
|
var staticRenderFns = []
|
|
|
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 28:
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/*!****************************************************************************************!*\
|
|
|
|
|
!*** D:/Lee/工地打卡小程序/building-sign/pages/worker/sign/sign.vue?vue&type=script&lang=js& ***!
|
|
|
|
|
\****************************************************************************************/
|
2022-11-15 10:03:13 +00:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sign.vue?vue&type=script&lang=js& */ 29);
|
|
|
|
|
/* harmony import */ var _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_HbuilderX_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 29:
|
2022-11-28 06:26:17 +00:00
|
|
|
|
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/babel-loader/lib!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!D:/Lee/工地打卡小程序/building-sign/pages/worker/sign/sign.vue?vue&type=script&lang=js& ***!
|
|
|
|
|
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
2022-11-15 10:03:13 +00:00
|
|
|
|
/*! no static exports found */
|
|
|
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
2022-12-08 10:07:45 +00:00
|
|
|
|
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var signCalendar = function signCalendar() {Promise.all(/*! require.ensure | components/sign-calendar/sign-calendar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/sign-calendar/sign-calendar")]).then((function () {return resolve(__webpack_require__(/*! @/components/sign-calendar/sign-calendar */ 171));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var tabbar = function tabbar() {Promise.all(/*! require.ensure | components/tabbar/tabbar */[__webpack_require__.e("common/vendor"), __webpack_require__.e("components/tabbar/tabbar")]).then((function () {return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 128));}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);};var _default =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-22 05:47:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-24 06:05:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
|
|
|
|
|
2022-11-28 06:26:17 +00:00
|
|
|
|
|
|
|
|
|
|
2022-12-02 07:13:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-28 06:26:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 08:46:52 +00:00
|
|
|
|
|
|
|
|
|
|
2022-11-15 10:03:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
components: {
|
2022-12-08 10:07:45 +00:00
|
|
|
|
signCalendar: signCalendar,
|
2022-11-15 10:03:13 +00:00
|
|
|
|
tabbar: tabbar },
|
|
|
|
|
|
|
|
|
|
data: function data() {
|
|
|
|
|
return {
|
|
|
|
|
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
|
|
|
|
|
userType: 'worker', //账户类型 工人:worker 负责人:director
|
|
|
|
|
frontColor: '#ffffff', //状态栏文字颜色
|
|
|
|
|
backgroudColor: 'none', //导航栏背景
|
|
|
|
|
titleColor: '#ffffff', //导航栏颜色
|
2022-11-22 05:47:31 +00:00
|
|
|
|
radioList: [
|
|
|
|
|
{ title: '上班', type: 'in' },
|
|
|
|
|
{ title: '下班', type: 'out' }],
|
|
|
|
|
//打卡类型
|
|
|
|
|
radioIndex: 0, //当前选择
|
|
|
|
|
showRadio: false, //是否显示上班类型
|
2022-11-15 10:03:13 +00:00
|
|
|
|
currentDate: '', //当前日期
|
|
|
|
|
currentWeek: '', //当前星期几
|
|
|
|
|
currenTime: '', //实时时间
|
|
|
|
|
siteInfo: {}, //定位工地
|
|
|
|
|
signList: [], //打卡记录
|
|
|
|
|
safetyBulletin: '', //安全公告
|
|
|
|
|
isRead: true, //是否已读安全公告
|
|
|
|
|
userInfo: {
|
|
|
|
|
checking: -1,
|
|
|
|
|
role: -1 },
|
|
|
|
|
//用户信息
|
|
|
|
|
registerObj: {
|
|
|
|
|
real_name: '',
|
|
|
|
|
mobile: '',
|
|
|
|
|
card_number: '',
|
|
|
|
|
pay: '',
|
|
|
|
|
position: -1,
|
|
|
|
|
emergency_contact: '',
|
|
|
|
|
emergency_phone: '',
|
|
|
|
|
bank_card_name: '',
|
|
|
|
|
bank_card_number: '',
|
|
|
|
|
bank_name: '',
|
2022-12-02 07:13:41 +00:00
|
|
|
|
worksite_id: -1,
|
|
|
|
|
experience: '',
|
|
|
|
|
address: '',
|
|
|
|
|
bank_img: '' },
|
2022-11-15 10:03:13 +00:00
|
|
|
|
//工人注册信息
|
2022-12-02 07:13:41 +00:00
|
|
|
|
idImgList: ['', ''], //身份证照片
|
2022-11-15 10:03:13 +00:00
|
|
|
|
positionList: [], //技术岗位
|
|
|
|
|
positionIndex: 0, //当前技术岗位
|
|
|
|
|
finish: false, //是否完成打卡
|
2022-11-16 10:20:26 +00:00
|
|
|
|
flag: true, //是否能提交
|
2022-11-22 05:47:31 +00:00
|
|
|
|
isLoding: false, //是否加载完成
|
2022-11-24 06:05:03 +00:00
|
|
|
|
timer: false, //计时器状态
|
|
|
|
|
noticeInfo: '', //审核通知
|
2022-11-28 06:26:17 +00:00
|
|
|
|
isNotice: false, //是否显示通知
|
|
|
|
|
notice: '', //公告
|
2022-12-02 07:13:41 +00:00
|
|
|
|
ifNotice: false, //是否显示公告
|
|
|
|
|
stagingImg: '' //暂存img
|
2022-11-15 10:03:13 +00:00
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
onPageScroll: function onPageScroll(object) {
|
|
|
|
|
if (object.scrollTop >= 5) {
|
|
|
|
|
this.frontColor = '#000000';
|
|
|
|
|
this.backgroudColor = '#ffffff';
|
|
|
|
|
this.titleColor = '#3333333';
|
|
|
|
|
// 改变状态栏
|
|
|
|
|
this.changeStatusNav();
|
|
|
|
|
}
|
|
|
|
|
if (object.scrollTop <= 0) {
|
|
|
|
|
this.frontColor = '#ffffff';
|
|
|
|
|
this.backgroudColor = 'none';
|
|
|
|
|
this.titleColor = '#ffffff';
|
|
|
|
|
// 改变状态栏
|
|
|
|
|
this.changeStatusNav();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onLoad: function onLoad() {
|
|
|
|
|
// 改变状态栏
|
|
|
|
|
this.changeStatusNav();
|
|
|
|
|
// 获取位置信息
|
|
|
|
|
this.getLocationEv(0);
|
|
|
|
|
},
|
|
|
|
|
onShow: function onShow() {
|
|
|
|
|
// 获取打卡信息
|
|
|
|
|
this.getSignInfo();
|
2022-11-22 05:47:31 +00:00
|
|
|
|
// 获取打卡记录
|
|
|
|
|
this.getSignList();
|
2022-11-28 06:26:17 +00:00
|
|
|
|
// 判断是否查看安全公告
|
|
|
|
|
if (uni.getStorageSync('isRead')) {
|
|
|
|
|
// 查询是否有通知
|
|
|
|
|
this.getNoticeInfo();
|
|
|
|
|
} else {
|
|
|
|
|
this.isRead = false;
|
|
|
|
|
// 获取安全告知
|
|
|
|
|
this.getSafetyBulletin();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onHide: function onHide() {
|
|
|
|
|
// 缓存公告为未读
|
|
|
|
|
uni.setStorageSync('ifNotice', 'notNotice');
|
|
|
|
|
},
|
2022-11-28 09:44:22 +00:00
|
|
|
|
onShareAppMessage: function onShareAppMessage(res) {
|
|
|
|
|
var shareObj = {
|
|
|
|
|
title: '工地打卡',
|
|
|
|
|
path: '/pages/pagehome/pagehome',
|
|
|
|
|
imageUrl: '/static/share-logo.jpg' };
|
|
|
|
|
|
|
|
|
|
// 返回shareObj
|
|
|
|
|
return shareObj;
|
|
|
|
|
},
|
2022-11-28 06:26:17 +00:00
|
|
|
|
onPullDownRefresh: function onPullDownRefresh() {
|
|
|
|
|
// 获取工资列表
|
|
|
|
|
this.getSignList();
|
|
|
|
|
// 关闭下拉刷新
|
|
|
|
|
uni.stopPullDownRefresh();
|
2022-11-15 10:03:13 +00:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 改变状态栏
|
|
|
|
|
changeStatusNav: function changeStatusNav() {
|
|
|
|
|
wx.setNavigationBarColor({
|
|
|
|
|
frontColor: this.frontColor,
|
|
|
|
|
backgroundColor: 'none' });
|
|
|
|
|
|
|
|
|
|
},
|
2022-12-08 10:07:45 +00:00
|
|
|
|
|
2022-11-15 10:03:13 +00:00
|
|
|
|
// 获取用户信息
|
|
|
|
|
getUserInfo: function getUserInfo() {var _this = this;
|
|
|
|
|
this.$requst.post('/api/v1/user/info').then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
console.log(res, '用户信息');
|
|
|
|
|
_this.userInfo = res.data;
|
2022-11-28 06:26:17 +00:00
|
|
|
|
// 获取技术岗位
|
2022-11-15 10:03:13 +00:00
|
|
|
|
if (_this.userInfo.checking == 0 && _this.userInfo.role == 0) {
|
|
|
|
|
_this.getPositionList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
2022-11-28 06:26:17 +00:00
|
|
|
|
// 获取公告
|
|
|
|
|
getNotice: function getNotice() {var _this2 = this;
|
|
|
|
|
this.$requst.get('/api/v1/index/notice').then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
console.log(res, '公告');
|
|
|
|
|
if (res.data.status == 1) {
|
|
|
|
|
_this2.ifNotice = true;
|
|
|
|
|
uni.setStorageSync('ifNotice', 'hasNotice');
|
|
|
|
|
_this2.notice = res.data.content;
|
|
|
|
|
} else {
|
|
|
|
|
_this2.ifNotice = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 关闭公告
|
|
|
|
|
closeNotice: function closeNotice() {
|
|
|
|
|
this.ifNotice = false;
|
|
|
|
|
},
|
|
|
|
|
|
2022-11-24 06:05:03 +00:00
|
|
|
|
// 查询是否有通知
|
2022-11-28 06:26:17 +00:00
|
|
|
|
getNoticeInfo: function getNoticeInfo() {var _this3 = this;
|
2022-11-24 06:05:03 +00:00
|
|
|
|
this.$requst.get('/api/v1/common/notice').then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
console.log(res, '通知消息');
|
|
|
|
|
if (res.data.notice == 1) {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this3.isNotice = true;
|
|
|
|
|
_this3.noticeInfo = res.data;
|
2022-11-24 06:05:03 +00:00
|
|
|
|
} else {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this3.isNotice = false;
|
|
|
|
|
// 判断是否已经查看公告
|
|
|
|
|
if (uni.getStorageSync('ifNotice') !== 'hasNotice') {
|
|
|
|
|
// 获取公告
|
|
|
|
|
_this3.getNotice();
|
|
|
|
|
}
|
2022-11-24 06:05:03 +00:00
|
|
|
|
// 获取用户信息
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this3.getUserInfo();
|
2022-11-24 06:05:03 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
2022-11-28 06:26:17 +00:00
|
|
|
|
// 关闭通知
|
|
|
|
|
closeEdit: function closeEdit() {
|
|
|
|
|
this.isNotice = false;
|
|
|
|
|
// 判断是否已经查看公告
|
|
|
|
|
if (uni.getStorageSync('ifNotice') !== 'hasNotice') {
|
|
|
|
|
// 获取公告
|
|
|
|
|
this.getNotice();
|
|
|
|
|
}
|
|
|
|
|
},
|
2022-11-24 06:05:03 +00:00
|
|
|
|
|
|
|
|
|
// 修改审核资料
|
|
|
|
|
editEv: function editEv() {
|
|
|
|
|
// 获取用户信息
|
|
|
|
|
this.getUserInfo();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 查询审核资料
|
2022-11-28 06:26:17 +00:00
|
|
|
|
getCheckDetail: function getCheckDetail() {var _this4 = this;
|
2022-11-24 06:05:03 +00:00
|
|
|
|
this.$requst.get('/api/v1/worker/check-detail', { id: this.noticeInfo.id }).then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
console.log(res, '审核资料');
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this4.positionIndex = _this4.positionList.findIndex(function (item) {return item.id === res.data.position;});
|
|
|
|
|
_this4.registerObj = {
|
2022-11-24 06:05:03 +00:00
|
|
|
|
real_name: res.data.real_name,
|
|
|
|
|
mobile: res.data.mobile,
|
|
|
|
|
card_number: res.data.card_number,
|
|
|
|
|
pay: parseFloat(res.data.pay),
|
|
|
|
|
position: res.data.position,
|
|
|
|
|
emergency_contact: res.data.emergency_contact,
|
|
|
|
|
emergency_phone: res.data.emergency_phone,
|
|
|
|
|
bank_card_name: res.data.bank_card_name,
|
|
|
|
|
bank_card_number: res.data.bank_card_number,
|
|
|
|
|
bank_name: res.data.bank_name,
|
|
|
|
|
worksite_id: res.data.worksite_id };
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
2022-11-15 10:03:13 +00:00
|
|
|
|
// 授权位置信息
|
2022-11-28 06:26:17 +00:00
|
|
|
|
getLocationEv: function getLocationEv(type) {var _this5 = this;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
uni.getLocation({
|
2022-11-21 08:03:37 +00:00
|
|
|
|
type: 'gcj02',
|
|
|
|
|
isHighAccuracy: 'true',
|
2022-11-15 10:03:13 +00:00
|
|
|
|
success: function success(res) {
|
|
|
|
|
console.log(res, '位置信息');
|
|
|
|
|
if (type == '1') {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this5.$toolAll.tools.showToast('重新定位成功');
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
//获取工地列表
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this5.getSiteEv(res.longitude, res.latitude);
|
2022-11-15 10:03:13 +00:00
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//获取工地列表
|
2022-11-28 06:26:17 +00:00
|
|
|
|
getSiteEv: function getSiteEv(lng, lat) {var _this6 = this;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
this.$requst.get('/api/v1/common/get-current-worksite', { lng: lng, lat: lat }).then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
console.log(res, '定位工地信息');
|
2022-11-28 06:26:17 +00:00
|
|
|
|
// 缓存工地id
|
|
|
|
|
uni.setStorageSync('worksite_id', res.data.id);
|
|
|
|
|
_this6.siteInfo = res.data;
|
|
|
|
|
_this6.registerObj.worksite_id = res.data.id;
|
|
|
|
|
_this6.isLoding = true;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
2022-11-23 08:46:52 +00:00
|
|
|
|
// 获取安全告知
|
2022-11-28 06:26:17 +00:00
|
|
|
|
getSafetyBulletin: function getSafetyBulletin() {var _this7 = this;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
if (!this.isRead) {
|
|
|
|
|
this.$requst.get('/api/v1/index/safe-notice').then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
console.log(res, '安全公告');
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this7.safetyBulletin = res.data.content;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
2022-11-28 06:26:17 +00:00
|
|
|
|
} else {
|
|
|
|
|
// 判断是否已经查看公告
|
|
|
|
|
if (uni.getStorageSync('ifNotice') !== 'hasNotice') {
|
|
|
|
|
// 获取公告
|
|
|
|
|
this.getNotice();
|
|
|
|
|
}
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 关闭安全公告
|
|
|
|
|
closeSafetyBulletin: function closeSafetyBulletin() {
|
|
|
|
|
this.isRead = true;
|
|
|
|
|
// 缓存是否已读
|
|
|
|
|
uni.setStorageSync('isRead', this.isRead);
|
2022-11-23 08:46:52 +00:00
|
|
|
|
if (uni.getStorageSync('worker_role') == 0) {
|
|
|
|
|
this.$toolAll.tools.showToast('请先登录授权');
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages/login/login' });
|
|
|
|
|
|
|
|
|
|
}, 2000);
|
|
|
|
|
} else {
|
2022-11-24 06:05:03 +00:00
|
|
|
|
// 查询是否有通知
|
|
|
|
|
this.getNoticeInfo();
|
2022-11-28 06:26:17 +00:00
|
|
|
|
// 判断是否已经查看公告
|
|
|
|
|
if (uni.getStorageSync('ifNotice') !== 'hasNotice') {
|
|
|
|
|
// 获取公告
|
|
|
|
|
this.getNotice();
|
|
|
|
|
}
|
2022-11-23 08:46:52 +00:00
|
|
|
|
}
|
2022-11-15 10:03:13 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 获取技术岗位
|
2022-11-28 06:26:17 +00:00
|
|
|
|
getPositionList: function getPositionList() {var _this8 = this;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
this.$requst.get('/api/v1/common/position-list').then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
console.log(res, '技术岗位');
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this8.positionList = res.data.list;
|
|
|
|
|
_this8.registerObj.position = res.data.list[_this8.positionIndex].id;
|
|
|
|
|
if (_this8.noticeInfo.notice == 1) {
|
2022-11-24 06:05:03 +00:00
|
|
|
|
// 查询审核资料
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this8.getCheckDetail();
|
2022-11-24 06:05:03 +00:00
|
|
|
|
}
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 选择技术岗位
|
|
|
|
|
choicePosition: function choicePosition(e) {
|
|
|
|
|
this.positionIndex = e.detail.value;
|
|
|
|
|
this.registerObj.position = this.positionList[e.detail.value].id;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 提交注册信息
|
2022-11-28 06:26:17 +00:00
|
|
|
|
submitRegister: function submitRegister() {var _this9 = this;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
if (this.checkEmpty() && this.flag) {
|
|
|
|
|
this.flag = false;
|
|
|
|
|
var params = this.registerObj;
|
|
|
|
|
this.$requst.post('/api/v1/worker/register', params).then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this9.$toolAll.tools.showToast('提交成功');
|
2022-11-24 06:05:03 +00:00
|
|
|
|
// 查询是否有通知
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this9.getNoticeInfo();
|
2022-11-15 10:03:13 +00:00
|
|
|
|
setTimeout(function () {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this9.flag = true;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}, 2000);
|
|
|
|
|
} else {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this9.$toolAll.tools.showToast(res.msg);
|
2022-11-15 10:03:13 +00:00
|
|
|
|
setTimeout(function () {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this9.flag = true;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}, 2000);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 验证电话号
|
|
|
|
|
checkEmpty: function checkEmpty() {
|
|
|
|
|
var result = false;
|
|
|
|
|
if (this.$toolAll.tools.isPhone(this.registerObj.mobile)) {
|
|
|
|
|
this.$toolAll.tools.showToast('请正确填写电话号码');
|
|
|
|
|
} else {
|
|
|
|
|
result = true;
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 获取打卡信息
|
2022-11-28 06:26:17 +00:00
|
|
|
|
getSignInfo: function getSignInfo() {var _this10 = this;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
this.$requst.get('/api/v1/user/sign-info').then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
console.log(res, '打卡信息');
|
|
|
|
|
// 获取日期
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this10.currentDate = res.data.info.today;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
// 获取星期几
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this10.currentWeek = res.data.info.week;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
// 获取当前时间
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this10.currenTime = res.data.info.now;
|
2022-11-22 05:47:31 +00:00
|
|
|
|
// 获取打卡记录列表
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this10.signList = res.data.list;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
// 服务端时间处理
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this10.setIntervalEv();
|
2022-11-22 05:47:31 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 服务端时间处理
|
2022-11-28 06:26:17 +00:00
|
|
|
|
setIntervalEv: function setIntervalEv() {var _this11 = this;
|
2022-11-22 05:47:31 +00:00
|
|
|
|
// 改变计时器状态
|
|
|
|
|
this.timer = true;
|
|
|
|
|
if (this.timer) {
|
|
|
|
|
setInterval(function () {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
var nowArr = _this11.currenTime.split(':');
|
2022-11-22 05:47:31 +00:00
|
|
|
|
var hour = parseInt(nowArr[0]);
|
|
|
|
|
var minute = parseInt(nowArr[1]);
|
|
|
|
|
var second = parseInt(nowArr[2]);
|
|
|
|
|
if (second < 59) {
|
|
|
|
|
second++;
|
|
|
|
|
} else {
|
|
|
|
|
second = 0;
|
|
|
|
|
if (minute < 59) {
|
|
|
|
|
minute++;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
} else {
|
2022-11-22 05:47:31 +00:00
|
|
|
|
minute = 0;
|
|
|
|
|
if (hour < 23) {
|
|
|
|
|
hour++;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
} else {
|
2022-11-22 05:47:31 +00:00
|
|
|
|
hour = 0;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-11-22 05:47:31 +00:00
|
|
|
|
}
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this11.currenTime = "".concat(hour < 10 ? '0' + hour : hour, ":").concat(minute < 10 ? '0' + minute : minute, ":").concat(second < 10 ? '0' + second : second);
|
2022-11-22 05:47:31 +00:00
|
|
|
|
}, 1000);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 获取打卡记录
|
2022-11-28 06:26:17 +00:00
|
|
|
|
getSignList: function getSignList() {var _this12 = this;
|
2022-11-22 05:47:31 +00:00
|
|
|
|
this.$requst.get('/api/v1/user/sign-today').then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
console.log(res, '打卡记录');
|
2022-11-15 10:03:13 +00:00
|
|
|
|
// 获取打卡记录列表
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this12.signList = res.data.list;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
2022-11-22 05:47:31 +00:00
|
|
|
|
// 唤起打卡弹窗
|
|
|
|
|
showRadioEv: function showRadioEv() {
|
2022-11-23 08:46:52 +00:00
|
|
|
|
if (uni.getStorageSync('worker_role') == 1) {
|
|
|
|
|
if (this.siteInfo.name) {
|
|
|
|
|
if (!this.finish) {
|
|
|
|
|
this.showRadio = true;
|
|
|
|
|
this.radioIndex = 0;
|
|
|
|
|
} else {
|
|
|
|
|
this.$toolAll.tools.showToast('您已打卡');
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.$toolAll.tools.showToast('不在打卡范围内');
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-15 10:03:13 +00:00
|
|
|
|
} else {
|
2022-11-23 08:46:52 +00:00
|
|
|
|
this.$toolAll.tools.showToast('资料审核中');
|
2022-11-22 05:47:31 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 改变上下班打卡
|
|
|
|
|
changeSignType: function changeSignType(index) {
|
|
|
|
|
if (this.radioIndex !== index) {
|
|
|
|
|
this.radioIndex = index;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 打卡
|
2022-11-28 06:26:17 +00:00
|
|
|
|
signEv: function signEv() {var _this13 = this;
|
2022-11-15 10:03:13 +00:00
|
|
|
|
var params = {
|
2022-11-22 05:47:31 +00:00
|
|
|
|
type: this.radioList[this.radioIndex].type,
|
2022-11-15 10:03:13 +00:00
|
|
|
|
lat: this.siteInfo.lat,
|
|
|
|
|
lng: this.siteInfo.lng,
|
|
|
|
|
worksite_id: this.siteInfo.id };
|
|
|
|
|
|
|
|
|
|
this.$requst.post('/api/v1/worker/sign', params).then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this13.finish = true;
|
|
|
|
|
_this13.showRadio = false;
|
2022-11-22 05:47:31 +00:00
|
|
|
|
// 获取打卡记录
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this13.getSignList();
|
2022-11-15 10:03:13 +00:00
|
|
|
|
// 延时改变打卡状态
|
|
|
|
|
setTimeout(function () {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this13.finish = false;
|
2022-11-22 05:47:31 +00:00
|
|
|
|
}, 60000);
|
2022-11-15 10:03:13 +00:00
|
|
|
|
} else {
|
2022-11-28 06:26:17 +00:00
|
|
|
|
_this13.$toolAll.tools.showToast(res.msg);
|
2022-11-15 10:03:13 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
2022-12-02 07:13:41 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 选择图片
|
|
|
|
|
changeImg: function changeImg(type) {var _this14 = this;
|
|
|
|
|
uni.chooseImage({
|
|
|
|
|
count: 1, //默认9
|
|
|
|
|
sourceType: ['album', 'camera'], //从相册选择
|
|
|
|
|
success: function success(res) {
|
|
|
|
|
_this14.stagingImg = res.tempFilePaths[0];
|
|
|
|
|
// 上传图片
|
|
|
|
|
_this14.uploadImg(type);
|
|
|
|
|
} });
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 上传图片
|
|
|
|
|
uploadImg: function uploadImg(type) {var _this15 = this;
|
|
|
|
|
uni.showLoading({
|
|
|
|
|
title: '上传中' });
|
|
|
|
|
|
|
|
|
|
this.$requst.upload('/api/v1/file/upload/image', { path: this.stagingImg }).then(function (res) {
|
|
|
|
|
if (res.code == 0) {
|
|
|
|
|
if (type == 'positive') {
|
|
|
|
|
_this15.idImgList[0] = _this15.$hostHttp + res.data.src;
|
|
|
|
|
}
|
|
|
|
|
if (type == 'back') {
|
|
|
|
|
_this15.idImgList[1] = _this15.$hostHttp + res.data.src;
|
|
|
|
|
}
|
|
|
|
|
if (type == 'bank') {
|
|
|
|
|
_this15.registerObj.bank_img = _this15.$hostHttp + res.data.src;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 删除图片
|
|
|
|
|
delImg: function delImg(index, type) {
|
|
|
|
|
if (type == 'positive') {
|
|
|
|
|
this.idImgList[0] = '';
|
|
|
|
|
}
|
|
|
|
|
if (type == 'back') {
|
|
|
|
|
this.idImgList[1] = '';
|
|
|
|
|
}
|
|
|
|
|
if (type == 'bank') {
|
|
|
|
|
this.registerObj.bank_img = '';
|
|
|
|
|
}
|
2022-12-08 10:07:45 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 预览图片
|
|
|
|
|
previewImage: function previewImage(url) {
|
|
|
|
|
var urlArr = [url];
|
|
|
|
|
uni.previewImage({
|
|
|
|
|
current: 1, //预览图片的下标
|
|
|
|
|
urls: urlArr //预览图片的地址,必须要数组形式,如果不是数组形式就转换成数组形式就可以
|
|
|
|
|
});
|
2022-11-15 10:03:13 +00:00
|
|
|
|
} } };exports.default = _default;
|
|
|
|
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
|
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
|
|
|
|
},[[24,"common/runtime","common/vendor"]]]);
|
|
|
|
|
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/worker/sign/sign.js.map
|