PageSourceSearch

https://www.mp3210.com/assets/UnifyRedeemCodeView-XE3-mKSm.js

js mp3210.com collected 2026-10-02 00:53:24 UTC 2,700 bytes, 3 lines download raw bytes

1import{_ as C,m as E,x as y,u as D,T as f,U as c,E as s,r as d,o as l,c as o,g as R,w as r,b as a,h as p,t as _,d as n}from"./online-8kbbW8rN.js";const k=E({name:"UnifyRedeemCodeView",mixins:[y],setup(){return{router:D()}},data(){return{redeemCode:null,account:null,loading:!1}},mounted(){this.setTitle("lib_plugins_dhm")},methods:{onAccountChanged(e){this.account=e},onRedeemClick(){if(!this.notLogin()){if(f.isEmptyOrNull(this.redeemCode)){this.toastWarn("lib_plugins_qsrdhm");return}this.loading=!0,this.showProgressDialog(),c.redeem(this.xgmApp,this.redeemCode,e=>{let i="^_^",t="";t+=this.$t("lib_plugins_gxndhcg"),e!=null&&e.vipDays!=null&&e.vipDays>0&&(t+=`
2`,t+=this.$t("lib_plugins_hysjzjdst",e.vipDays)),e!=null&&e.earnScore!=null&&e.earnScore>0&&(t+=`
3`,t+=this.$t("lib_plugins_hyjfzjds",e.earnScore)),c.reloadUserInfo(this.xgmApp,()=>{}),this.alert(i,t,"lib_common_qd"),this.hideProgressDialog(),this.loading=!1},(e,i,t)=>{this.hideProgressDialog(),this.loading=!1;let u=this.$t("lib_plugins_dhsb");switch(e){case s.ERROR_CODE_INVALID_REDEEM_CODE:{i=this.$t("lib_plugins_wxdhm");break}case s.ERROR_CODE_ALREADY_REDEEMED:{i=this.$t("lib_plugins_ybtrdh");break}case s.ERROR_CODE_REDEEM_CODE_EXPIRED:{i=this.$t("lib_plugins_dhmygq");break}case s.ERROR_CODE_INVALID_APP_ID:{i=this.$t("lib_plugins_dhmbnyycyy");break}case s.ERROR_CODE_ACCOUNT_NOT_FOUND:{i=this.$t("lib_plugins_zhbcz");break}default:{i=this.$t("lib_plugins_dhsb");break}}this.alert(u,i,"lib_common_qd")})}},showLoginDialog2(){this.showLoginDialog()}}}),$={class:"flex-1 flex-vbox s-container flex-center"},O={key:1,class:"redeem-title"},w={key:2},V={key:3};function v(e,i,t,u,A,N){const h=d("el-button"),m=d("el-empty"),g=d("el-input");return l(),o("div",$,[e.account?n("",!0):(l(),R(m,{key:0,description:e.$t("lib_plugins_qxdlzh")},{default:r(()=>[a(h,{type:"primary",onClick:e.showLoginDialog2},{default:r(()=>[p(_(e.$t("lib_plugins_dlzc")),1)]),_:1},8,["onClick"])]),_:1},8,["description"])),e.account?(l(),o("div",O,_(e.$t("lib_plugins_dhm")),1)):n("",!0),e.account?(l(),o("div",w,[a(g,{modelValue:e.redeemCode,"onUpdate:modelValue":i[0]||(i[0]=b=>e.redeemCode=b),class:"redeem-input","input-style":{textAlign:"center"},placeholder:e.$t("lib_plugins_qsrdhm"),disabled:e.loading},null,8,["modelValue","placeholder","disabled"])])):n("",!0),e.account?(l(),o("div",V,[a(h,{class:"redeem-btn",icon:"Select",type:"primary",round:"",size:"large",onClick:e.onRedeemClick,loading:e.loading,disabled:!e.redeemCode||e.redeemCode.trim().length<=0},{default:r(()=>[p(_(e.$t("lib_plugins_dh")),1)]),_:1},8,["onClick","loading","disabled"])])):n("",!0)])}const I=C(k,[["render",v],["__scopeId","data-v-4d111423"]]);export{I as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.