index.6bf5f004.js 6.4 KB

1
  1. import{q as l,r as i}from"./index.1f84bfe1.js";import{d as p,c as e,a as t,k as o,K as r}from"./vendor.9f3c6e4d.js";var c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABepJREFUWEfVWU2MFEUU/l7PriA/M1UD041KYkRAxAOInoxGPKgLRg5oIj+K4sXIyYAXwy6JgnggqCdIPCjRCGqiiSi66EGJxpP4cxBWVAiEID2zTNXsogvsTj9TPd2zvc3szvTsTCJ1mnTXe/X1m6/e9+oVYRLjPDCdstl7ifl+Bu4gYCEzzwYwM3A7SET9DJwg4DcmOsLF4vdzgH+aXZaSGjJAhWz2YTA/w8AqANcn9DFEwEEQ7csVi4cJ4CT2iQC7s2athudtA7AkySLjzSXgV7asV5wLFz5p1F9DgPPp9Hy2rD0genAcxycB/EBAH5jPMjBo5pGhBtFcBhYBuAfAvFr2xPw1PG+TPTDwZz3gdQEXpFzjAW9FeOn7JOCkx/zOVOb9olQygOsOncnMu0S0jog21gA/aAHP5ZQ6MJGjCQHnpdzBwNaYg9Ng7rG13k9AuS7KGhMYSOWlXAtgB4Cbo1MIeNVWqnsCGtV+5Uq5B8Dz4VsCPGZ+o6z1thuBf5sBGrc5B0zrlPJlBjYzYIXvLWBvTqlNNelT62E8sgSUAKyzlfqiFUDjPvJSrmDAUCETCVDNSF9FiYCzozxidgnosrX+pR1gQ59KiCVXgMMgciKRXhfn9BjAJhsglTrKQDrYWCUwL2832BCgK8QSEB2JRHqQyuVl0ewxBrArxFdh6jKcBfBou2gw3r9l6AHg85DTJuXZWj8UoUrlZyAKH1cdMe92tH4xKQ1cKc1G3R7Y9ThK7U3qoyDlLg8YXduyHgvFxY+wkdu8lD9HFOx0WanFSbPB3zNm5FKdnecY6AgoNeIND9805+LFfBLQJnukpDwWpjyjiDml7jQy7gPOZ7NdzPxlJLobHK3fS7KImVvIZJZ5lnU0amd53t25UmnMs0b8ulI+CaC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td4rFhs+RdSkRj8Y1dbEYB++XpsPD417dMtFFCyi08ur2P3doEzRRv2OUAAAAAElFTkSuQmCC",x="./assets/live_bg.1e1284cb.png",A="./assets/live_class.c89433d2.png",F="./assets/open_live.3f689a8c.png";const d="_openLive_etct8_1";var m={openLive:d},v=p({name:"open-live",computed:{users(){return l.user.data},btnStatus(){const u=this.users,s=this.fansNum,n=this.overClassNum;return(u==null?void 0:u.fansNum)>=s&&(u==null?void 0:u.expTime)>=n}},data(){return{fansNum:0,overClassNum:0,openStatus:!1}},async mounted(){var s;const u=(s=l.user.data)==null?void 0:s.liveFlag;l.openLiveStatus=u===1;try{(await i.get("/api-website/sysConfig/queryByParamNameList",{params:{paramNames:"open_live_fans_num,open_list_over_class"}})).data.forEach(a=>{a.paramName==="open_live_fans_num"?this.fansNum=Number(a.paramValue):a.paramName==="open_list_over_class"&&(this.overClassNum=Number(a.paramValue))})}catch{}},methods:{async onOpenLive(){try{await i.get("/api-website/teacher/openLive",{}),this.openStatus=!0}catch{}},getRate(u,s){return s>0?u/s>=1?"100%":`${(u/s*100).toFixed(2)}%`:"100%"}},render(){return e("div",{class:m.openLive},[e("div",{class:"text-2xl font-semibold text-black leading-none px-6 pt-5 pb-8 flex items-center justify-between"},[e("span",null,[t("\u5F00\u901A\u76F4\u64AD")]),e(o,{type:"primary",round:!0,size:"large",disabled:!this.btnStatus,onClick:this.onOpenLive},{default:()=>[t("\u5F00\u901A\u76F4\u64AD")]})]),e("div",{class:"px-6"},[!this.btnStatus&&e("div",{class:"py-3 px-[18px] rounded-lg text-sm text-[#E11212] flex items-center",style:{background:"linear-gradient(139deg, #FFEEEE 0%, #FFDDDD 100%)"}},[e("img",{src:c,class:"w-[22px] h-[22px] mr-2.5"},null),t("\u4F60\u5C1A\u672A\u8FBE\u5230\u5F00\u901A\u76F4\u64AD\u7684\u6761\u4EF6")]),e("div",{class:["text-2xl text-[#333] pb-4 mt-8",!this.btnStatus&&"mt-8"]},[t("\u5F00\u901A\u6761\u4EF6")]),e("div",{class:["flex justify-between"]},[e("div",{class:"w-[334px] rounded-[10px] px-7 py-7",style:{boxShadow:"0px 2px 10px 0px rgba(0,0,0,0.1000)"}},[e("div",{class:"flex justify-between items-center"},[e("span",{class:"text-xl text-[#666]"},[e("i",{class:"text-[#E32121] pr-1"},[t("*")]),t("\u7C89\u4E1D\u6570")]),e("div",{class:"text-2xl text-[#999] font-semibold flex items-center"},[e("span",{class:"text-4xl text-black leading-none"},[this.fansNum]),e("span",{class:"mt-1 text-xl text-black"},[t("\u4EBA")])])])]),e("div",{class:"w-[334px] rounded-[10px] px-7 py-7",style:{boxShadow:"0px 2px 10px 0px rgba(0,0,0,0.1000)"}},[e("div",{class:"flex justify-between items-center"},[e("span",{class:"text-xl text-[#666]"},[e("i",{class:"text-[#E32121] pr-1"},[t("*")]),t("\u8BFE\u7A0B\u6570")]),e("div",{class:"text-2xl text-[#999] font-semibold flex items-center"},[e("span",{class:"text-4xl text-black leading-none"},[this.overClassNum]),e("span",{class:"mt-1 text-xl text-black"},[t("\u8BFE\u65F6")])])])])]),e("div",{class:"mt-20"},[e("h2",{class:"text-2xl text-[#333] mb-4"},[t("\u76F4\u64AD")]),e("div",{class:"text-lg text-[#999]"},[t("\u5F00\u901A\u76F4\u64AD\u529F\u80FD\u540E\uFF0C\u60A8\u53EF\u4EE5\u521B\u5EFA\u81EA\u5DF1\u7684\u76F4\u64AD\u95F4\u5F00\u542F\u76F4\u64AD\u3002")]),e("img",{src:x,class:"w-[422px] m-auto pt-16"},null)]),e("div",{class:"mt-20 mb-14"},[e("h2",{class:"text-2xl text-[#333] mb-4"},[t("\u76F4\u64AD\u8BFE")]),e("div",{class:"text-lg text-[#999]"},[t("\u60A8\u53EF\u5236\u5B9A\u6559\u5B66\u65B9\u6848\u8BBE\u7F6E\u76F4\u64AD\u8BFE\u7A0B\uFF0C\u5B66\u5458\u8D2D\u4E70\u540E\uFF0C\u60A8\u53EF\u5728\u76F4\u64AD\u95F4\u5BF9\u8D2D\u4E70\u76F4\u64AD\u8BFE\u7684\u5B66\u5458\u8FDB\u884C\u76F4\u64AD\u6559\u5B66\uFF0C\u76F4\u64AD\u8BFE\u7A0B\u65E0\u4EBA\u6570\u4E0A\u9650\uFF0C\u53EF\u6781\u5927\u7684\u63D0\u9AD8\u8BFE\u7A0B\u6536\u5165\u3002")]),e("img",{src:A,class:"w-[422px] m-auto pt-16"},null)])]),e(r,{modelValue:this.openStatus,"onUpdate:modelValue":u=>this.openStatus=u,closeOnClickModal:!1,closeOnPressEscape:!1},{default:()=>[e("div",{class:"text-center"},[e("img",{src:F,class:"w-[290px] m-auto"},null),e("p",{class:"text-xl font-semibold text-[#333] pt-7 pb-8"},[t("\u5F00\u901A\u6210\u529F\uFF0C\u5FEB\u53BB\u521B\u5EFA\u76F4\u64AD\u8BFE\u5427")]),e(o,{type:"primary",round:!0,class:"!w-44 !h-12 m-auto",onClick:()=>{this.openStatus=!1,this.$router.replace("/userInfo/liveOperation?type=create")}},{default:()=>[t("\u521B\u5EFA\u76F4\u64AD\u8BFE")]})])]})])}});export{v as default};