2023-12-01 16:44:57 +08:00

2 lines
5.6 KiB
JavaScript

import{d as j,r as b,o as S,V as B,e as I,f as T,g as t,B as a,u as e,y as s,x as o,i as q,D as w,A as v}from"./base-2de02574.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index-6a41cdeb.js";/* empty css */import{a as N}from"./vue-router-834a68c8.js";import{t as n}from"./index-a7cd5616.js";import{c as z}from"./common-655c495e.js";import{g as F}from"./wechat-2b4daa96.js";import{a as R,E as D}from"./index-78eb4cbf.js";import{E as M}from"./index-53431221.js";import{E as $}from"./index-84eb3c18.js";import{a as P,E as Q}from"./index-db9f292d.js";import{E as U,a as W}from"./index-6b1f8a1b.js";import{E as G}from"./index-afc66c39.js";import{_ as H}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-29aaa146.js";import"./index-e049ae93.js";import"./el-main-e7ca7755.js";import"./index-907c8fa3.js";import"./el-overlay-c29a408e.js";import"./event-30fa88cc.js";import"./index-fa3f6669.js";import"./focus-trap-852901de.js";import"./index-a556d0d2.js";import"./index-53f4bde2.js";import"./el-form-item-aacba116.js";/* empty css *//* empty css */import"./index-99061637.js";import"./index-f34dc67c.js";import"./index-389593d1.js";import"./index-9c3282b5.js";import"./strings-258503d1.js";import"./index-17e30841.js";import"./debounce-b627eb85.js";import"./position-a4d7d9b3.js";const J={class:"w-full p-5 bg-white"},K={class:"flex justify-between items-center mb-[20px]"},L={class:"text-[20px]"},O={class:"p-[20px]"},X={class:"text-[16px] mb-[20px]"},Y={class:"text-[14px] text-[#303133] font-[700]"},Z={class:"text-[#999]"},ee={class:"mt-[20px] mb-[40px] h-[32px]"},te={class:"text-[14px] text-[#303133] font-[700]"},oe={class:"text-[#999]"},se={class:"mt-[20px] mb-[40px] h-[32px]"},ne={class:"text-[14px] text-[#303133] font-[700]"},ae={class:"text-[#999]"},le={class:"mt-[20px] mb-[40px] h-[32px]"},ce={class:"flex justify-center"},ie={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},pe={class:"mt-[22px] text-center"},re={class:"text-[14px] text-[#303133] font-[700]"},me=j({__name:"access",setup(de){const d=N();let i=b("/website/channel/wechat"),c=b(2),m=b("");S(async()=>{let p=await F();m.value=p.data.qr_code});const y=p=>{window.open(p,"_blank")},k=p=>{d.push({path:i.value})};return(p,l)=>{const _=R,E=D,x=B("CircleCheckFilled"),f=M,u=$,h=P,C=Q,g=U,A=G,V=W;return I(),T("div",J,[t("div",K,[t("span",L,a(e(n)("title")),1)]),s(E,{modelValue:e(i),"onUpdate:modelValue":l[0]||(l[0]=r=>q(i)?i.value=r:i=r),class:"demo-tabs",onTabChange:k},{default:o(()=>[s(_,{label:e(n)("wechatAccessFlow"),name:"/website/channel/wechat"},null,8,["label"]),s(_,{label:e(n)("customMenu"),name:"/website/channel/wechat/menu"},null,8,["label"]),s(_,{label:e(n)("wechatTemplate"),name:"/website/channel/wechat/message"},null,8,["label"])]),_:1},8,["modelValue"]),t("div",O,[t("p",X,a(e(n)("wechatInlet")),1),s(V,null,{default:o(()=>[s(g,{span:20},{default:o(()=>[s(C,{direction:"vertical"},{default:o(()=>[s(h,null,w({title:o(()=>[t("p",Y,a(e(n)("wechatAttestation")),1)]),description:o(()=>[t("span",Z,a(e(n)("wechatAttestation1")),1),t("div",ee,[s(u,{type:"primary",onClick:l[1]||(l[1]=r=>y("https://mp.weixin.qq.com/"))},{default:o(()=>[v(a(e(n)("clickAccess")),1)]),_:1})])]),_:2},[e(c)>1?{name:"icon",fn:o(()=>[s(f,{size:"25px",class:"text-color"},{default:o(()=>[s(x)]),_:1})]),key:"0"}:e(c)==1?{name:"icon",fn:o(()=>[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:o(()=>[t("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"},"1")]),key:"2"}]),1024),s(h,null,w({title:o(()=>[t("p",te,a(e(n)("wechatSetting")),1)]),description:o(()=>[t("span",oe,a(e(n)("wechatSetting1")),1),t("div",se,[s(u,{type:"primary",plain:"",onClick:l[2]||(l[2]=r=>e(d).push("/website/channel/wechat/config"))},{default:o(()=>[v(a(e(n)("settingInfo")),1)]),_:1})])]),_:2},[e(c)>2?{name:"icon",fn:o(()=>[s(f,{size:"25px"},{default:o(()=>[s(x)]),_:1})]),key:"0"}:e(c)==2?{name:"icon",fn:o(()=>[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:o(()=>[t("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"},"2")]),key:"2"}]),1024),s(h,null,w({title:o(()=>[t("p",ne,a(e(n)("wechatAccess")),1)]),description:o(()=>[t("span",ae,a(e(n)("wechatAccess")),1),t("div",le,[s(u,{type:"primary",plain:"",onClick:l[3]||(l[3]=r=>e(d).push("/website/channel/wechat/course"))},{default:o(()=>[v(a(e(n)("releaseCourse")),1)]),_:1})])]),_:2},[e(c)>3?{name:"icon",fn:o(()=>[s(f,{size:"25px"},{default:o(()=>[s(x)]),_:1})]),key:"0"}:e(c)==3?{name:"icon",fn:o(()=>[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:o(()=>[t("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"},"3")]),key:"2"}]),1024)]),_:1})]),_:1}),s(g,{span:4},{default:o(()=>[t("div",ce,[s(A,{class:"w-[180px] h-[180px]",src:e(m)?e(z)(e(m)):""},{error:o(()=>[t("div",ie,[t("span",null,a(e(m)?e(n)("fileErr"):e(n)("emptyQrCode")),1)])]),_:1},8,["src"])]),t("div",pe,[t("p",re,a(e(n)("clickAccess2")),1)])]),_:1})]),_:1})])])}}});const Ze=H(me,[["__scopeId","data-v-19de375a"]]);export{Ze as default};