(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/signRecord/signRecord"],{

/***/ 101:
/*!************************************************************************************!*\
  !*** C:/wwwroot/building-sign/main.js?{"page":"pagesA%2FsignRecord%2FsignRecord"} ***!
  \************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function(wx, createPage) {

var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ 4);
__webpack_require__(/*! uni-pages */ 26);
var _vue = _interopRequireDefault(__webpack_require__(/*! vue */ 25));
var _signRecord = _interopRequireDefault(__webpack_require__(/*! ./pagesA/signRecord/signRecord.vue */ 102));
// @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;
createPage(_signRecord.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/wx.js */ 1)["default"], __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["createPage"]))

/***/ }),

/***/ 102:
/*!*****************************************************************!*\
  !*** C:/wwwroot/building-sign/pagesA/signRecord/signRecord.vue ***!
  \*****************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./signRecord.vue?vue&type=template&id=11e99daa&scoped=true& */ 103);
/* harmony import */ var _signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./signRecord.vue?vue&type=script&lang=js& */ 105);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _signRecord_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 _signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* 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_2__ = __webpack_require__(/*! ../../../../WEB/Idea/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */ 32);

var renderjs




/* normalize component */

var component = Object(_WEB_Idea_HBuilderX_plugins_uniapp_cli_node_modules_dcloudio_vue_cli_plugin_uni_packages_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
  _signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
  _signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
  _signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
  false,
  null,
  "11e99daa",
  null,
  false,
  _signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
  renderjs
)

component.options.__file = "pagesA/signRecord/signRecord.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

/***/ 103:
/*!************************************************************************************************************!*\
  !*** C:/wwwroot/building-sign/pagesA/signRecord/signRecord.vue?vue&type=template&id=11e99daa&scoped=true& ***!
  \************************************************************************************************************/
/*! exports provided: render, staticRenderFns, recyclableRender, components */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* 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_signRecord_vue_vue_type_template_id_11e99daa_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!./signRecord.vue?vue&type=template&id=11e99daa&scoped=true& */ 104);
/* 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_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });

/* 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_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });

/* 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_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });

/* 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_signRecord_vue_vue_type_template_id_11e99daa_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });



/***/ }),

/***/ 104:
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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/pagesA/signRecord/signRecord.vue?vue&type=template&id=11e99daa&scoped=true& ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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 () {
      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))
    },
    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 */ 187))
    },
    tabbar: function () {
      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))
    },
  }
} catch (e) {
  if (
    e.message.indexOf("Cannot find module") !== -1 &&
    e.message.indexOf(".vue") !== -1
  ) {
    console.error(e.message)
    console.error("1. 排查组件名称拼写是否正确")
    console.error(
      "2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"
    )
    console.error(
      "3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件"
    )
  } else {
    throw e
  }
}
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  var g0 = _vm.curDate.substr(0, 4)
  var g1 = _vm.curDate.substr(5, 2)
  var g2 = _vm.curDate.substr(8, 2)
  var l0 = _vm.__map(_vm.signList, function (item, index) {
    var $orig = _vm.__get_orig(item)
    var g3 = !(item.is_replenish == 1)
      ? item.created_at.substr(item.created_at.length - 8)
      : null
    return {
      $orig: $orig,
      g3: g3,
    }
  })
  var g4 = _vm.signList.length
  if (!_vm._isMounted) {
    _vm.e0 = function ($event) {
      _vm.showCard = true
    }
    _vm.e1 = function ($event) {
      ;(_vm.showCard = false), (_vm.radioIndex = 0)
    }
  }
  _vm.$mp.data = Object.assign(
    {},
    {
      $root: {
        g0: g0,
        g1: g1,
        g2: g2,
        l0: l0,
        g4: g4,
      },
    }
  )
}
var recyclableRender = false
var staticRenderFns = []
render._withStripped = true



/***/ }),

/***/ 105:
/*!******************************************************************************************!*\
  !*** C:/wwwroot/building-sign/pagesA/signRecord/signRecord.vue?vue&type=script&lang=js& ***!
  \******************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _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_signRecord_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!./signRecord.vue?vue&type=script&lang=js& */ 106);
