全栈小学生 e6c822aa8e up niucloud
2025-06-26 15:07:17 +08:00

2 lines
3.6 KiB
JavaScript

import{d as q,v as B,f as N,r as m,aq as R,o as T,h as $,c as j,e as a,w as s,a as t,t as o,u as e,k as n,i as u,z as I,ab as L,ac as M,E as U,ar as W,as as z,at as D,C as F,au as G,L as P}from"./index-f99f26c5.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as Q}from"./weapp-a53675ed.js";const H={class:"main-container"},J={class:"flex justify-between items-center"},K={class:"text-page-title"},O={class:"p-[20px]"},X={class:"panel-title !text-sm"},Y={class:"text-[14px] font-[700]"},Z={class:"text-[#999]"},ee={class:"mt-[20px] mb-[40px] h-[32px]"},te={class:"text-[14px] font-[700]"},se={class:"text-[#999]"},ae={class:"mt-[20px] mb-[40px] h-[32px]"},ne={class:"text-[14px] font-[700]"},oe={class:"text-[#999]"},le={class:"mt-[20px] mb-[40px] h-[32px]"},pe={class:"text-[14px] font-[700]"},ce={class:"text-[#999]"},ie=t("div",{class:"mt-[20px] mb-[40px] h-[32px]"},null,-1),_e={class:"flex justify-center"},re={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},de={class:"mt-[22px] text-center"},me={class:"text-[12px]"},Ee=q({__name:"access",setup(ue){const v=B(),i=N(),w=v.meta.title,x=m("/channel/weapp");m(2);const _=m(""),b=m({}),g=async()=>{await Q().then(({data:p})=>{b.value=p,_.value=p.qr_code})};R(async()=>{g()}),T(()=>{document.removeEventListener("visibilitychange",()=>{})});const C=p=>{window.open(p,"_blank")},y=p=>{i.push({path:x.value})};return(p,l)=>{const h=L,E=M,r=U,d=W,k=z,f=D,V=F,A=G,S=P;return $(),j("div",H,[a(S,{class:"card !border-none",shadow:"never"},{default:s(()=>[t("div",J,[t("span",K,o(e(w)),1)]),a(E,{modelValue:x.value,"onUpdate:modelValue":l[0]||(l[0]=c=>x.value=c),class:"mt-[20px]",onTabChange:y},{default:s(()=>[a(h,{label:e(n)("weappAccessFlow"),name:"/channel/weapp"},null,8,["label"]),a(h,{label:e(n)("subscribeMessage"),name:"/channel/weapp/message"},null,8,["label"]),a(h,{label:e(n)("weappRelease"),name:"/channel/weapp/code"},null,8,["label"])]),_:1},8,["modelValue"]),t("div",O,[t("h3",X,o(e(n)("weappInlet")),1),a(A,null,{default:s(()=>[a(f,{span:20},{default:s(()=>[a(k,{class:"!mt-[10px]",active:4,direction:"vertical"},{default:s(()=>[a(d,null,{title:s(()=>[t("p",Y,o(e(n)("weappAttestation")),1)]),description:s(()=>[t("span",Z,o(e(n)("weappAttest")),1),t("div",ee,[a(r,{type:"primary",onClick:l[1]||(l[1]=c=>C("https://mp.weixin.qq.com/"))},{default:s(()=>[u(o(e(n)("clickAccess")),1)]),_:1})])]),_:1}),a(d,null,{title:s(()=>[t("p",te,o(e(n)("weappSetting")),1)]),description:s(()=>[t("span",se,o(e(n)("emplace")),1),t("div",ae,[a(r,{type:"primary",onClick:l[2]||(l[2]=c=>e(i).push("/channel/weapp/config"))},{default:s(()=>[u(o(e(n)("weappSettingBtn")),1)]),_:1}),a(r,{type:"primary",plain:"",onClick:l[3]||(l[3]=c=>e(i).push("/channel/weapp/course"))},{default:s(()=>[u("配置教程")]),_:1})])]),_:1}),a(d,null,{title:s(()=>[t("p",ne,o(e(n)("uploadVersion")),1)]),description:s(()=>[t("span",oe,o(e(n)("releaseCourse")),1),t("div",le,[a(r,{type:"primary",plain:"",onClick:l[4]||(l[4]=c=>e(i).push("/channel/weapp/code"))},{default:s(()=>[u(o(e(n)("weappRelease")),1)]),_:1})])]),_:1}),a(d,null,{title:s(()=>[t("p",pe,o(e(n)("completeAccess")),1)]),description:s(()=>[t("span",ce,o(e(n)("releaseCourse")),1),ie]),_:1})]),_:1})]),_:1}),a(f,{span:4},{default:s(()=>[t("div",_e,[a(V,{class:"w-[180px] h-[180px]",src:_.value?e(I)(_.value):""},{error:s(()=>[t("div",re,[t("span",null,o(_.value?e(n)("fileErr"):e(n)("emptyQrCode")),1)])]),_:1},8,["src"])]),t("div",de,[t("p",me,o(e(n)("clickAccess2")),1)])]),_:1})]),_:1})])]),_:1})])}}});export{Ee as default};