← Back
Editing: index-legacy320.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var r,n={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",s=l.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(r){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),l=new I(n||[]);return i(a,"_invoke",{value:O(t,r,l)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var h="suspendedStart",m="suspendedYield",v="executing",y="completed",x={};function g(){}function b(){}function w(){}var _={};f(_,u,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(N([])));L&&L!==o&&a.call(L,u)&&(_=L);var j=w.prototype=g.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,r){function n(o,i,l,u){var c=d(e[o],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==t(f)&&a.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,l,u)}),(function(t){n("throw",t,l,u)})):r.resolve(f).then((function(t){s.value=t,l(s)}),(function(t){return n("throw",t,l,u)}))}u(c.arg)}var o;i(this,"_invoke",{value:function(t,e){function a(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(a,a):a()}})}function O(t,e,n){var o=h;return function(a,i){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===a)throw i;return{value:r,done:!0}}for(n.method=a,n.arg=i;;){var l=n.delegate;if(l){var u=S(l,n);if(u){if(u===x)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var c=d(t,e,n);if("normal"===c.type){if(o=n.done?y:m,c.arg===x)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function S(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,S(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),x;var a=d(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,x;var i=a.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,x):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,x)}function V(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(V,this),this.reset(!0)}function N(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return b.prototype=w,i(j,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=f(w,s,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,f(t,s,"GeneratorFunction")),t.prototype=Object.create(j),t},n.awrap=function(t){return{__await:t}},E(P.prototype),f(P.prototype,c,(function(){return this})),n.AsyncIterator=P,n.async=function(t,e,r,o,a){void 0===a&&(a=Promise);var i=new P(p(t,e,r,o),a);return n.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},E(j),f(j,s,"Generator"),f(j,u,(function(){return this})),f(j,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.values=N,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,o){return l.type="throw",l.arg=t,e.next=n,o&&(e.method="next",e.arg=r),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,x):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),x},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),x}},n}function r(t,e,r,n,o,a,i){try{var l=t[a](i),u=l.value}catch(t){return void r(t)}l.done?e(u):Promise.resolve(u).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function l(t){r(i,o,a,l,u,"next",t)}function u(t){r(i,o,a,l,u,"throw",t)}l(void 0)}))}}System.register(["./base-lib-legacy.js?v=VERSION_NUMBER","./utils-lib-legacy.js?v=VERSION_NUMBER","./store-legacy3.js?v=VERSION_NUMBER","./store-legacy4.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER"],(function(t,r){"use strict";var o,a,i,l,u,c,s,f,p,d,h,m,v,y,x,g,b,w,_,k,L,j,E,P,O,S,V,C,I,N,G,T,U,F,H,q,z,M,A,B;return{setters:[function(t){o=t.c,a=t.s,i=t.t,l=t.g,u=t.ay,c=t.r,s=t.p,f=t.aD,p=t.G,d=t.H,h=t.x,m=t.q,v=t.v,y=t.F,x=t.y,g=t.e,b=t.K,w=t.z,_=t.J,k=t.A,L=t.B,j=t.C,E=t.P,P=t.I,O=t.aQ,S=t.al,V=t.S,C=t.ax,I=t.a9,N=t.a7,G=t.D,T=t.bq},function(t){U=t.u,F=t.gn,H=t.M,q=t.d,z=t.c,M=t.e},function(t){A=t.H},function(t){B=t.H},null,null,null,null],execute:function(){var r={class:"absolute top-15px left-15px text-white text-[1.4rem]"},D={class:"absolute top-15px left-15px text-white text-[1.4rem]"},R={class:"text-[1.5rem] mt-8 flex justify-between mb-16px mx-34px update-text"},Y={class:""},J={key:0,class:"text-primary"},K={class:""},Q={class:"text-[2.1rem] flex mt-3rem pb-8 font-bold items-center justify-center text-[#565656] bg-linear"},W={class:"px-32px py-[1.6rem] text-[1.4rem] flex items-center justify-between update-text bg-[white]"},$={class:"flex items-center"},X={key:0,class:"text-primary"},Z={key:0,class:"rounded-md update-content"},tt=["innerHTML"],et={key:1},rt={class:"flex flex-col justify-center leading-10 text-[1.2rem] text-medium"},nt={class:"mt-0.6rem flex items-center"},ot={key:2},at={class:"pt-[1rem] pb-[3rem] pl-[3.1rem] pr-[3rem]"},it={class:"mt-[1rem]"},lt={class:"my-[1rem] flex items-center"},ut={class:"flex flex-col items-center p-[2rem]"},ct={key:3,class:"flex align-middle justify-center pb-10"},st=o({__name:"index",setup:function(t,o){var M=o.expose,st=B(),ft=st.getUpdateInfoNew,pt=a(st).panelInfo,dt=i(pt.value),ht=dt.upgrade,mt=dt.currentInfo,vt=A(),yt=a(vt),xt=yt.panelInfo,gt=yt.formPhone,bt=yt.loading,wt=yt.grayscale,_t=yt.panelVersion,kt=(yt.betaInfo,yt.officialInfo,yt.isBeta,yt.update),Lt=yt.isNPSShow,jt=yt.questions,Et=yt.form,Pt=yt.rules,Ot=l((function(){return 0!==ht.value})),St=U(),Vt=St.mainHeight,Ct=St.mainWidth,It=l((function(){return xt.value.isBeta?"测试版":"正式版"})),Nt=u("popupClose",(function(){})),Gt=c(!1),Tt=function(){var t=n(e().mark((function t(){var r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(mt.value){t.next=7;break}return Gt.value=!0,t.next=4,ft();case 4:r=t.sent,Gt.value=!1,null!=r&&r.msg&&(H.request(r),Nt());case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return s(n(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,vt.getUpdatePushInfo();case 2:case"end":return t.stop()}}),t)})))),f((function(){vt.$reset()})),M({onOpen:Tt}),function(t,e){var n,o,a,i=q,l=z,u=O,c=S,s=V,f=C,U=I,H=N,M=G,A=p("bt-loading"),B=T;return d((m(),v("div",{class:_((h(Ot)?"update-back ":"")+"flex relative w-[100%] flex-col h-[100%] rounded-[.2rem] update-version-view")},[h(Ot)?(m(),v(y,{key:0},[x("div",{class:"w-[150px] fixed right-30px",style:b("top:".concat(h(Vt)/2-280,"px;right:").concat(h(Ct)/2-81,"px"))},[g(i,{src:"/update/update_rocket.svg",alt:"rocket img"})],4),x("div",r,[x("span",null,w("".concat(h(F)).concat(h(It),"本更新")),1)])],64)):(m(),v(y,{key:1},[e[10]||(e[10]=x("div",{class:"w-full absolute h-140px absolute-image rounded-[2px] title-new-img"},null,-1)),x("div",D,[x("span",null,"宝塔"+w(h(F))+"面板",1)])],64)),d((m(),v("div",{class:_(h(Ot)?"relative mt-52 rounded-[2px]":"relative mt-25 bg-linear rounded-[2px]")},[h(Ot)?(m(),v(y,{key:0},[e[13]||(e[13]=x("div",{class:"text-[2.1rem] flex font-bold items-center justify-center text-[#565656]"},[x("span",null,"发现新的正式版本!")],-1)),x("div",R,[x("div",Y,[e[12]||(e[12]=x("span",null,"最新版本: ",-1)),x("span",null,[g(l,{href:"https://www.bt.cn/bbs/forum-36-1.html"},{default:k((function(){var t;return[L(w(h(F))+"-"+w(null===(t=h(mt))||void 0===t?void 0:t.version),1)]})),_:1})]),h(wt)<1?(m(),v("span",J,[g(u,{class:"item",effect:"dark",content:"提示:当前是正式版尝鲜阶段,为了验证新版本的稳定性和兼容性,确保全面推出之前,新功能能正常运行。",placement:"top"},{default:k((function(){return e[11]||(e[11]=[x("span",null,[L("(尝鲜版"),x("i",{class:"svgtofont-el-question-filled"}),L(")")],-1)])})),_:1})])):j("",!0)]),x("div",K,[x("span",null,"更新时间:"+w(null===(n=h(mt))||void 0===n?void 0:n.uptime),1)])])],64)):(m(),v(y,{key:1},[x("div",Q,[g(i,{src:"/update/update_icon.svg",alt:"icon",class:"h-12 mr-2 mt-1"}),e[14]||(e[14]=x("span",{class:"leading-10"},"当前已经是最新版本",-1))]),x("div",W,[x("span",$,[e[16]||(e[16]=L(" 当前版本: ")),g(l,{class:"bt-link text-[12px]",href:"https://www.bt.cn/bbs/forum-36-1.html",textContent:w(h(F)+h(It)+h(_t))},null,8,["textContent"]),h(wt)<1?(m(),v("span",X,[g(u,{class:"item",effect:"dark",content:"提示:当前是正式版尝鲜阶段,为了验证新版本的稳定性和兼容性,确保全面推出之前,新功能能正常运行。",placement:"top"},{default:k((function(){return e[15]||(e[15]=[x("span",null,[L("(尝鲜版"),x("i",{class:"svgtofont-el-question-filled"}),L(")")],-1)])})),_:1})])):j("",!0)]),x("span",null,"当前发布时间:"+w(null===(o=h(mt))||void 0===o?void 0:o.uptime),1)])],64)),x("div",{class:_(h(Ot)?"mb-[3rem] mt-4 px-16px py-22px mx-34px bg-[rgba(33,165,59,0.04)] rounded-[2px]":"mb-[2.2rem] mt-2 px-16px py-14px mx-32px border-1 border-[#EEEFEC] bg-[rgb(247,252,248)] rounded-[2px]")},[h(Ot)?(m(),v("div",Z,[x("div",{class:"leading-10 mr-2 text-[1.2rem] text-medium overflow-auto",innerHTML:(null===(a=h(mt))||void 0===a?void 0:a.updateMsg)||"获取中"},null,8,tt)])):j("",!0),h(Ot)?(m(),v("hr",et)):j("",!0),x("div",rt,[x("div",nt,[e[17]||(e[17]=x("span",{class:"mr-2"},"有更新时提醒我:",-1)),g(c,{class:"mr-4",modelValue:h(kt).updatePush,"onUpdate:modelValue":e[0]||(e[0]=function(t){return h(kt).updatePush=t}),onChange:h(vt).openUpdateReminder,"active-color":"#13ce66"},null,8,["modelValue","onChange"]),x("span",{class:"bt-link",onClick:e[1]||(e[1]=function(t){return h(vt).updateReminderDialog(h(kt).updatePush)}),textContent:"提醒方式"})])])],2),h(Ot)?j("",!0):(m(),v("div",ot,[x("div",{class:_(["nps_survey_banner flex items-center justify-center",h(Lt)?"":"mb-[2rem]"])},[x("span",{class:"text-[14px] font-bold inline-block cursor-pointer text-[#20a53a] mr-[.4rem]",onClick:e[2]||(e[2]=function(t){return Lt.value=!h(Lt)}),style:{"vertical-align":"4px"}}," 点击此处"+w(h(Lt)?"折叠":"展开")+"需求反馈 ",1),x("i",{class:_(["cursor-pointer text-[14px]",h(Lt)?"svgtofont-el-arrow-up":"svgtofont-el-arrow-down"]),onClick:e[3]||(e[3]=function(t){return Lt.value=!h(Lt)})},null,2)],2),d(x("div",at,[g(f,{placement:"top-start",width:"400","popper-class":"tips bg-[#20a53a] text-white text-[1.2rem] w-[40.6rem] !p-12px leading-[20px]",trigger:"focus",content:"如果您在使用过程中遇到任何问题或功能不完善,请将您的问题或需求详细描述给我们,我们将尽力为您解决或完善。"},{reference:k((function(){return[g(s,{type:"textarea",rows:5,modelValue:h(jt),"onUpdate:modelValue":e[4]||(e[4]=function(t){return E(jt)?jt.value=t:null}),placeholder:"如果您在使用过程中遇到任何问题或功能不完善,请将您的问题或需求详细描述给我们,我们将尽力为您解决或完善。"},null,8,["modelValue"])]})),_:1}),x("div",it,[x("div",lt,[e[18]||(e[18]=x("span",{class:"text-[1.3rem] text-[#666]"},"是否愿意接受回访:",-1)),g(c,{size:"small",modelValue:h(Et).status,"onUpdate:modelValue":e[5]||(e[5]=function(t){return h(Et).status=t})},null,8,["modelValue"])]),g(H,{ref_key:"formPhone",ref:gt,"label-position":"top",model:h(Et),rules:h(Pt)},{default:k((function(){return[d(g(U,{label:"",prop:"phone"},{default:k((function(){return[g(s,{modelValue:h(Et).phone,"onUpdate:modelValue":e[6]||(e[6]=function(t){return h(Et).phone=t}),placeholder:"请留下手机号码或邮箱"},null,8,["modelValue"])]})),_:1},512),[[P,h(Et).status]])]})),_:1},8,["model","rules"])]),e[20]||(e[20]=x("div",{class:"mt-[.4rem] text-[1.2rem] text-primary leading-[3rem]"},"我们特别重视您的需求反馈,我们会每周进行需求评审,希望能更好的帮到您",-1)),x("div",ut,[g(M,{type:"primary",class:"w-[12.5rem]",size:"large",onClick:e[7]||(e[7]=function(t){return h(vt).submit(h(Nt))})},{default:k((function(){return e[19]||(e[19]=[L("提交反馈")])})),_:1})])],512),[[P,h(Lt)]])])),h(Ot)?(m(),v("div",ct,[g(M,{type:"default",class:"ignore-renew text-[1.3rem] border-none h-38px mr-50px w-50 bg-[#f0f0f0]",size:"default",style:{color:"#999"},round:"",onClick:e[8]||(e[8]=function(t){return h(vt).ignoreUpdatEVersion(h(mt).version,h(Nt))})},{default:k((function(){return e[21]||(e[21]=[L("忽略本次更新")])})),_:1}),g(M,{class:"border-none text-[1.3rem] w-50 h-38px",type:"primary",round:"",onClick:e[9]||(e[9]=function(t){return h(vt).updateVersion()})},{default:k((function(){return e[22]||(e[22]=[L("立即更新")])})),_:1})])):j("",!0)],2)),[[A,h(bt)],[A,"正在加载更新信息,请稍后...","title"]])],2)),[[B,h(Gt)]])}}});t("default",M(st,[["__scopeId","data-v-ef539f87"]]))}}}))}();
Save File
Cancel