12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/menus/menu/menu"],{227:function(n,e,t){"use strict";(function(n,e){var o=t(4);t(26);o(t(25));var u=o(t(228));n.__webpack_require_UNI_MP_PLUGIN__=t,e(u.default)}).call(this,t(1)["default"],t(2)["createPage"])},228:function(n,e,t){"use strict";t.r(e);var o=t(229),u=t(232);for(var i in u)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return u[n]}))}(i);t(234);var r,s=t(37),a=Object(s["default"])(u["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],r);a.options.__file="pages/menus/menu/menu.vue",e["default"]=a.exports},229:function(n,e,t){"use strict";t.r(e);var o=t(230);t.d(e,"render",(function(){return o["render"]})),t.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(e,"components",(function(){return o["components"]}))},230:function(n,e,t){"use strict";var o;t.r(e),t.d(e,"render",(function(){return u})),t.d(e,"staticRenderFns",(function(){return r})),t.d(e,"recyclableRender",(function(){return i})),t.d(e,"components",(function(){return o}));try{o={uAvatar:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-avatar/u-avatar")]).then(t.bind(null,394))},uList:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-list/u-list")]).then(t.bind(null,314))},uListItem:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-list-item/u-list-item")]).then(t.bind(null,322))},uBadge:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-badge/u-badge")]).then(t.bind(null,402))},uPopup:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(t.bind(null,378))},"u-Input":function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u--input/u--input")]).then(t.bind(null,293))},uButton:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-button/u-button")]).then(t.bind(null,361))},uToast:function(){return t.e("node-modules/uview-ui/components/u-toast/u-toast").then(t.bind(null,299))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var u=function(){var n=this,e=n.$createElement,o=(n._self._c,t(231));n.$mp.data=Object.assign({},{$root:{m0:o}})},i=!1,r=[];u._withStripped=!0},232:function(n,e,t){"use strict";t.r(e);var o=t(233),u=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=u.a},233:function(n,e,t){"use strict";(function(n,o){var u=t(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=u(t(189)),r=t(171),s=t(188),a={data:function(){return{src:"https://tupian.qqw21.com/article/UploadPic/2021-1/20211722215735941.jpg",name:"",amount:null,role:"",show:!1,userName:"",password:""}},methods:{close:function(){this.show=!1},showPopup:function(){this.show=!0,this.userName="",this.password=""},resetPassword:function(){var e=this;""!==this.userName.trim()&&""!==this.password.trim()?(0,s.resetPwd)(this.userName,this.password).then((function(t){200===t.data.code&&"操作成功"===t.data.msg&&n.showToast({icon:"success",title:"重置成功",duration:1e3,success:function(){e.show=!1}})})):n.showToast({icon:"error",title:"请输入工号"})},toPersonInfo:function(){n.navigateTo({url:"/pages/menus/mine/mine"})},toBorrowRecord:function(){n.switchTab({url:"/pages/menus/borrow-record/borrow-record"})},init:function(){var n=this;(0,r.sumBorrow)(0).then((function(e){n.amount=e}))},toRepeat:function(){n.scanCode({scanType:["barCode"],success:function(e){n.navigateTo({url:"/pages/fault/fault-report/fault-report?id="+e.result})}})},toHandleFault:function(){n.navigateTo({url:"/pages/fault/fault-list/fault-list"})},toLogout:function(){o.showModal({title:"系统提示",content:"是否确认退出登录?",success:function(e){if(n.showLoading({title:"正在退出登录中",icon:"none",mask:!0}),e.confirm)try{(0,s.logout)().then((function(e){200===e.data.code&&"退出成功"===e.data.msg&&(n.hideLoading(),n.switchTab({url:"/pages/home/home"}))}))}catch(t){n.hideLoading()}else e.cancel&&(n.hideLoading(),console.log("用户点击取消"))}})}},onLoad:function(){this.init()},onShow:function(){this.init(),this.name=i.default.session.getJSON("nickName"),this.role=i.default.session.getJSON("role")}};e.default=a}).call(this,t(2)["default"],t(1)["default"])},234:function(n,e,t){"use strict";t.r(e);var o=t(235),u=t.n(o);for(var i in o)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(i);e["default"]=u.a},235:function(n,e,t){}},[[227,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/menus/menu/menu.js.map
|