m2pool_web_frontend/mining-pool/test/js/app-a6ba6ead.22ec49a2.js

1 line
155 KiB
JavaScript
Raw Normal View History

"use strict";(self["webpackChunkmining_pool"]=self["webpackChunkmining_pool"]||[]).push([[171],{4447:function(t,e,s){Object.defineProperty(e,"B",{value:!0}),e.A=void 0,s(44114);e.A={name:"Announcements",data(){return{loading:!1,searchKeyword:"",currentPage:1,pageSize:10,totalCount:275,announcements:[{id:1,title:"ZEN挖矿服务即将结束",summary:"ZEN挖矿服务将于近期结束请及时调整您的挖矿设置。",type:"重要通知",createTime:"2025-01-20T10:00:00.000Z",isTop:!0},{id:2,title:"LKY即将减半",summary:"LKY币种将在近期进行减半操作请关注相关通知。",type:"系统公告",createTime:"2025-01-19T15:30:00.000Z",isTop:!1},{id:3,title:"PEP即将减产",summary:"PEP币种挖矿难度调整产量将有所减少。",type:"市场动态",createTime:"2025-01-18T09:15:00.000Z",isTop:!1},{id:4,title:"ETC+ZIL挖矿服务已结束",summary:"ETC+ZIL双挖服务已正式结束感谢您的支持。",type:"服务通知",createTime:"2025-01-17T14:45:00.000Z",isTop:!1},{id:5,title:"有关2025年06月19日SCT池异常的说明",summary:"SCT矿池在指定时间出现异常情况现已修复并提供补偿方案。",type:"故障说明",createTime:"2025-01-16T11:20:00.000Z",isTop:!1},{id:6,title:"FB单挖矿池下线公告",summary:"FB单挖矿池将于本月底正式下线请及时转移算力。",type:"下线通知",createTime:"2025-01-15T16:10:00.000Z",isTop:!1}],searchTimer:null}},mounted(){this.loadAnnouncements()},methods:{async loadAnnouncements(){this.loading=!0;try{await new Promise((t=>setTimeout(t,500)))}catch(t){console.error("加载公告失败:",t),this.$message.error(this.$t("announcements.loadError")||"加载公告失败")}finally{this.loading=!1}},handleSearchInput(){this.searchTimer&&clearTimeout(this.searchTimer),this.searchTimer=setTimeout((()=>{this.handleSearch()}),500)},handleSearch(){this.currentPage=1,this.loadAnnouncements()},handleCurrentChange(t){this.currentPage=t,this.loadAnnouncements()},handleAnnouncementClick(t){this.$router.push({name:"AnnouncementDetail",params:{id:t.id}})},handleViewAll(){this.pageSize=20,this.loadAnnouncements()},goHome(){this.$router.push("/")},formatDate(t){if(!t)return"";const e=new Date(t),s=new Date,i=s-e,a=Math.floor(i/864e5);return 0===a?"今天":1===a?"昨天":a<7?`${a}天前`:e.toLocaleDateString("zh-CN")}},beforeDestroy(){this.searchTimer&&clearTimeout(this.searchTimer)}}},4710:function(t,e,s){Object.defineProperty(e,"B",{value:!0}),e.A=void 0,s(44114),s(18111),s(22489),s(20116),s(7588),s(61701),s(18237),s(13579);var i=s(51775),a=s(92500);e.A={name:"CustomerServiceChat",data(){return{searchText:"",inputMessage:"",currentContactId:null,previewVisible:!1,previewImageUrl:"",contacts:[],messages:{},messagesLoading:!1,sending:!1,loadingRooms:!0,stompClient:null,wsConnected:!1,userEmail:"",userType:1,loadingHistory:!1,userViewHistory:!1,userScrolled:!1,history7Params:{id:"",roomId:"",userType:2,email:""},historyAllParams:{id:"",roomId:"",userType:2},receiveUserType:"",manualCreatedRooms:[],chatRooms:[],isWebSocketConnected:!1,connectionStatus:"disconnected",isLoadingMoreContacts:!1,lastContactTime:null,showScrollButton:!1,visibilityHandler:null,reconnectTimer:null,maxReconnectAttempts:5,reconnectInterval:5e3,reconnectAttempts:0,isHandlingError:!1,lastErrorTime:0,lastActivityTime:Date.now(),activityCheckInterval:null,activityEvents:null,activityHandler:null,connectionVerifyTimer:null,connectionVerifyTimeout:6e4,isConnectionVerified:!1,heartbeatInterval:null,heartbeatTimeout:3e4,lastHeartbeatTime:0,connectionCheckInterval:null,connectionCheckTimeout:6e4,hasMoreHistory:!0,noMoreHistoryMessage:"",networkStatus:"online"}},computed:{filteredContacts(){return this.searchText?this.contacts.filter((t=>t.name.toLowerCase().includes(this.searchText.toLowerCase()))):this.contacts},currentContact(){return this.contacts.find((t=>t.roomId===this.currentContactId))},currentMessages(){return this.messages[this.currentContactId]||[]}},created(){try{let t=localStorage.getItem("userEmail");this.userEmail=JSON.parse(t),window.addEventListener("setItem",