index.f7661e7f.js 6.6 KB

1
  1. import{d as A,Q as h,U as w,j as a,a5 as m,bO as B,B as d,z as n,C as g,w as l,T as r}from"./index.394decd7.js";import{T as y}from"./index.88270f6d.js";import{C as x}from"./index.e6e212d8.js";import{L as b}from"./index.dc786267.js";import{R as u,C as o}from"./index.a9c78aa8.js";import"./index.75a0444f.js";import"./index.b9aedd1d.js";import"./use-tab-status.723110ee.js";const C="_bgImg_1jp2n_1",j="_sticky_1jp2n_9",F="_codeContainer_1jp2n_14",I="_codeInput_1jp2n_20",V="_codeBtn_1jp2n_34",W="_colGroup_1jp2n_44",Y="_title_1jp2n_50",U="_colRow_1jp2n_65",M="_codeList_1jp2n_73",k="_c1_1jp2n_94",J="_c2_1jp2n_97",N="_c3_1jp2n_100",H="_liveBtn_1jp2n_103";var s={bgImg:C,sticky:j,codeContainer:F,codeInput:I,codeBtn:V,colGroup:W,title:Y,colRow:U,codeList:M,c1:k,c2:J,c3:N,liveBtn:H},R="./assets/bg-image.96b0426b.png",T="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAYAAACMRWrdAAAAAXNSR0IArs4c6QAACXtJREFUaEPNmmuMVdUVx3/73IEZHsWAr0Qeoq2VaptKOxMEKm3H1whVXkJ5jBWq6YepqTUm9UNTpPZDYxMT22LTDxIpyBSp5VWgSsIM5aGhtU0EtQSjHQcoKjRWHsMwj7ObffbZ5+yzzzn3wVyLN4GZe++ee/d/r7X+67/WXoKch/zGkjq8waPxeycj5GyEnIAnxyAYgQD9T+qfBfWfBM+8Hr5nPw9+D9d7wvrd+qzi608hOIonDlGQGykMfpUT4phYtao7C4LaUeIhWe7xtfca8PxFwCyEHItAJDZtNuBJ/bfR85xNqm9JALMOwH49Whe+rz4/9Zr6QinxOELB2wR+K8Mn/E0sX+7bQBLA5Lx5BY4PW4SUTyAYh4enT1mA+hK1CRuIsVripK31kWUt8OrzUpYNLZiymGX56HvV35v1wseTndR4y5jY2yrm/6HfgIuABaCODn8Az38KGJ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03QJ3N2pwAZBitYplxnPnYMcO2LdXyy47N5kKujKtGFwjXfjFn9sqqK2ByTdB0zS46srSDqgsd/x9UO3uAwegvy+pULIsVp5WVBd/5qo245I70GRO69v2aTOxY05YrS8Al4+CW+qhcTIMNeznsMfZLti9F177O3z0UbpLZQOoXCtu0Jfrvr8aT4TzUlW8g64bBDdep/seIy/Rm//vx1rpq1hyE3expo0tfIvfQUtq1OX6QMYhSvUVsy7lEtWwMz6Rt76ctlzcl+ykUNeoB1jOiSdBPhQPhbm3mhd4B53aaN6FnUXtWXfK9gHaJJcGHA+wBGlHjRwh14HUI0fBJEzG2EMlfcWiY0pl9gkrnW9EduCFI0c6n6ohsY7FSJkxJGb181Oud9HmFdPVdTAk5rVQ+/l4SCwAZ8b6hP8UHrocjhT5p3VeMQqZM0j5KA1+cqzPJJzsQcwB3EHnxYvb2bXFbvS7FQ5564XwEbKTAsuo788exIzAZY3OqlSQU4JH88FBUP+/5hVRsynlj87aUiE57Nw/G09MQEjVihqRO4qXU6anGqB5vfjocJy41uutYWexkUJN0WHn/wFrc3q7Jm06IwAAAABJRU5ErkJggg==",D=A({name:"activation-code",setup(){const t=h({refreshing:!1,height:0,list:[],dataShow:!0,loading:!1,finished:!1,params:{page:1,rows:10},isClick:!1,code:""}),c=async(e=!1)=>{try{if(t.isClick)return;t.isClick=!0;const v=await l.post("/api-student/tenantActivationCode/page",{data:{...t.params},hideLoading:e});t.isClick=!1,t.loading=!1,t.refreshing=!1;const i=v.data||{};if(t.list.length>0&&i.current===1)return;t.list=t.list.concat(i.rows||[]),t.finished=i.current>=i.pages,t.params.page=i.current+1,t.dataShow=t.list.length>0}catch{t.isClick=!1,t.dataShow=!1,t.refreshing=!1,t.finished=!0}},p=async()=>{try{if(!t.code){r("\u8BF7\u8F93\u5165\u6FC0\u6D3B\u7801");return}await l.post("/api-student/tenantActivationCode/active?activationCode="+t.code),r.success("\u6FC0\u6D3B\u6210\u529F"),t.params.page=1,t.list=[],c(!0)}catch{}},f=async e=>{try{await l.post("/api-student/tenantActivationCode/activeById?id="+e.id),r.success("\u6FC0\u6D3B\u6210\u529F"),t.params.page=1,t.list=[],c(!0)}catch{}};return w(()=>{c()}),()=>a("div",{class:s.activationCode},[a("div",{class:s.sticky},[a(y,{position:"top"},{default:()=>[a(x,{background:"transparent",isFixed:!1,border:!1,color:"#131415"},null),a("div",{class:s.codeContainer},[m(a("input",{"onUpdate:modelValue":e=>t.code=e,placeholder:"\u8BF7\u8F93\u5165\u6FC0\u6D3B\u7801",class:s.codeInput,maxlength:7},null),[[B,t.code]]),a(d,{type:"primary",round:!0,class:s.codeBtn,block:!0,onClick:p},{default:()=>[n("\u7ACB\u5373\u5151\u6362")]})])]}),a("img",{class:s.bgImg,src:R},null),a(b,{"loading-text":" ",finished:t.finished,"finished-text":" ",onLoad:c,style:{overflow:"hidden"}},{default:()=>[a("div",{class:s.colGroup},[a("div",{class:s.title},[a("img",{src:T},null),n("\u6FC0\u6D3B\u8BB0\u5F55")]),a(u,{class:s.colRow},{default:()=>[a(o,{span:5},{default:()=>[n("\u6FC0\u6D3B\u7801")]}),a(o,{span:5},{default:()=>[n("\u5468\u671F")]}),a(o,{span:5},{default:()=>[n("\u6FC0\u6D3B\u72B6\u6001")]}),a(o,{span:9},{default:()=>[n("\u6FC0\u6D3B\u65F6\u95F4")]})]}),a("div",{class:s.codeList},[t.list.map(e=>a(u,null,{default:()=>[a(o,{span:5},{default:()=>[e.activationCode]}),a(o,{span:5},{default:()=>[e.purchaseCycle,n("\u4E2A\u6708")]}),a(o,{span:5,class:e.activationStatus?s.c1:s.c2},{default:()=>[e.activationStatus?"\u5DF2\u6FC0\u6D3B":"\u5F85\u6FC0\u6D3B"]}),a(o,{span:9},{default:()=>[e.activationStatus?e.activationTime:a(d,{class:s.liveBtn,color:"#FE2451",onClick:()=>f(e)},{default:()=>[n("\u6FC0\u6D3B")]})]})]})),!t.dataShow&&a("div",{class:s.emptyContainer},[a(g,{tips:"\u6682\u65E0\u6FC0\u6D3B\u7801",btnStatus:!1},null)])])])]})])])}});export{D as default};