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