building-sign/unpackage/dist/dev/mp-weixin/pagesA/information/information.js

389 lines
25 KiB
JavaScript
Raw Normal View History

2022-11-16 10:20:26 +00:00
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["pagesA/information/information"],{
2022-11-17 11:40:25 +00:00
/***/ 72:
2022-11-28 06:26:17 +00:00
/*!******************************************************************************************!*\
!*** D:/Lee//building-sign/main.js?{"page":"pagesA%2Finformation%2Finformation"} ***!
\******************************************************************************************/
2022-11-17 11:40:25 +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 _information = _interopRequireDefault(__webpack_require__(/*! ./pagesA/information/information.vue */ 73));function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { default: obj };} // @ts-ignore
wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;createPage(_information.default);
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["createPage"]))
/***/ }),
/***/ 73:
2022-11-28 06:26:17 +00:00
/*!***********************************************************************!*\
!*** D:/Lee//building-sign/pagesA/information/information.vue ***!
\***********************************************************************/
2022-11-17 11:40:25 +00:00
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _information_vue_vue_type_template_id_dfef6176_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./information.vue?vue&type=template&id=dfef6176&scoped=true& */ 74);
/* harmony import */ var _information_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./information.vue?vue&type=script&lang=js& */ 76);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _information_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 _information_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-17 11:40:25 +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-17 11:40:25 +00:00
_information_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_information_vue_vue_type_template_id_dfef6176_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
_information_vue_vue_type_template_id_dfef6176_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
"dfef6176",
null,
false,
_information_vue_vue_type_template_id_dfef6176_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"],
renderjs
)
component.options.__file = "pagesA/information/information.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 74:
2022-11-28 06:26:17 +00:00
/*!******************************************************************************************************************!*\
!*** D:/Lee//building-sign/pagesA/information/information.vue?vue&type=template&id=dfef6176&scoped=true& ***!
\******************************************************************************************************************/
2022-11-17 11:40:25 +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_information_vue_vue_type_template_id_dfef6176_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!./information.vue?vue&type=template&id=dfef6176&scoped=true& */ 75);
/* 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_information_vue_vue_type_template_id_dfef6176_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
2022-11-17 11:40:25 +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_information_vue_vue_type_template_id_dfef6176_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
2022-11-17 11:40:25 +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_information_vue_vue_type_template_id_dfef6176_scoped_true___WEBPACK_IMPORTED_MODULE_0__["recyclableRender"]; });
2022-11-17 11:40:25 +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_information_vue_vue_type_template_id_dfef6176_scoped_true___WEBPACK_IMPORTED_MODULE_0__["components"]; });
2022-11-17 11:40:25 +00:00
/***/ }),
/***/ 75:
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/pagesA/information/information.vue?vue&type=template&id=dfef6176&scoped=true& ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
2022-11-16 10:20:26 +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-16 10:20:26 +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-16 10:20:26 +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 recyclableRender = false
var staticRenderFns = []
render._withStripped = true
/***/ }),
2022-11-17 11:40:25 +00:00
/***/ 76:
2022-11-28 06:26:17 +00:00
/*!************************************************************************************************!*\
!*** D:/Lee//building-sign/pagesA/information/information.vue?vue&type=script&lang=js& ***!
\************************************************************************************************/
2022-11-16 10:20:26 +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_information_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!./information.vue?vue&type=script&lang=js& */ 77);
/* 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_information_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_information_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_information_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_information_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_information_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0___default.a);
2022-11-16 10:20:26 +00:00
/***/ }),
2022-11-17 11:40:25 +00:00
/***/ 77:
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/pagesA/information/information.vue?vue&type=script&lang=js& ***!
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
2022-11-16 10:20:26 +00:00
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
2022-11-18 10:33:37 +00:00
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;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-17 11:40:25 +00:00
2022-11-16 10:20:26 +00:00
2022-11-24 06:05:03 +00:00
2022-11-16 10:20:26 +00:00
{
components: {
tabbar: tabbar },
data: function data() {
return {
statusHeight: uni.getSystemInfoSync().statusBarHeight, //状态栏高度
userType: 'worker', //账户类型 工人worker 负责人director
userInfo: {}, //用户信息
editTitle: '', //修改标题
editMsg: '', //修改内容
field: '', //修改栏目
2022-11-17 11:40:25 +00:00
positionList: [], //技术岗位
positionIndex: 0, //当前选择
2022-11-16 10:20:26 +00:00
ifShow: false, //是否展示弹窗
isLoding: false //是否记载完成
};
},
onLoad: function onLoad() {
// 获取用户信息
this.getUserInfo();
2022-11-17 11:40:25 +00:00
// 获取技术岗位
this.getPositionList();
2022-11-16 10:20:26 +00:00
},
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-16 10:20:26 +00:00
methods: {
// 获取用户信息
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;
_this.isLoding = true;
}
});
},
2022-11-17 11:40:25 +00:00
// 获取技术岗位
getPositionList: function getPositionList() {var _this2 = this;
this.$requst.get('/api/v1/common/position-list').then(function (res) {
if (res.code == 0) {
console.log(res, '技术岗位');
_this2.positionList = res.data.list;
}
});
},
// 选择技术岗位
bindPositionChange: function bindPositionChange(e) {
this.positionIndex = e.detail.value;
},
2022-11-16 10:20:26 +00:00
// 打开修改弹窗
2022-11-17 11:40:25 +00:00
editEv: function editEv(num, type) {var _this3 = this;
2022-11-16 10:20:26 +00:00
this.ifShow = true;
this.field = type;
switch (num) {
case 0:
this.editTitle = '昵称';
2022-11-17 11:40:25 +00:00
this.editMsg = this.userInfo.nickname;
2022-11-16 10:20:26 +00:00
break;
case 1:
this.editTitle = '技术岗位';
2022-11-17 11:40:25 +00:00
this.positionIndex = this.positionList.findIndex(function (item) {return item.id === _this3.userInfo.position;});
2022-11-16 10:20:26 +00:00
break;
case 2:
this.editTitle = '工资';
2022-11-17 11:40:25 +00:00
this.editMsg = this.userInfo.pay;
2022-11-16 10:20:26 +00:00
break;
case 3:
this.editTitle = '姓名';
2022-11-17 11:40:25 +00:00
this.editMsg = this.userInfo.real_name;
2022-11-16 10:20:26 +00:00
break;
case 4:
this.editTitle = '电话号码';
2022-11-17 11:40:25 +00:00
this.editMsg = this.userInfo.mobile;
2022-11-16 10:20:26 +00:00
break;
case 5:
this.editTitle = '紧急联系人';
2022-11-17 11:40:25 +00:00
this.editMsg = this.userInfo.emergency_contact;
2022-11-16 10:20:26 +00:00
break;
case 6:
this.editTitle = '联系人电话';
2022-11-17 11:40:25 +00:00
this.editMsg = this.userInfo.emergency_phone;
2022-11-16 10:20:26 +00:00
break;
case 7:
this.editTitle = '银行卡姓名';
2022-11-17 11:40:25 +00:00
this.editMsg = this.userInfo.bank_card_name;
2022-11-16 10:20:26 +00:00
break;
case 8:
this.editTitle = '银行卡账号';
2022-11-17 11:40:25 +00:00
this.editMsg = this.userInfo.bank_card_number;
2022-11-16 10:20:26 +00:00
break;
case 9:
this.editTitle = '开户行';
2022-11-17 11:40:25 +00:00
this.editMsg = this.userInfo.bank_name;
2022-11-16 10:20:26 +00:00
break;}
},
// 关闭修改弹窗
closeEdit: function closeEdit() {
this.ifShow = false;
this.editTitle = '';
this.field = '';
2022-11-17 11:40:25 +00:00
this.editMsg = '';
},
2022-11-16 10:20:26 +00:00
2022-11-17 11:40:25 +00:00
// 提交修改
submitEv: function submitEv() {var _this4 = this;
var params = {
field: this.field,
value: this.editMsg !== "" ? this.editMsg : this.positionList[this.positionIndex].id };
2022-11-16 10:20:26 +00:00
2022-11-17 11:40:25 +00:00
this.$requst.post('/api/v1/worker/update-info', params).then(function (res) {
if (res.code == 0) {
_this4.$toolAll.tools.showToast('提交成功');
setTimeout(function () {
_this4.ifShow = false;
// 获取用户信息
_this4.getUserInfo();
}, 200);
} else {
_this4.$toolAll.tools.showToast(res.msg);
}
});
} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
2022-11-16 10:20:26 +00:00
/***/ })
2022-11-17 11:40:25 +00:00
},[[72,"common/runtime","common/vendor"]]]);
2022-11-16 10:20:26 +00:00
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pagesA/information/information.js.map