Files
PropertyDeployment/resources/Web/PropertyApp/html/static/js/pages-my-my.45c00801.js
2025-12-09 20:22:03 +08:00

1 line
11 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-my"],{"038f":function(t,a,e){var n=e("56cd");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("967d").default;i("0adba91c",n,!0,{sourceMap:!1,shadowMode:!1})},"13fa":function(t,a,e){"use strict";e.r(a);var n=e("2122"),i=e("1c60");for(var s in i)["default"].indexOf(s)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(s);e("166d");var o=e("828b"),c=Object(o["a"])(i["default"],n["b"],n["c"],!1,null,"26033d20",null,!1,n["a"],void 0);a["default"]=c.exports},"166d":function(t,a,e){"use strict";var n=e("038f"),i=e.n(n);i.a},"1c60":function(t,a,e){"use strict";e.r(a);var n=e("2ef9"),i=e.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(s);a["default"]=i.a},2122:function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){}));var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",[e("v-uni-view",{staticClass:"user-container bg-white flex flex-direction align-center"},[e("v-uni-view",{staticClass:"cu-avatar xl round margin-left lage-avatar",style:"background-image:url("+t.staffInfo.img+");"}),e("v-uni-view",{staticClass:"margin-top"},[e("v-uni-text",[t._v(t._s(t.staffInfo.name))])],1)],1),e("v-uni-view",{staticClass:"margin-top"},[e("v-uni-view",{staticClass:"cu-list menu"},[e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t._changeCommunity()}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"cuIcon-circlefill text-grey"}),e("v-uni-text",{staticClass:"text-grey"},[t._v(t._s(t.$t("pages.my.my.切换小区")))])],1),e("v-uni-view",{staticClass:"action"},[e("v-uni-text",{staticClass:"text-grey text-sm"},[t._v(t._s(t.currentCommunityName))])],1)],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t._userInfo()}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"lg text-gray cuIcon-friendaddfill"}),e("v-uni-text",{staticClass:"text-grey"},[t._v(t._s(t.$t("pages.my.my.个人信息")))])],1)],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t._repairFinish()}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"lg text-gray cuIcon-order"}),e("v-uni-text",{staticClass:"text-grey"},[t._v(t._s(t.$t("pages.my.my.维修已办")))])],1)],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t._complaintFinish()}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"lg text-gray cuIcon-favor"}),e("v-uni-text",{staticClass:"text-grey"},[t._v(t._s(t.$t("pages.my.my.投诉已办")))])],1)],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t._myAttendance()}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"lg text-gray cuIcon-favor"}),e("v-uni-text",{staticClass:"text-grey"},[t._v(t._s(t.$t("pages.my.my.我的考勤")))])],1)],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t._changePwd()}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"lg text-gray cuIcon-lock"}),e("v-uni-text",{staticClass:"text-grey"},[t._v(t._s(t.$t("pages.my.my.修改密码")))])],1)],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.__togglePopup()}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"lg text-gray cuIcon-global"}),e("v-uni-text",{staticClass:"text-grey"},[t._v(t._s(t.$t("pages.my.my.切换语言")))])],1)],1),e("v-uni-view",{staticClass:"cu-item "},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"lg text-gray cuIcon-warnfill"}),e("v-uni-text",{staticClass:"text-grey"},[t._v(t._s(t.$t("pages.my.my.系统版本")))])],1),e("v-uni-view",{staticClass:"action"},[e("v-uni-text",{staticClass:"text-grey text-sm"},[t._v("V1.0.5")])],1)],1)],1)],1),e("v-uni-view",{staticClass:"margin-top"},[e("v-uni-view",{staticClass:"cu-list menu"},[e("v-uni-view",{staticClass:"cu-item ",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t._logout()}}},[e("v-uni-view",{staticClass:"content text-center"},[e("v-uni-text",{staticClass:"text-red"},[t._v(t._s(t.$t("pages.my.my.退出")))])],1)],1)],1)],1),e("v-uni-view",{staticClass:"cu-modal",class:1==t.logoutUser?"show":""},[e("v-uni-view",{staticClass:"cu-dialog"},[e("v-uni-view",{staticClass:"cu-bar bg-white justify-end"},[e("v-uni-view",{staticClass:"content"},[t._v(t._s(t.$t("pages.my.my.退出系统")))]),e("v-uni-view",{staticClass:"action",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t._cancleLogout()}}},[e("v-uni-text",{staticClass:"cuIcon-close text-red"})],1)],1),e("v-uni-view",{staticClass:"padding-xl"},[t._v(" "+t._s(t.$t("pages.my.my.您确定退出系统吗"))+" ")]),e("v-uni-view",{staticClass:"cu-bar bg-white justify-end"},[e("v-uni-view",{staticClass:"action margin-0 flex-sub solid-left",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t._cancleLogout()}}},[t._v(" "+t._s(t.$t("pages.my.my.取消")))]),e("v-uni-view",{staticClass:"action margin-0 flex-sub text-green solid-left",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t._doLogoutUser()}}},[t._v(" "+t._s(t.$t("pages.my.my.确定"))+" ")])],1)],1)],1),e("v-uni-view",{staticClass:"language-popup"},[t.show?e("v-uni-view",{staticClass:"mask",class:{"mask-visible":t.show},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.__togglePopup.apply(void 0,arguments)}}}):t._e(),e("v-uni-view",{staticClass:"popup",class:{"popup-show":t.show}},[e("v-uni-view",{staticClass:"popup-title"},[t._v(" "+t._s(t.$t("pages.my.my.请选择你的语言")))]),e("v-uni-view",{staticClass:"language-options"},t._l(t.languageOptions,(function(a,n){return e("v-uni-view",{key:n,staticClass:"language-item",class:{active:a.selected,disabled:!a.available},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSelectLanguage(a.code)}}},[t._v(" "+t._s(a.name)+" ")])})),1),e("v-uni-view",{staticClass:"cancel-btn",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.__togglePopup.apply(void 0,arguments)}}},[t._v(" "+t._s(t.$t("pages.my.my.取消")))])],1)],1)],1)},i=[]},"2ef9":function(t,a,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var i=e("7fee"),s=n(e("cfa6")),o=n(e("9494")),c=n(e("d548")),u={data:function(){return{show:!1,staffInfo:{img:"https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg",name:"Anfioo"},currentCommunityName:"",logoutUser:!1,languageOptions:c.default.languageOptions}},onLoad:function(){this.java110Context.onLoad();var t=this.java110Context.getUserInfo();console.log("_userInfo",t),this.staffInfo.name=t.userName,this.staffInfo.img=s.default.baseUrl+"/logo.png"},onShow:function(){var t=(0,i.getCurrentCommunity)();console.log("_communityInfo",t),this.currentCommunityName=t.name},methods:{__togglePopup:function(){this.show=!this.show},handleSelectLanguage:function(t){if(t){this.$i18n.locale=t,uni.setLocale(t);var a=c.default.updateLanguage(t);this.languageOptions=a.languageOptions,console.log("选中的语言code",t),this.__togglePopup()}},_changeCommunity:function(){uni.navigateTo({url:"/pages/changeCommunity/changeCommunity"})},_userInfo:function(){uni.navigateTo({url:"/pages/userInfo/userInfo"})},_repairFinish:function(){uni.navigateTo({url:"/pages/repairDispatchFinish/repairDispatchFinish"})},_complaintFinish:function(){this.context.navigateTo({url:"/pages/complaintFinish/complaintFinish"})},_myAttendance:function(){this.context.navigateTo({url:"/pages/my/staffDetailAttendance"})},_changePwd:function(){uni.navigateTo({url:"/pages/changePwd/changePwd"})},_logout:function(){this.logoutUser=!0},_cancleLogout:function(){this.logoutUser=!1},_doLogoutUser:function(){var t=wx.getStorageSync("token");if(!t||""==t)return uni.clearStorageSync(),void uni.navigateTo({url:"/pages/login/login"});var a={token:t};this.java110Context.request({url:o.default.userLogout,header:this.java110Context.getHeaders(),method:"POST",data:a,success:function(t){200==t.statusCode?(uni.clearStorageSync(),uni.navigateTo({url:"/pages/login/login"})):uni.navigateTo({url:"/pages/login/login"})},fail:function(t){uni.showToast({title:"调用接口失败"}),console.log(t)}})}}};a.default=u},"56cd":function(t,a,e){var n=e("c86c");a=n(!1),a.push([t.i,".user-container[data-v-26033d20]{padding:%?60?% 0 %?40?% 0}.lage-avatar[data-v-26033d20]{width:%?200?%;height:%?200?%}\r\n\r\n/* 遮罩层样式 */.mask[data-v-26033d20]{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity .3s ease;z-index:9998}.mask-visible[data-v-26033d20]{opacity:1;pointer-events:auto}\r\n\r\n/* 弹窗样式 */.popup[data-v-26033d20]{position:fixed;left:0;right:0;bottom:-100%;background-color:#fff;border-radius:%?16?% %?16?% 0 0;padding:%?30?%;transition:bottom .3s ease;z-index:9999}.popup-show[data-v-26033d20]{bottom:0}\r\n\r\n/* 语言选项样式补充 */.language-item.disabled[data-v-26033d20]{background-color:#eaeaea; /* 灰色背景 */color:#999; /* 灰色文字 */opacity:.7 /* 稍微透明 */}\r\n\r\n/* 标题样式 */.popup-title[data-v-26033d20]{font-size:%?32?%;font-weight:700;color:#333;text-align:center;margin-bottom:%?40?%}\r\n\r\n/* 当前语言样式 */.current-language[data-v-26033d20]{font-size:%?28?%;color:#666;text-align:center;margin-bottom:%?40?%;padding-bottom:%?20?%;border-bottom:1px solid #eee}\r\n\r\n/* 语言选项样式 */.language-options[data-v-26033d20]{display:flex;flex-direction:column;gap:%?10?%;margin-bottom:%?50?%}.language-item[data-v-26033d20]{font-size:%?30?%;padding:%?25?% 0;text-align:center;border-radius:%?8?%;background-color:#f5f5f5}.language-item.active[data-v-26033d20]{background-color:#007aff;color:#fff}\r\n\r\n/* 取消按钮样式 */.cancel-btn[data-v-26033d20]{width:100%;height:%?90?%;line-height:%?90?%;text-align:center;font-size:%?32?%;color:#007aff;background-color:#f5f5f5;border-radius:%?8?%}",""]),t.exports=a},d548:function(t,a,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,e("fd3c"),e("dc8a"),e("4626"),e("5ac7"),e("22b6");var i=n(e("3323")),s={English:"en","中文":"zh-Hans","ខ្មែរ":"Khmer"},o=uni.getStorageSync("language")||"en";function c(t){return Object.keys(s).map((function(a){var e=s[a],n=!!i.default[e];return{name:a,code:e,selected:e===t,available:n}}))}var u=c(o);var l={locale:o,messages:i.default,languageOptions:u,languageMap:s,updateLanguage:function(t){return function(t){if(t&&Object.values(s).includes(t))return uni.setStorageSync("language",t),o=t,u=c(t),{locale:o,messages:i.default,languageOptions:u,languageMap:s};console.warn("不支持的语言代码: ".concat(t))}(t)},refreshLanguageOptions:function(){return u=c(o),u}};a.default=l}}]);