building-sign/unpackage/dist/dev/mp-weixin/pages/worker/sign/sign.js

898 lines
50 KiB
JavaScript
Raw Normal View History

2022-11-15 10:03:13 +00:00
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pages/worker/sign/sign"],{
2023-01-14 03:15:59 +00:00
/***/ 45:
2023-02-16 08:19:34 +00:00
/*!********************************************************************************!*\
!*** C:/wwwroot/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";
2023-01-14 03:15:59 +00:00
/* WEBPACK VAR INJECTION */(function(wx, createPage) {
2022-12-21 08:26:21 +00:00
2023-01-14 03:15:59 +00:00
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
__webpack_require__(/*! uni-pages */ 26);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
var _sign = _interopRequireDefault(__webpack_require__(/*! ./pages/worker/sign/sign.vue */ 46));
2022-12-21 08:26:21 +00:00
// @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_sign.default);
2023-01-14 03:15:59 +00:00
/* 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"]))
2022-11-15 10:03:13 +00:00
/***/ }),
2023-01-14 03:15:59 +00:00
/***/ 46:
2023-02-16 08:19:34 +00:00
/*!***********************************************************!*\
!*** C:/wwwroot/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__);
2023-01-14 03:15:59 +00:00
/* 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& */ 47);
/* harmony import */ var _sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./sign.vue?vue&type=script&lang=js& */ 49);
2022-12-21 08:26:21 +00:00
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _sign_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 _sign_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
2023-02-16 08:19:34 +00:00
/* harmony import */ var _sign_vue_vue_type_style_index_0_id_4844bef7_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./sign.vue?vue&type=style&index=0&id=4844bef7&scoped=true&lang=css& */ 51);
/* harmony import */ var _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32);
2022-11-15 10:03:13 +00:00
var renderjs
2023-02-16 08:19:34 +00:00
2022-11-15 10:03:13 +00:00
/* normalize component */
2023-02-16 08:19:34 +00:00
var component = Object(_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["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);
/***/ }),
2023-01-14 03:15:59 +00:00
/***/ 47:
2023-02-16 08:19:34 +00:00
/*!******************************************************************************************************!*\
!*** C:/wwwroot/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__);
2023-02-16 08:19:34 +00:00
/* harmony import */ var _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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__(/*! -!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--16-0!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sign.vue?vue&type=template&id=4844bef7&scoped=true& */ 48);
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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
2023-02-16 08:19:34 +00:00
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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
2023-02-16 08:19:34 +00:00
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "recyclableRender", function() { return _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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
2023-02-16 08:19:34 +00:00
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "components", function() { return _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_16_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_template_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_uni_app_loader_page_meta_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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
/***/ }),
2023-01-14 03:15:59 +00:00
/***/ 48:
2023-02-16 08:19:34 +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!C:/wwwroot/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 = {
2022-12-21 08:26:21 +00:00
statusNav: function () {
2023-02-16 08:19:34 +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 */ 180))
2022-11-15 10:03:13 +00:00
},
2022-12-21 08:26:21 +00:00
signCalendar: function () {
2023-02-16 08:19:34 +00:00
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 */ 187))
2022-12-21 08:26:21 +00:00
},
tabbar: function () {
2023-02-16 08:19:34 +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 */ 194))
2022-12-08 10:07:45 +00:00
},
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
}
}
2022-12-21 08:26:21 +00:00
var render = function () {
2022-11-15 10:03:13 +00:00
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
2022-12-21 08:26:21 +00:00
var l0 = _vm.__map(_vm.signList, function (item, index) {
2022-11-15 10:03:13 +00:00
var $orig = _vm.__get_orig(item)
2023-01-14 03:15:59 +00:00
var g0 = !(item.is_replenish == 1)
? item.created_at.substr(item.created_at.length - 8)
: null
2022-11-15 10:03:13 +00:00
return {
$orig: $orig,
2022-12-21 08:26:21 +00:00
g0: g0,
2022-11-15 10:03:13 +00:00
}
})
2023-01-14 03:15:59 +00:00
var g1 = _vm.signList.length
2022-11-22 05:47:31 +00:00
if (!_vm._isMounted) {
2022-12-21 08:26:21 +00:00
_vm.e0 = function ($event) {
2022-11-22 05:47:31 +00:00
;(_vm.showRadio = false), (_vm.radioIndex = 0)
}
}
2022-11-15 10:03:13 +00:00
_vm.$mp.data = Object.assign(
{},
{
$root: {
2022-12-21 08:26:21 +00:00
l0: l0,
2023-01-14 03:15:59 +00:00
g1: g1,
2022-12-21 08:26:21 +00:00
},
2022-11-15 10:03:13 +00:00
}
)
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
2023-01-14 03:15:59 +00:00
/***/ 49:
2023-02-16 08:19:34 +00:00
/*!************************************************************************************!*\
!*** C:/wwwroot/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__);
2023-02-16 08:19:34 +00:00
/* harmony import */ var _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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__(/*! -!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--12-1!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sign.vue?vue&type=script&lang=js& */ 50);
/* harmony import */ var _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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(_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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 _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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"] = (_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_babel_loader_lib_index_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_12_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_script_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_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
/***/ }),
2023-01-14 03:15:59 +00:00
/***/ 50:
2023-02-16 08:19:34 +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!C:/wwwroot/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";
2023-01-14 03:15:59 +00:00
/* WEBPACK VAR INJECTION */(function(uni, wx) {
2022-12-21 08:26:21 +00:00
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 () {
2023-02-16 08:19:34 +00:00
return resolve(__webpack_require__(/*! @/components/sign-calendar/sign-calendar */ 187));
2022-12-21 08:26:21 +00:00
}).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 () {
2023-02-16 08:19:34 +00:00
return resolve(__webpack_require__(/*! @/components/tabbar/tabbar */ 194));
2022-12-21 08:26:21 +00:00
}).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
var _default = {
2022-11-15 10:03:13 +00:00
components: {
2022-12-08 10:07:45 +00:00
signCalendar: signCalendar,
2022-12-21 08:26:21 +00:00
tabbar: tabbar
},
2022-11-15 10:03:13 +00:00
data: function data() {
return {
2022-12-21 08:26:21 +00:00
statusHeight: uni.getSystemInfoSync().statusBarHeight,
//状态栏高度
userType: '',
//账户类型 工人worker 负责人director
frontColor: '#ffffff',
//状态栏文字颜色
backgroudColor: 'none',
//导航栏背景
titleColor: '#ffffff',
//导航栏颜色
radioList: [{
title: '上午上班',
type: 'morning_on'
2022-12-21 08:26:21 +00:00
}, {
title: '上午下班',
type: 'morning_off'
2022-12-21 08:26:21 +00:00
}, {
title: '下午上班',
type: 'afternoon_on'
2022-12-21 08:26:21 +00:00
}, {
title: '下午下班',
type: 'afternoon_off'
2022-12-21 08:26:21 +00:00
}],
2022-11-22 05:47:31 +00:00
//打卡类型
2022-12-21 08:26:21 +00:00
radioIndex: 0,
//当前选择
showRadio: false,
//是否显示上班类型
currentDate: '',
//当前日期
currentWeek: '',
//当前星期几
currenTime: '',
//实时时间
siteInfo: {},
//定位工地
signList: [],
//打卡记录
safetyBulletin: '',
//安全公告
isRead: true,
//是否已读安全公告
2022-11-15 10:03:13 +00:00
userInfo: {
checking: -1,
2022-12-21 08:26:21 +00:00
role: -1
},
2022-11-15 10:03:13 +00:00
//用户信息
registerObj: {
real_name: '',
mobile: '',
card_number: '',
pay: '',
position: -1,
2023-02-16 08:19:34 +00:00
outsource_id: -1,
2022-11-15 10:03:13 +00:00
emergency_contact: '',
emergency_phone: '',
bank_card_name: '',
bank_card_number: '',
bank_name: '',
worksite_id: -1,
work_experience: '',
address_now: '',
bank_card_img: '',
id_front: '',
id_back: '',
certificate: '',
province: '北京市',
//省
city: '北京市',
//市
area: '东城区' //区
2022-12-21 08:26:21 +00:00
},
2022-11-15 10:03:13 +00:00
//工人注册信息
2023-01-16 07:10:35 +00:00
//显示图片
bank_card_img: '',
id_front: '',
id_back: '',
2022-12-21 08:26:21 +00:00
positionList: [],
//技术岗位
positionIndex: 0,
//当前技术岗位
2023-02-16 08:19:34 +00:00
teamList: [],
//班组
teamIndex: 0,
//当前技术岗位
2022-12-21 08:26:21 +00:00
flag: true,
//是否能提交
isLoding: false,
//是否加载完成
timer: false,
//计时器状态
noticeInfo: '',
//审核通知
isNotice: false,
//是否显示通知
notice: '',
//公告
ifNotice: false,
//是否显示公告
wsNotice: '',
//工地公告
ifWsNotice: false,
// 是否显示工地公告
2022-12-21 08:26:21 +00:00
stagingImg: '',
//暂存img
ifRegister: false,
//是否显示注册表
2023-01-16 07:10:35 +00:00
buttonColor: '',
//打卡按钮颜色
2023-01-16 08:01:40 +00:00
baseHttps: "".concat(getApp().globalData.hostapi),
daysIndex: new Date().getDate()
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(op) {
2023-01-16 07:10:35 +00:00
var _this = this;
if (op.userType) {
this.userType = op.userType;
}
if (op.apply == 'join') {
// 显示注册表
this.ifRegister = true;
}
2022-11-15 10:03:13 +00:00
// 改变状态栏
this.changeStatusNav();
2023-01-16 07:10:35 +00:00
// 获取位置信息
this.getLocationEv(0);
// 获取工作岗位
this.getPositionList();
2023-01-16 07:10:35 +00:00
setTimeout(function () {
// 获取用户信息
_this.getUserInfo();
// 获取打卡信息
_this.getSignInfo();
// 获取打卡记录
_this.getSignList();
2023-02-16 08:19:34 +00:00
// 获取班组
_this.getTeamList();
}, 500);
2022-11-28 06:26:17 +00:00
},
2023-01-16 07:10:35 +00:00
onShow: function onShow() {},
2023-01-14 03:15:59 +00:00
onPullDownRefresh: function onPullDownRefresh() {
// 获取工资列表
this.getSignList();
// 关闭下拉刷新
uni.stopPullDownRefresh();
},
2022-11-28 09:44:22 +00:00
onShareAppMessage: function onShareAppMessage(res) {
var shareObj = {
title: '工地打卡',
path: '/pages/pagehome/pagehome',
2022-12-21 08:26:21 +00:00
imageUrl: '/static/share-logo.jpg'
};
2022-11-28 09:44:22 +00:00
// 返回shareObj
return shareObj;
},
2022-11-15 10:03:13 +00:00
methods: {
// 改变状态栏
changeStatusNav: function changeStatusNav() {
wx.setNavigationBarColor({
frontColor: this.frontColor,
2022-12-21 08:26:21 +00:00
backgroundColor: 'none'
});
2022-11-15 10:03:13 +00:00
},
// 获取用户信息
2022-12-21 08:26:21 +00:00
getUserInfo: function getUserInfo() {
2023-01-16 07:10:35 +00:00
var _this2 = this;
2022-11-15 10:03:13 +00:00
this.$requst.post('/api/v1/user/info').then(function (res) {
if (res.code == 0) {
console.log(res, '用户信息');
2023-01-14 04:28:31 +00:00
if (res.data.role !== uni.getStorageSync('worker_role')) {
2023-01-16 07:10:35 +00:00
_this2.$toolAll.tools.showToast('身份已变更,正在切换');
2023-01-14 04:28:31 +00:00
setTimeout(function () {
uni.reLaunch({
url: '/pages/pagehome/pagehome'
});
}, 2000);
2023-01-14 03:15:59 +00:00
}
2023-01-16 07:10:35 +00:00
_this2.userInfo = res.data;
if (_this2.userInfo.worksite_id == 0) {
_this2.registerObj = _this2.userInfo;
_this2.positionIndex = 0;
_this2.registerObj.province = _this2.registerObj.province !== '' ? _this2.registerObj.province : '北京市';
_this2.registerObj.city = _this2.registerObj.city !== '' ? _this2.registerObj.city : '北京市';
_this2.registerObj.area = _this2.registerObj.area !== '' ? _this2.registerObj.area : '东城区';
_this2.registerObj.pay = parseFloat(res.data.pay);
2023-01-14 03:15:59 +00:00
}
2022-11-15 10:03:13 +00:00
}
});
},
// 选择省市区
changeAddress: function changeAddress(e) {
this.registerObj.province = e.detail.value[0];
this.registerObj.city = e.detail.value[1];
this.registerObj.area = e.detail.value[2];
2022-11-24 06:05:03 +00:00
},
2022-11-15 10:03:13 +00:00
// 授权位置信息
2022-12-21 08:26:21 +00:00
getLocationEv: function getLocationEv(type) {
2023-01-16 07:10:35 +00:00
var _this3 = 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') {
2023-01-16 07:10:35 +00:00
_this3.$toolAll.tools.showToast('重新定位成功');
2022-11-15 10:03:13 +00:00
}
//获取工地列表
2023-01-16 07:10:35 +00:00
_this3.getSiteEv(res.longitude, res.latitude);
},
complete: function complete() {
// 判断是否查看安全公告
if (uni.getStorageSync('readSafeNotice')) {
// 查询是否有通知
2023-01-16 07:10:35 +00:00
_this3.getNoticeInfo();
} else {
2023-01-16 07:10:35 +00:00
_this3.isRead = false;
// 获取安全告知
2023-01-16 07:10:35 +00:00
_this3.getSafetyBulletin();
}
2022-12-21 08:26:21 +00:00
}
});
2022-11-15 10:03:13 +00:00
},
//获取工地列表
2022-12-21 08:26:21 +00:00
getSiteEv: function getSiteEv(lng, lat) {
2023-01-16 07:10:35 +00:00
var _this4 = this;
2022-12-21 08:26:21 +00:00
this.$requst.get('/api/v1/common/get-current-worksite', {
lng: lng,
lat: lat
}).then(function (res) {
2022-11-15 10:03:13 +00:00
if (res.code == 0) {
console.log(res, '定位工地信息');
2022-11-28 06:26:17 +00:00
// 缓存工地id
uni.setStorageSync('worksite_id', res.data.id);
2023-01-16 07:10:35 +00:00
_this4.siteInfo = res.data;
_this4.registerObj.worksite_id = res.data.id;
_this4.isLoding = true;
2023-01-15 07:31:11 +00:00
// 获取打卡记录
2023-01-16 07:10:35 +00:00
_this4.getSignList();
2023-01-15 07:31:11 +00:00
// 获取状态列表
2023-01-16 07:10:35 +00:00
_this4.$refs.signCalendar.getStatusObj();
2022-11-15 10:03:13 +00:00
}
});
},
2022-11-23 08:46:52 +00:00
// 获取安全告知
2022-12-21 08:26:21 +00:00
getSafetyBulletin: function getSafetyBulletin() {
2023-01-16 07:10:35 +00:00
var _this5 = this;
if (!this.readSafeNotice) {
2022-11-15 10:03:13 +00:00
this.$requst.get('/api/v1/index/safe-notice').then(function (res) {
if (res.code == 0) {
console.log(res, '安全告知');
2023-01-16 07:10:35 +00:00
_this5.safetyBulletin = res.data.content;
2022-11-15 10:03:13 +00:00
}
});
2022-11-28 06:26:17 +00:00
} else {
// 查询是否有通知
this.getNoticeInfo();
2022-11-15 10:03:13 +00:00
}
},
// 关闭安全告知
2022-11-15 10:03:13 +00:00
closeSafetyBulletin: function closeSafetyBulletin() {
this.isRead = true;
// 缓存是否已读
uni.setStorageSync('readSafeNotice', true);
// 查询是否有通知
this.getNoticeInfo();
},
// 查询是否有通知
getNoticeInfo: function getNoticeInfo() {
2023-01-16 07:10:35 +00:00
var _this6 = this;
this.$requst.get('/api/v1/common/notice').then(function (res) {
if (res.code == 0) {
console.log(res, '通知消息');
if (res.data.notice == 1) {
2023-01-16 07:10:35 +00:00
_this6.isNotice = true;
_this6.noticeInfo = res.data;
} else {
// 获取公告
2023-01-16 07:10:35 +00:00
_this6.getNotice();
}
}
});
},
// 关闭通知
closeEdit: function closeEdit() {
this.isNotice = false;
// 获取公告
this.getNotice();
},
// 修改审核资料
editEv: function editEv() {
this.isNotice = false;
// 显示注册表
this.ifRegister = true;
// 查询审核资料
this.getCheckDetail();
},
// 获取公告
getNotice: function getNotice() {
2023-01-16 07:10:35 +00:00
var _this7 = this;
this.$requst.get('/api/v1/index/notice').then(function (res) {
if (res.code == 0) {
console.log(res, '公告');
if (res.data.status == 1) {
if (uni.getStorageSync('noticeVersion') !== res.data.version) {
2023-01-16 07:10:35 +00:00
_this7.ifNotice = true;
uni.setStorageSync('noticeVersion', res.data.version);
2023-01-16 07:10:35 +00:00
_this7.notice = res.data.content;
} else {
// 获取工地公告
2023-01-16 07:10:35 +00:00
_this7.getWorksiteNotice();
}
} else {
// 获取工地公告
2023-01-16 07:10:35 +00:00
_this7.getWorksiteNotice();
}
}
});
},
// 关闭公告||安全公告
closeNotice: function closeNotice() {
if (!this.ifWsNotice) {
this.ifNotice = false;
// 获取工地公告
this.getWorksiteNotice();
2022-11-23 08:46:52 +00:00
} else {
this.ifWsNotice = false;
2022-11-23 08:46:52 +00:00
}
2022-11-15 10:03:13 +00:00
},
// 获取工地公告
getWorksiteNotice: function getWorksiteNotice() {
2023-01-16 07:10:35 +00:00
var _this8 = this;
this.$requst.get('/api/v1/index/worksite-notice', {
worksite_id: this.registerObj.worksite_id
}).then(function (res) {
if (res.code == 0) {
console.log(res, '工地公告');
2023-01-16 07:10:35 +00:00
if (res.data !== null && res.data.status == 1) {
if (uni.getStorageSync('wsNoticeVersion') !== res.data.version) {
2023-01-16 07:10:35 +00:00
_this8.ifWsNotice = true;
uni.setStorageSync('wsNoticeVersion', res.data.version);
2023-01-16 07:10:35 +00:00
_this8.wsNotice = res.data.content;
}
}
}
});
},
// 查询审核资料
getCheckDetail: function getCheckDetail() {
2023-01-16 07:10:35 +00:00
var _this9 = this;
this.$requst.get('/api/v1/worker/check-detail', {
id: this.noticeInfo.id
}).then(function (res) {
if (res.code == 0) {
console.log(res, '审核资料');
2023-01-16 07:10:35 +00:00
_this9.registerObj = res.data;
_this9.positionIndex = _this9.positionList.findIndex(function (item) {
return item.id === res.data.position;
});
2023-01-16 07:10:35 +00:00
_this9.registerObj.pay = parseFloat(res.data.pay);
}
});
},
2022-11-15 10:03:13 +00:00
// 获取技术岗位
2022-12-21 08:26:21 +00:00
getPositionList: function getPositionList() {
2023-01-16 07:10:35 +00:00
var _this10 = 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, '技术岗位');
2023-01-16 07:10:35 +00:00
_this10.positionList = res.data.list;
_this10.registerObj.position = res.data.list[_this10.positionIndex].id;
if (_this10.noticeInfo.notice == 1) {
2022-11-24 06:05:03 +00:00
// 查询审核资料
2023-01-16 07:10:35 +00:00
_this10.getCheckDetail();
2022-11-24 06:05:03 +00:00
}
2022-11-15 10:03:13 +00:00
}
});
},
2023-02-16 08:19:34 +00:00
// 获取班组
getTeamList: function getTeamList() {
var _this11 = this;
var worksite_id = uni.getStorageSync('worksite_id');
this.$requst.get('/api/v1/common/team', {
worksite_id: worksite_id
}).then(function (res) {
if (res.code == 0) {
console.log(res, '班组');
_this11.teamList = res.data;
_this11.registerObj.outsource_id = res.data[_this11.teamIndex].id;
if (_this11.noticeInfo.notice == 1) {
// 查询审核资料
_this11.getCheckDetail();
}
}
});
},
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;
},
2023-02-16 08:19:34 +00:00
//选择班组
choiceTeam: function choiceTeam(e) {
this.teamIndex = e.detail.value;
this.registerObj.outsource_id = this.teamList[e.detail.value].id;
},
2022-11-15 10:03:13 +00:00
// 提交注册信息
2022-12-21 08:26:21 +00:00
submitRegister: function submitRegister() {
2023-02-16 08:19:34 +00:00
var _this12 = this;
2022-11-15 10:03:13 +00:00
if (this.checkEmpty() && this.flag) {
this.flag = false;
var params = this.registerObj;
2023-02-16 08:19:34 +00:00
console.log(params);
2022-11-15 10:03:13 +00:00
this.$requst.post('/api/v1/worker/register', params).then(function (res) {
if (res.code == 0) {
2023-02-16 08:19:34 +00:00
_this12.$toolAll.tools.showToast('提交成功');
// 隐藏注册表
2023-02-16 08:19:34 +00:00
_this12.ifRegister = false;
2022-11-15 10:03:13 +00:00
setTimeout(function () {
2023-02-16 08:19:34 +00:00
_this12.flag = true;
2022-11-15 10:03:13 +00:00
}, 2000);
} else {
2023-02-16 08:19:34 +00:00
_this12.$toolAll.tools.showToast(res.msg);
2022-11-15 10:03:13 +00:00
setTimeout(function () {
2023-02-16 08:19:34 +00:00
_this12.flag = true;
2022-11-15 10:03:13 +00:00
}, 2000);
}
});
}
},
// 取消注册
cancelRegister: function cancelRegister() {
// 隐藏注册表
uni.navigateBack({
delta: 1,
// 返回的页面数
fail: function fail() {
uni.reLaunch({
url: '/pages/pagehome/pagehome'
});
}
});
},
2022-11-15 10:03:13 +00:00
// 验证电话号
checkEmpty: function checkEmpty() {
var result = false;
if (this.$toolAll.tools.isPhone(this.registerObj.mobile)) {
this.$toolAll.tools.showToast('请正确填写电话号码');
} else {
result = true;
}
return result;
},
// 获取打卡信息
2022-12-21 08:26:21 +00:00
getSignInfo: function getSignInfo() {
2023-02-16 08:19:34 +00:00
var _this13 = 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, '打卡信息');
// 获取日期
2023-02-16 08:19:34 +00:00
_this13.currentDate = res.data.info.today;
2022-11-15 10:03:13 +00:00
// 获取星期几
2023-02-16 08:19:34 +00:00
_this13.currentWeek = res.data.info.week;
2022-11-15 10:03:13 +00:00
// 获取当前时间
2023-02-16 08:19:34 +00:00
_this13.currenTime = res.data.info.now;
2022-11-15 10:03:13 +00:00
// 服务端时间处理
2023-02-16 08:19:34 +00:00
_this13.setIntervalEv();
2022-11-22 05:47:31 +00:00
}
});
},
// 服务端时间处理
2022-12-21 08:26:21 +00:00
setIntervalEv: function setIntervalEv() {
2023-02-16 08:19:34 +00:00
var _this14 = this;
2022-11-22 05:47:31 +00:00
// 改变计时器状态
this.timer = true;
if (this.timer) {
setInterval(function () {
2023-02-16 08:19:34 +00:00
var nowArr = _this14.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
}
2023-02-16 08:19:34 +00:00
_this14.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-12-21 08:26:21 +00:00
getSignList: function getSignList() {
2023-02-16 08:19:34 +00:00
var _this15 = this;
2023-01-15 07:31:11 +00:00
var params = {};
if (uni.getStorageSync('worksite_id')) {
params = {
worksite_id: uni.getStorageSync('worker_role') !== 0 ? uni.getStorageSync('worksite_id') : 0
};
}
this.$requst.get('/api/v1/user/sign-today', params).then(function (res) {
2022-11-22 05:47:31 +00:00
if (res.code == 0) {
console.log(res, '打卡记录');
// 获取打卡状态
2023-02-16 08:19:34 +00:00
_this15.buttonColor = res.data.buttonColor;
2022-11-15 10:03:13 +00:00
// 获取打卡记录列表
2023-02-16 08:19:34 +00:00
_this15.signList = res.data.list;
2022-11-15 10:03:13 +00:00
}
});
},
2022-11-22 05:47:31 +00:00
// 唤起打卡弹窗
showRadioEv: function showRadioEv() {
if (this.userInfo.role !== 0) {
2023-01-15 07:31:11 +00:00
if (this.signList.length < 4) {
if (this.siteInfo.name) {
this.showRadio = true;
this.radioIndex = 0;
} else {
this.$toolAll.tools.showToast('不在打卡范围内');
}
2022-11-23 08:46:52 +00:00
} else {
2023-01-15 07:31:11 +00:00
this.$toolAll.tools.showToast('今日打卡已完成');
2022-11-23 08:46:52 +00:00
}
2022-11-15 10:03:13 +00:00
} else {
this.showRadio = true;
this.radioIndex = 0;
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-12-21 08:26:21 +00:00
signEv: function signEv() {
2023-02-16 08:19:34 +00:00
var _this16 = 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,
2022-12-21 08:26:21 +00:00
worksite_id: this.siteInfo.id
};
this.$requst.post('/api/v1/user/sign', params).then(function (res) {
2022-11-15 10:03:13 +00:00
if (res.code == 0) {
2023-02-16 08:19:34 +00:00
_this16.showRadio = false;
2022-11-22 05:47:31 +00:00
// 获取打卡记录
2023-02-16 08:19:34 +00:00
_this16.getSignList();
// 获取状态列表
2023-02-16 08:19:34 +00:00
_this16.$refs.signCalendar.getStatusObj();
2022-11-15 10:03:13 +00:00
} else {
2023-02-16 08:19:34 +00:00
_this16.$toolAll.tools.showToast(res.msg);
2022-11-15 10:03:13 +00:00
}
});
},
// 选择图片
2022-12-21 08:26:21 +00:00
changeImg: function changeImg(type) {
2023-02-16 08:19:34 +00:00
var _this17 = this;
uni.chooseImage({
2022-12-21 08:26:21 +00:00
count: 1,
//默认9
sourceType: ['album', 'camera'],
//从相册选择
success: function success(res) {
2023-02-16 08:19:34 +00:00
_this17.stagingImg = res.tempFilePaths[0];
// 上传图片
2023-02-16 08:19:34 +00:00
_this17.uploadImg(type);
2022-12-21 08:26:21 +00:00
}
});
},
// 上传图片
2022-12-21 08:26:21 +00:00
uploadImg: function uploadImg(type) {
2023-02-16 08:19:34 +00:00
var _this18 = this;
uni.showLoading({
2022-12-21 08:26:21 +00:00
title: '上传中'
});
this.$requst.upload('/api/v1/file/upload/image', {
path: this.stagingImg
}).then(function (res) {
if (res.code == 0) {
if (type == 'positive') {
2023-02-16 08:19:34 +00:00
_this18.registerObj.id_front = res.data.src;
}
if (type == 'back') {
2023-02-16 08:19:34 +00:00
_this18.registerObj.id_back = res.data.src;
}
if (type == 'bank') {
2023-02-16 08:19:34 +00:00
_this18.registerObj.bank_card_img = res.data.src;
}
}
uni.hideLoading();
});
},
// 删除图片
delImg: function delImg(index, type) {
if (type == 'positive') {
this.registerObj.id_front = '';
}
if (type == 'back') {
this.registerObj.id_back = '';
}
if (type == 'bank') {
this.registerObj.bank_card_img = '';
}
2022-12-08 10:07:45 +00:00
},
2023-01-14 03:15:59 +00:00
// 获取选择日期
getDate: function getDate(date) {
uni.navigateTo({
url: "/pagesA/signRecord/signRecord?date=".concat(date, "&userType=").concat(this.userType)
});
},
2022-12-08 10:07:45 +00:00
// 预览图片
previewImage: function previewImage(url) {
var urlArr = [url];
uni.previewImage({
2022-12-21 08:26:21 +00:00
current: 1,
//预览图片的下标
2022-12-08 10:07:45 +00:00
urls: urlArr //预览图片的地址,必须要数组形式,如果不是数组形式就转换成数组形式就可以
});
2022-12-21 08:26:21 +00:00
}
}
};
exports.default = _default;
2023-01-14 03:15:59 +00:00
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"]))
2022-11-15 10:03:13 +00:00
2023-02-16 08:19:34 +00:00
/***/ }),
/***/ 51:
/*!********************************************************************************************************************!*\
!*** C:/wwwroot/building-sign/pages/worker/sign/sign.vue?vue&type=style&index=0&id=4844bef7&scoped=true&lang=css& ***!
\********************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_style_index_0_id_4844bef7_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--6-oneOf-1-2!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src??ref--6-oneOf-1-3!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./sign.vue?vue&type=style&index=0&id=4844bef7&scoped=true&lang=css& */ 52);
/* harmony import */ var _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_style_index_0_id_4844bef7_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_style_index_0_id_4844bef7_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_style_index_0_id_4844bef7_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_style_index_0_id_4844bef7_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_loaders_stylePostLoader_js_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_webpack_preprocess_loader_index_js_ref_6_oneOf_1_2_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_3_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_index_js_vue_loader_options_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_webpack_uni_mp_loader_lib_style_js_sign_vue_vue_type_style_index_0_id_4844bef7_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ 52:
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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!C:/wwwroot/building-sign/pages/worker/sign/sign.vue?vue&type=style&index=0&id=4844bef7&scoped=true&lang=css& ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// extracted by mini-css-extract-plugin
if(false) { var cssReload; }
2022-11-15 10:03:13 +00:00
/***/ })
2023-01-14 03:15:59 +00:00
},[[45,"common/runtime","common/vendor"]]]);
2022-11-15 10:03:13 +00:00
//# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/worker/sign/sign.js.map