2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
import{d as I,f as A,r as w,v as B,a1 as N,h as R,c as q,a as t,t as l,u as n,N as a,e as s,w as e,aK as f,i as g,R as z,aD as T,aE as F,a2 as $,E as D,al as M,am as K,an as P,V as Q,ao as U,p as W,g as G,_ as H}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as J}from"./weapp-4d690662.js";const L=i=>(W("data-v-ebffbed5"),i=i(),G(),i),O={class:"w-full p-5 bg-white"},X={class:"flex justify-between items-center mb-[20px]"},Y={class:"text-[20px]"},Z={class:"p-[20px]"},ee={class:"text-[16px] mb-[20px]"},te={class:"text-[14px] text-[#303133] font-[700]"},se={class:"text-[#999]"},ne={class:"mt-[20px] mb-[40px] h-[32px]"},ae={class:"text-[14px] text-[#303133] font-[700]"},le={class:"text-[#999]"},oe={class:"mt-[20px] mb-[40px] h-[32px]"},ce={class:"text-[14px] text-[#303133] font-[700]"},pe={class:"text-[#999]"},ie={class:"mt-[20px] mb-[40px] h-[32px]"},de={class:"text-[14px] text-[#303133] font-[700]"},re={class:"text-[#999]"},_e=L(()=>t("div",{class:"mt-[20px] mb-[40px] h-[32px]"},null,-1)),xe={class:"flex justify-center"},ue={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},fe={class:"mt-[22px] text-center"},me={class:"text-[14px] text-[#303133] font-[700]"},he=I({__name:"access",setup(i){const m=A(),h=w("/channel/weapp"),o=w(2),d=w("");B(async()=>{const p=await J();d.value=p.data.qr_code});const k=p=>{window.open(p,"_blank")},C=p=>{m.push({path:h.value})};return(p,c)=>{const b=T,E=F,r=N("CircleCheckFilled"),_=$,v=D,x=M,S=K,y=P,V=Q,j=U;return R(),q("div",O,[t("div",X,[t("span",Y,l(n(a)("title")),1)]),s(E,{modelValue:h.value,"onUpdate:modelValue":c[0]||(c[0]=u=>h.value=u),class:"demo-tabs",onTabChange:C},{default:e(()=>[s(b,{label:n(a)("weappAccessFlow"),name:"/channel/weapp"},null,8,["label"]),s(b,{label:n(a)("subscribeMessage"),name:"/channel/weapp/message"},null,8,["label"]),s(b,{label:n(a)("weappRelease"),name:"/channel/weapp/code"},null,8,["label"])]),_:1},8,["modelValue"]),t("div",Z,[t("p",ee,l(n(a)("weappInlet")),1),s(j,null,{default:e(()=>[s(y,{span:20},{default:e(()=>[s(S,{direction:"vertical"},{default:e(()=>[s(x,null,f({title:e(()=>[t("p",te,l(n(a)("weappAttestation")),1)]),description:e(()=>[t("span",se,l(n(a)("weappAttest")),1),t("div",ne,[s(v,{type:"primary",onClick:c[1]||(c[1]=u=>k("https://mp.weixin.qq.com/"))},{default:e(()=>[g(l(n(a)("clickAccess")),1)]),_:1})])]),_:2},[o.value>1?{name:"icon",fn:e(()=>[s(_,{size:"25px",class:"text-color"},{default:e(()=>[s(r)]),_:1})]),key:"0"}:o.value==1?{name:"icon",fn:e(()=>[t("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[t("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:e(()=>[t("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"}," 1")]),key:"2"}]),1024),s(x,null,f({title:e(()=>[t("p",ae,l(n(a)("weappSetting")),1)]),description:e(()=>[t("span",le,l(n(a)("emplace")),1),t("div",oe,[s(v,{type:"primary",plain:"",onClick:c[2]||(c[2]=u=>n(m).push("/channel/weapp/config"))},{default:e(()=>[g(l(n(a)("weappSettingBtn")),1)]),_:1})])]),_:2},[o.value>2?{name:"icon",fn:e(()=>[s(_,{size:"25px"},{default:e(()=>[s(r)]),_:1})]),key:"0"}:o.value==2?{name:"icon",fn:e(()=>[t("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[t("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:e(()=>[t("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"}," 2")]),key:"2"}]),1024),s(x,null,f({title:e(()=>[t("p",ce,l(n(a)("uploadVersion")),1)]),description:e(()=>[t("span",pe,l(n(a)("releaseCourse")),1),t("div",ie,[s(v,{type:"primary",plain:"",onClick:c[3]||(c[3]=u=>n(m).push("/channel/weapp/code"))},{default:e(()=>[g(l(n(a)("weappRelease")),1)]),_:1})])]),_:2},[o.value>3?{name:"icon",fn:e(()=>[s(_,{size:"25px"},{default:e(()=>[s(r)]),_:1})]),key:"0"}:o.value==3?{name:"icon",fn:e(()=>[t("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[t("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:e(()=>[t("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"}," 3")]),key:"2"}]),1024),s(x,null,f({title:e(()=>[t("p",de,l(n(a)("completeAccess")),1)]),description:e(()=>[t("span",re,l(n(a)("releaseCourse")),1),_e]),_:2},[o.value>4?{name:"icon",fn:e(()=>[s(_,{size:"25px"},{default:e(()=>[s(r)]),_:1})]),key:"0"}:o.value==4?{name:"icon",fn:e(()=>[t("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[t("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:e(()=>[t("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"}," 4")]),key:"2"}]),1024)]),_:1})]),_:1}),s(y,{span:4},{default:e(()=>[t("div",xe,[s(V,{class:"w-[180px] h-[180px]",src:d.value?n(z)(d.value):""},{error:e(()=>[t("div",ue,[t("span",null,l(d.value?n(a)("fileErr"):n(a)("emptyQrCode")),1)])]),_:1},8,["src"])]),t("div",fe,[t("p",me,l(n(a)("clickAccess2")),1)])]),_:1})]),_:1})])])}}});const Ve=H(he,[["__scopeId","data-v-ebffbed5"]]);export{Ve as default};
|