niucloud/niucloud/public/admin/assets/access-25232b03.js
wangchen147 53e99ccc30 0.2.1
2024-04-15 09:44:18 +08:00

2 lines
5.4 KiB
JavaScript

import{d as V,f as A,r as w,v as q,a8 as B,h as N,c as R,a as t,t as o,u as n,N as a,e as s,w as e,a$ as f,i as g,R as z,aO as T,aP as $,a7 as F,E as M,ao as P,ap as D,aq as O,Y as Q,ar as U,p as W,g as Y}from"./index-022827e1.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as G}from"./weapp-bd416c0f.js";import{_ as H}from"./_plugin-vue_export-helper-c27b6911.js";const J=i=>(W("data-v-165848f0"),i=i(),Y(),i),K={class:"w-full p-5 bg-white"},L={class:"flex justify-between items-center mb-[20px]"},X={class:"text-page-title"},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]"},oe={class:"text-[#999]"},le={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=J(()=>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=V({__name:"access",setup(i){const m=A(),h=w("/channel/weapp"),l=w(2),d=w("");q(async()=>{const p=await G();d.value=p.data.qr_code});const k=p=>{window.open(p,"_blank")},C=p=>{m.push({path:h.value})};return(p,c)=>{const v=T,E=$,r=B("CircleCheckFilled"),_=F,b=M,x=P,S=D,y=O,j=Q,I=U;return N(),R("div",K,[t("div",L,[t("span",X,o(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(v,{label:n(a)("weappAccessFlow"),name:"/channel/weapp"},null,8,["label"]),s(v,{label:n(a)("subscribeMessage"),name:"/channel/weapp/message"},null,8,["label"]),s(v,{label:n(a)("weappRelease"),name:"/channel/weapp/code"},null,8,["label"])]),_:1},8,["modelValue"]),t("div",Z,[t("p",ee,o(n(a)("weappInlet")),1),s(I,null,{default:e(()=>[s(y,{span:20},{default:e(()=>[s(S,{direction:"vertical"},{default:e(()=>[s(x,null,f({title:e(()=>[t("p",te,o(n(a)("weappAttestation")),1)]),description:e(()=>[t("span",se,o(n(a)("weappAttest")),1),t("div",ne,[s(b,{type:"primary",onClick:c[1]||(c[1]=u=>k("https://mp.weixin.qq.com/"))},{default:e(()=>[g(o(n(a)("clickAccess")),1)]),_:1})])]),_:2},[l.value>1?{name:"icon",fn:e(()=>[s(_,{size:"25px",class:"text-color"},{default:e(()=>[s(r)]),_:1})]),key:"0"}:l.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,o(n(a)("weappSetting")),1)]),description:e(()=>[t("span",oe,o(n(a)("emplace")),1),t("div",le,[s(b,{type:"primary",plain:"",onClick:c[2]||(c[2]=u=>n(m).push("/channel/weapp/config"))},{default:e(()=>[g(o(n(a)("weappSettingBtn")),1)]),_:1})])]),_:2},[l.value>2?{name:"icon",fn:e(()=>[s(_,{size:"25px"},{default:e(()=>[s(r)]),_:1})]),key:"0"}:l.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,o(n(a)("uploadVersion")),1)]),description:e(()=>[t("span",pe,o(n(a)("releaseCourse")),1),t("div",ie,[s(b,{type:"primary",plain:"",onClick:c[3]||(c[3]=u=>n(m).push("/channel/weapp/code"))},{default:e(()=>[g(o(n(a)("weappRelease")),1)]),_:1})])]),_:2},[l.value>3?{name:"icon",fn:e(()=>[s(_,{size:"25px"},{default:e(()=>[s(r)]),_:1})]),key:"0"}:l.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,o(n(a)("completeAccess")),1)]),description:e(()=>[t("span",re,o(n(a)("releaseCourse")),1),_e]),_:2},[l.value>4?{name:"icon",fn:e(()=>[s(_,{size:"25px"},{default:e(()=>[s(r)]),_:1})]),key:"0"}:l.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(j,{class:"w-[180px] h-[180px]",src:d.value?n(z)(d.value):""},{error:e(()=>[t("div",ue,[t("span",null,o(d.value?n(a)("fileErr"):n(a)("emptyQrCode")),1)])]),_:1},8,["src"])]),t("div",fe,[t("p",me,o(n(a)("clickAccess2")),1)])]),_:1})]),_:1})])])}}});const Ie=H(he,[["__scopeId","data-v-165848f0"]]);export{Ie as default};