Files
PropertyDeployment/resources/Web/WechatOwnerService/html/static/js/pages-settings-settings.92692a54.js
2025-12-09 20:22:03 +08:00

1 line
13 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-settings-settings"],{1564:function(n,t,e){var r=e("2db8");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[n.i,r,""]]),r.locals&&(n.exports=r.locals);var a=e("967d").default;a("b76cdb82",r,!0,{sourceMap:!1,shadowMode:!1})},"1ae4":function(n,t,e){"use strict";e("6a54");var r=e("3639").default,a=e("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(e("9a2cc")),s=r(e("e88b")),o=(e("70543"),e("70543")),c=e("ea51"),u=a(e("80cc")),l=a(e("8d9e")),g=i.default.constant,v=(i.default.factory,{data:function(){return{show:!1,headerImg:null,imageList:[],logoutUser:!1,login:!0,tg:null,languageOptions:l.default.languageOptions}},onLoad:function(n){i.default.onLoad(n);var t=uni.getStorageSync(g.mapping.OWNER_INFO);null!=t&&""!=t?(this.loadOwnerHeaderImg(),this.tg=window.Telegram.WebApp.initDataUnsafe.user):this.login=!1},methods:{__togglePopup:function(){this.show=!this.show},handleSelectLanguage:function(n){if(n){this.$i18n.locale=n,uni.setLocale(n);var t=l.default.updateLanguage(n);this.languageOptions=t.languageOptions,console.log("选中的语言code",n),this.__togglePopup(),uni.showToast({title:this.$t("pages.settings.settings.语言切换成功"),icon:"success",duration:3e3})}},settingHeadImg:function(){var n=this;wx.chooseImage({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:function(t){wx.showToast({title:"正在上传",icon:"loading",mask:!0,duration:1e3});var e=t.tempFilePaths;console.log("头像地址",e),s.translate(n,e[0],(function(t){n.headerImg=t,n._uploadOwnerHeaderImg(),wx.hideLoading()}))}})},loadOwnerHeaderImg:function(){var n=this;(0,o.loadLoginOwner)({memberId:(0,o.getMemberId)(),communityId:(0,c.getCommunityId)()}).then((function(t){t.faceUrl?n.headerImg=t.faceUrl:n.headerImg=u.default.imgUrl+"/h5/images/serve/head.png"}))},_uploadOwnerHeaderImg:function(){var n=this;i.default.getOwner((function(t){var e=t.memberId,r=t.communityId,a={memberId:e,communityId:r,photo:n.headerImg};i.default.request({url:g.url.uploadOwnerPhoto,header:i.default.getHeaders(),method:"POST",data:a,success:function(t){console.log(t),200==t.statusCode?n.loadOwnerHeaderImg():wx.showToast({title:"头像上传失败",icon:"none",duration:2e3})},fail:function(n){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},_logout:function(){this.logoutUser=!0},_cancleLogout:function(){this.logoutUser=!1},_toPage:function(n){this.vc.navigateTo({url:n})},_doLogoutUser:function(){var n={token:wx.getStorageSync("token")},t=this;i.default.request({url:g.url.userLogout,header:i.default.getHeaders(),method:"POST",data:n,success:function(n){if(200==n.statusCode){var e=uni.getStorageSync(g.mapping.W_APP_ID);uni.clearStorageSync(),null!=e&&void 0!=e&&""!=e&&uni.setStorageSync(g.mapping.W_APP_ID,e),t.vc.navigateTo({url:"/pages/login/login"})}else uni.showToast({icon:"none",title:n.data})},fail:function(n){uni.showToast({title:"调用接口失败"}),console.log(n)}})}}});t.default=v},"2db8":function(n,t,e){var r=e("c86c");t=r(!1),t.push([n.i,"\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\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r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n/* 遮罩层样式 */.mask[data-v-595231bc]{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-595231bc]{opacity:1;pointer-events:auto}\r\n/* 弹窗样式 */.popup[data-v-595231bc]{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-595231bc]{bottom:0}\r\n/* 语言选项样式补充 */.language-item.disabled[data-v-595231bc]{background-color:#eaeaea; /* 灰色背景 */color:#999; /* 灰色文字 */opacity:.7 /* 稍微透明 */}\r\n/* 标题样式 */.popup-title[data-v-595231bc]{font-size:%?32?%;font-weight:700;color:#333;text-align:center;margin-bottom:%?40?%}\r\n/* 当前语言样式 */.current-language[data-v-595231bc]{font-size:%?28?%;color:#666;text-align:center;margin-bottom:%?40?%;padding-bottom:%?20?%;border-bottom:1px solid #eee}\r\n/* 语言选项样式 */.language-options[data-v-595231bc]{display:flex;flex-direction:column;gap:%?10?%;margin-bottom:%?50?%}.language-item[data-v-595231bc]{font-size:%?30?%;padding:%?25?% 0;text-align:center;border-radius:%?8?%;background-color:#f5f5f5}.language-item.active[data-v-595231bc]{background-color:#007aff;color:#fff}\r\n/* 取消按钮样式 */.cancel-btn[data-v-595231bc]{width:100%;height:%?90?%;line-height:%?90?%;text-align:center;font-size:%?32?%;color:#007aff;background-color:#f5f5f5;border-radius:%?8?%}",""]),n.exports=t},"8d9e":function(n,t,e){"use strict";e("6a54");var r=e("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("fd3c"),e("dc8a"),e("4626"),e("5ac7"),e("22b6");var a=r(e("b8d9")),i={English:"en","中文":"zh-Hans","ខ្មែរ":"Khmer"},s=uni.getStorageSync("language")||"en";function o(n){return Object.keys(i).map((function(t){var e=i[t],r=!!a.default[e];return{name:t,code:e,selected:e===n,available:r}}))}var c=o(s);var u={locale:s,messages:a.default,languageOptions:c,languageMap:i,updateLanguage:function(n){return function(n){if(n&&Object.values(i).includes(n))return uni.setStorageSync("language",n),s=n,c=o(n),{locale:s,messages:a.default,languageOptions:c,languageMap:i};console.warn("不支持的语言代码: ".concat(n))}(n)},refreshLanguageOptions:function(){return c=o(s),c}};t.default=u},9532:function(n,t,e){"use strict";e.d(t,"b",(function(){return r})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){}));var r=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("v-uni-view",[e("v-uni-view",[e("v-uni-view",{staticClass:"cu-list menu"},[e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.settingHeadImg()}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"cuIcon-emojiflashfill text-pink"}),e("v-uni-text",{staticClass:"text-grey"},[n._v(" "+n._s(n.$t("pages.settings.settings.我的头像")))])],1),e("v-uni-view",{staticClass:"action"},[e("v-uni-view",{staticClass:"cu-avatar round ",style:{backgroundImage:"url("+n.headerImg+")"}})],1)],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n._toPage("/pages/settings/changeOwnerPhone")}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"cuIcon-mobilefill text-cyan"}),e("v-uni-text",{staticClass:"text-grey"},[n._v(" "+n._s(n.$t("pages.settings.settings.手机号")))])],1),e("v-uni-view",{staticClass:"action"})],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n._toPage("/pages/settings/changePassword")}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"cuIcon-warnfill text-cyan"}),e("v-uni-text",{staticClass:"text-grey"},[n._v(" "+n._s(n.$t("pages.settings.settings.密码")))])],1),e("v-uni-view",{staticClass:"action"})],1)],1),e("v-uni-view",{staticClass:"cu-list menu"},[e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n._toPage("/pages/my/viewAdmin")}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"cuIcon-questionfill text-cyan"}),e("v-uni-text",{staticClass:"text-grey"},[n._v(" "+n._s(n.$t("pages.settings.settings.技术支持")))])],1),e("v-uni-view",{staticClass:"action"})],1),e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.__togglePopup()}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"cuIcon-questionfill cuIcon-global"}),e("v-uni-text",{staticClass:"text-grey"},[n._v(" "+n._s(n.$t("pages.settings.settings.切换语言")))])],1),e("v-uni-view",{staticClass:"action"})],1),e("v-uni-view",{staticClass:"cu-item"},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"cuIcon-warn text-green"}),e("v-uni-text",{staticClass:"text-grey"},[n._v(" "+n._s(n.$t("pages.settings.settings.版本号")))])],1),e("v-uni-view",{staticClass:"action"},[e("v-uni-text",{staticClass:"text-grey text-sm"},[n._v("V1.0.5")])],1)],1)],1),null!=n.tg?e("v-uni-view",{staticClass:"cu-list menu"},[e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n._toPage("/pages/tgUserInfo/tgUserInfo")}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"cuIcon-questionfill text-cyan"}),e("v-uni-text",{staticClass:"text-grey"},[n._v(" "+n._s(n.$t("pages.settings.settings.Telegram账户")))])],1),e("v-uni-view",{staticClass:"action"})],1)],1):n._e(),e("v-uni-view",{staticClass:"cu-list menu"},[e("v-uni-view",{staticClass:"cu-item arrow",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n._toPage("/pages/tgUserInfo/BindTgUseBot")}}},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"cuIcon-questionfill text-cyan"}),e("v-uni-text",{staticClass:"text-grey"},[n._v(" "+n._s(n.$t("pages.settings.settings.Telegram账户")))])],1),e("v-uni-view",{staticClass:"action"})],1)],1),n.login?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(t){arguments[0]=t=n.$handleEvent(t),n._logout()}}},[e("v-uni-view",{staticClass:"content text-center"},[e("v-uni-text",{staticClass:"text-red"},[n._v(" "+n._s(n.$t("pages.settings.settings.退出")))])],1)],1)],1)],1):n._e()],1),e("v-uni-view",{staticClass:"cu-modal",class:1==n.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"},[n._v(" "+n._s(n.$t("pages.settings.settings.退出系统")))]),e("v-uni-view",{staticClass:"action",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n._cancleLogout()}}},[e("v-uni-text",{staticClass:"cuIcon-close text-red"})],1)],1),e("v-uni-view",{staticClass:"padding-xl"},[n._v(" "+n._s(n.$t("pages.settings.settings.您确认退出系统吗"))+" ")]),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(t){arguments[0]=t=n.$handleEvent(t),n._cancleLogout()}}},[n._v(" "+n._s(n.$t("pages.settings.settings.取消")))]),e("v-uni-view",{staticClass:"action margin-0 flex-sub text-green solid-left",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n._doLogoutUser()}}},[n._v(" "+n._s(n.$t("pages.settings.settings.确定")))])],1)],1)],1),e("v-uni-view",{staticClass:"language-popup"},[n.show?e("v-uni-view",{staticClass:"mask",class:{"mask-visible":n.show},on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.__togglePopup.apply(void 0,arguments)}}}):n._e(),e("v-uni-view",{staticClass:"popup",class:{"popup-show":n.show}},[e("v-uni-view",{staticClass:"popup-title"},[n._v(" "+n._s(n.$t("pages.settings.settings.请选择你的语言")))]),e("v-uni-view",{staticClass:"language-options"},n._l(n.languageOptions,(function(t,r){return e("v-uni-view",{key:r,staticClass:"language-item",class:{active:t.selected,disabled:!t.available},on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.handleSelectLanguage(t.code)}}},[n._v(" "+n._s(t.name)+" ")])})),1),e("v-uni-view",{staticClass:"cancel-btn",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),n.__togglePopup.apply(void 0,arguments)}}},[n._v(" "+n._s(n.$t("pages.settings.settings.取消")))])],1)],1)],1)},a=[]},9918:function(n,t,e){"use strict";e.r(t);var r=e("9532"),a=e("c426");for(var i in a)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(i);e("d4da");var s=e("828b"),o=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"595231bc",null,!1,r["a"],void 0);t["default"]=o.exports},c426:function(n,t,e){"use strict";e.r(t);var r=e("1ae4"),a=e.n(r);for(var i in r)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(i);t["default"]=a.a},d4da:function(n,t,e){"use strict";var r=e("1564"),a=e.n(r);a.a}}]);