2024-06-14 10:09:41 +08:00
|
|
|
import{C as H,w as j,D as z,F as Q,B as W,L as J,b as X,a as Y,M as Z,N as ee,d as te,e as ae,f as le}from"./element-plus.a40e8d80.js";import{d as G,b as ue}from"./index.b0c4f970.js";import{d as C,r as V,o as p,c as S,a as E,V as B,a7 as T,Q as ne,U as F,u as t,T as se,W as r,a0 as oe,w as O,O as f,a8 as ie,P as de,M as P,j as x,b as D,S as I,s as pe,_ as re}from"./@vue.c3e77981.js";import{_ as ce}from"./index.vue_vue_type_script_setup_true_lang.4ac5ccb7.js";import{u as me}from"./usePaging.d25ebf19.js";import{m as _e}from"./article.01264e5f.js";import{I as fe}from"./@element-plus.12c58ce2.js";import{P as Ee}from"./index.25babf05.js";var g=(u=>(u.SHOP_PAGES="shop",u.APPTOOL="application_tool",u.OTHER_LINK="other_link",u))(g||{}),e=(u=>(u.SHOP_PAGES="shop",u.ARTICLE_LIST="article",u.CUSTOM_LINK="custom",u))(e||{});const he={class:"shop-pages h-[458px]"},ye={class:"link-list flex flex-wrap"},Ae=["onClick"],Se=C({__name:"shop-pages",props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(u,{emit:A}){const c=A,h=V([{path:"/pages/index/index",name:"\u5546\u57CE\u9996\u9875",type:e.SHOP_PAGES,canTab:!0},{path:"/pages/news/news",name:"\u6587\u7AE0\u8D44\u8BAF",type:e.SHOP_PAGES,canTab:!0},{path:"/pages/user/user",name:"\u4E2A\u4EBA\u4E2D\u5FC3",type:e.SHOP_PAGES,canTab:!0},{path:"/pages/collection/collection",name:"\u6211\u7684\u6536\u85CF",type:e.SHOP_PAGES},{path:"/pages/customer_service/customer_service",name:"\u8054\u7CFB\u5BA2\u670D",type:e.SHOP_PAGES},{path:"/pages/user_set/user_set",name:"\u4E2A\u4EBA\u8BBE\u7F6E",type:e.SHOP_PAGES},{path:"/pages/as_us/as_us",name:"\u5173\u4E8E\u6211\u4EEC",type:e.SHOP_PAGES},{path:"/pages/user_data/user_data",name:"\u4E2A\u4EBA\u8D44\u6599",type:e.SHOP_PAGES},{path:"/pages/agreement/agreement",name:"\u9690\u79C1\u653F\u7B56",query:{type:"privacy"},type:e.SHOP_PAGES},{path:"/pages/agreement/agreement",name:"\u670D\u52A1\u534F\u8BAE",query:{type:"service"},type:e.SHOP_PAGES},{path:"/pages/search/search",name:"\u641C\u7D22",type:e.SHOP_PAGES},{path:"/packages/pages/user_wallet/user_wallet",name:"\u6211\u7684\u94B1\u5305",type:e.SHOP_PAGES}]),i=l=>{c("update:modelValue",l)};return(l,s)=>(p(),S("div",he,[E("div",ye,[(p(!0),S(B,null,T(t(h),(_,a)=>(p(),S("div",{class:ne(["link-item border border-br px-5 py-[5px] rounded-[3px] cursor-pointer mr-[10px] mb-[10px]",{"border-primary text-primary":u.modelValue.path==_.path&&u.modelValue.name==_.name}]),key:a,onClick:n=>i(_)},F(_.name),11,Ae))),128))])]))}}),ve={class:"custom-link h-[428px] mt-[30px]"},Pe={class:"flex flex-wrap items-center"},ge={class:"ml-4 flex-1 min-w-[100px]"},xe=E("div",{class:"form-tips"}," \u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5E26\u6709\u201Chttps://\u201D\u6216\u201Chttp://\u201D\u7684\u94FE\u63A5\u5730\u5740\uFF0C\u94FE\u63A5\u7684\u57DF\u540D\u5FC5\u987B\u5728\u5FAE\u4FE1\u516C\u4F17\u5E73\u53F0\u8BBE\u7F6E\u4E1A\u52A1\u57DF\u540D ",-1),Ve=C({__name:"custom-link",props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(u,{emit:A}){const c=A,h=i=>{c("update:modelValue",{path:"/pages/webview/webview",query:{url:i},type:e.CUSTOM_LINK})};return(i,l)=>{var _;const s=H;return p(),S("div",ve,[E("div",Pe,[se(" \u81EA\u5B9A\u4E49\u94FE\u63A5 "),E("div",ge,[r(s,{"model-value":(_=u.modelValue.query)==null?void 0:_.url,placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740",onInput:h},null,8,["model-value"])])]),xe])}}}),Ce={class:"article-list"},ke={class:"flex row-center"},Fe={class:"flex items-center"},Oe={class:"ml-4 overflow-hidden"},be={class:"text-base line-clamp-2"},we={class:"flex justify-end mt-4"},Le=C({__name:"article-list",props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue"],setup(u,{emit:A}){const c=u,h=A,i=V({path:"/pages/news_detail/news_detail",name:"",query:{},type:e.ARTICLE_LIST}),l=oe({name:"",is_show:1}),{pager:s,getLists:_,resetPage:a,resetParams:n}=me({fetchFun:_e,params:l}),m=d=>d==Number(i.value.id),v=d=>{i.value={id:d.id,name:d.title,path:"/pages/news_detail/news_detail",query:{id:d.id},type:e.ARTICLE_LIST},h("update:modelValue",
|