/* 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_signRecord_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_signRecord_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_signRecord_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_signRecord_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_signRecord_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

/***/ 106:
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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/pagesA/signRecord/signRecord.vue?vue&type=script&lang=js& ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* 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 */ 187));
  }).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 */ 194));
  }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
};
var _default = {
  components: {
    signCalendar: signCalendar,
    tabbar: tabbar
  },
  data: function data() {
    return {
      statusHeight: uni.getSystemInfoSync().statusBarHeight,
      //状态栏高度
      userType: '',
      //账户类型 工人：worker 负责人：director
      signList: [],
      //打卡列表
      radioList: [{
        title: '上午上班',
        type: 'morning_on'
      }, {
        title: '上午下班',
        type: 'morning_off'
      }, {
        title: '下午上班',
        type: 'afternoon_on'
      }, {
        title: '下午下班',
        type: 'afternoon_off'
      }],
      //打卡类型
      radioIndex: 0,
      //当前选择
      curDate: '',
      //当前日期
      page: 1,
      size: 10,
      total: 0,
      worksiteList: [],
      //工地列表
      worksiteIndex: -1,
      //当前选择
      showCard: false,
      //是否显示补卡
      ifShow: uni.getStorageSync('worker_role') == 1 ? true : false,
      daysIndex: new Date().getDate()
    };
  },
  onLoad: function onLoad(op) {
    var _this = this;
    if (op.userType) {
      this.userType = op.userType;
    }
    if (op.date) {
      // 获取选择日期
      this.curDate = op.date;
      this.daysIndex = parseInt(op.date.substr(op.date.length - 2));
    } else {
      var year = new Date().getFullYear();
      var month = new Date().getMonth() + 1;
      var day = new Date().getDate();
      this.curDate = "".concat(year, "-").concat(month < 10 ? '0' + month : month, "-").concat(day < 10 ? '0' + day : day);
    }
    // 获取工地列表
    this.getWorksiteList();
    setTimeout(function () {
      // 获取打卡列表
      _this.getSignList();
    }, 200);
  },
  onShow: function onShow() {},
  onReachBottom: function onReachBottom() {
    if (this.signList.length < this.total) {
      this.page++;
      // 获取打卡列表
      this.getSignList();
    }
  },
  onPullDownRefresh: function onPullDownRefresh() {
    this.page = 1;
    // 获取打卡列表
    this.getSignList();
    // 关闭下拉刷新
    uni.stopPullDownRefresh();
  },
  methods: {
    // 获取工地列表
    getWorksiteList: function getWorksiteList() {
      var _this2 = this;
      this.$requst.get('/api/v1/common/worksite-list').then(function (res) {
        if (res.code == 0) {
          _this2.worksiteList = res.data.list;
          if (uni.getStorageSync('worksite_id')) {
            _this2.worksiteIndex = _this2.worksiteList.findIndex(function (item) {
              return item.id === uni.getStorageSync('worksite_id');
            });
          } else if (uni.getStorageSync('baseWorksiteId') !== 0) {
            _this2.worksiteIndex = _this2.worksiteList.findIndex(function (item) {
              return item.id === uni.getStorageSync('baseWorksiteId');
            });
          } else {
            _this2.worksiteIndex = -1;
          }
          _this2.isLoding = true;
        }
      });
    },
    // 改变上下班打卡
    changeSignType: function changeSignType(index) {
      if (this.radioIndex !== index) {
        this.radioIndex = index;
      }
    },
    // 获取选择时间
    getDate: function getDate(date) {
      if (date !== this.curDate) {
        this.curDate = date;
        this.daysIndex = parseInt(date.substr(date.length - 2));
        // 获取打卡列表
        this.getSignList();
      }
    },
    // 确认补卡
    submitEv: function submitEv() {
      var _this3 = this;
      var params = {
        day: this.curDate,
        worksite_id: this.worksiteIndex !== -1 ? this.worksiteList[this.worksiteIndex].id : 0,
        type: this.radioList[this.radioIndex].type
      };
      this.$requst.post('/api/v1/user/replenish', params).then(function (res) {
        if (res.code == 0) {
          _this3.$toolAll.tools.showToast('补卡成功');
          _this3.showCard = false;
          // 获取状态列表
          _this3.$refs.signCalendar.getStatusObj(_this3.worksiteList[_this3.worksiteIndex].id);
        } else {
          _this3.$toolAll.tools.showToast(res.msg);
        }
      });
    },
    // 获取打卡列表
    getSignList: function getSignList() {
      var _this4 = this;
      var params = {};
      if (uni.getStorageSync('worker_role') == 0) {
        params = {
          day: this.curDate,
          worksite_id: 0
        };
      } else {
        params = {
          day: this.curDate,
          worksite_id: this.worksiteIndex !== -1 ? this.worksiteList[this.worksiteIndex].id : 0
        };
      }
      this.$requst.get('/api/v1/user/sign-today', params).then(function (res) {
        if (res.code == 0) {
          console.log(res, '打卡记录');
          // 获取打卡状态
          _this4.buttonColor = res.data.buttonColor;
          // 获取打卡记录列表
          _this4.signList = res.data.list;
        }
      });
    },
    // 选择工地
    bindWorksiteChange: function bindWorksiteChange(e) {
      this.worksiteIndex = e.detail.value;
      this.page = 1;
      // 获取打卡列表
      this.getSignList();
      // 获取状态列表
      this.$refs.signCalendar.getStatusObj(this.worksiteList[this.worksiteIndex].id);
    }
  }
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))

/***/ })

},[[101,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/signRecord/signRecord.js.map