niucloud-admin/niucloud/public/admin/assets/overview-e7728a23.js
2023-10-24 14:30:48 +08:00

2 lines
3.5 KiB
JavaScript

import{d as C,r as A,R as B,Q as I,e as m,f as d,g as t,B as o,u as e,y as _,x as i,F as S,z as R,v as F,A as N,H as V,n as z,aP as D,aQ as P}from"./base-06478700.js";/* empty css *//* empty css */import{_ as Q}from"./apply_empty-78684083.js";/* empty css *//* empty css *//* empty css */import{_ as j}from"./app_store_default-c4798c2d.js";import{t as p}from"./index-7ea27073.js";import{k as H,a0 as T}from"./index-54d728c0.js";import{d as U}from"./common-92a35870.js";import{a as $}from"./vue-router-d09a2c28.js";import{E as q}from"./index-c2f001d3.js";import{E as G}from"./index-543fb162.js";import{E as J}from"./index-8c476f28.js";import{E as K}from"./index-b56195b5.js";import{v as M}from"./directive-cb2d3366.js";import{_ as O}from"./_plugin-vue_export-helper-c27b6911.js";import"./event-10eba222.js";import"./index-2fcd1254.js";import"./index-adb89d14.js";import"./el-main-9a0960e7.js";import"./index-6b67c4ac.js";import"./el-overlay-42a687c6.js";import"./index-9fe5de95.js";import"./focus-trap-3e826cdc.js";import"./index-f27d6ce0.js";import"./index-818c0ce2.js";import"./el-form-item-314d006d.js";/* empty css */import"./el-tooltip-58212670.js";import"./index-b52d0f2a.js";import"./index-b68e8463.js";import"./index-2a269c7c.js";import"./index-e4abfaa5.js";import"./index-9ee9102c.js";import"./index-b6a184ba.js";import"./debounce-1db848fd.js";import"./position-c3bcd0be.js";const u=r=>(D("data-v-e73d39d0"),r=r(),P(),r),W={class:"main-container"},X={class:"flex justify-between items-center"},Y={class:"font-600 text-[20px] text-[#222]"},Z=u(()=>t("span",{class:"iconfont iconanzhuang mr-[9px]"},null,-1)),tt={class:"flex flex-wrap mt-[28px]"},ot=["onClick"],et={class:"flex items-center"},st=u(()=>t("div",{class:"image-slot"},[t("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:j})],-1)),it={class:"flex-1 font-600 text-[14px] text-[#222] ml-[12px]"},pt={class:"font-500 text-[13px] text-[#6D7278] mt-[14px]"},rt=u(()=>t("div",{class:"w-[230px] mx-auto"},[t("img",{src:Q,class:"max-w-full",alt:""})],-1)),at={class:"flex items-center"},nt=C({__name:"overview",setup(r){const x=$(),v=H(),s=A(!0),a=B({appList:[]});(()=>{s.value=!0,T().then(n=>{a.appList=n.data,s.value=!1}).catch(()=>{s.value=!1})})();const f=()=>{x.push("tools/app_store")},h=n=>{let l=v.addonIndexRoute[n];l?x.push({name:l}):f()},g=()=>{window.open("https://www.niucloud.com/product/")};return(n,l)=>{const w=q,y=G,k=J,E=K,b=M;return I((m(),d("div",W,[t("div",{class:z(["h-[480px] box-border px-[60px] pt-[40px]",a.appList.length?"overview-top":""])},[t("div",X,[t("div",Y,o(e(p)("app")),1),_(w,{onClick:f},{default:i(()=>[Z,t("span",null,o(e(p)("installApp")),1)]),_:1})]),t("div",tt,[(m(!0),d(S,null,R(a.appList,(c,L)=>(m(),d("div",{key:L,class:"app-item w-[284px] box-border p-[18px] pb-[24px] bg-[#fff] rounded-[8px] cursor-pointer mr-[24px] mb-[24px]",onClick:mt=>h(c.key)},[t("div",et,[_(y,{class:"w-[40px] h-[40px] rounded-[8px]",src:e(U)(c.icon),fit:"contain"},{error:i(()=>[st]),_:2},1032,["src"]),t("div",it,o(c.title),1)]),t("div",pt,o(c.desc),1)],8,ot))),128)),!a.appList.length&&!s.value?(m(),F(E,{key:0,class:"mx-auto overview-empty"},{image:i(()=>[rt]),description:i(()=>[t("p",at,[t("span",null,o(e(p)("descriptionLeft")),1),_(k,{type:"primary",onClick:g},{default:i(()=>[N(o(e(p)("link")),1)]),_:1}),t("span",null,o(e(p)("descriptionRight")),1)])]),_:1})):V("",!0)])],2)])),[[b,s.value]])}}});const Wt=O(nt,[["__scopeId","data-v-e73d39d0"]]);export{Wt as default};