2024-11-18 08:02:10 +00:00
|
|
|
import{d as t,c as e,r as a,a as n,o as r,b as o,w as l,e as s,n as i,f as c,i as u,g as d,F as p,h as m,j as g,k as f,l as y,t as h,m as b,p as v,S as _,q as x,u as k,s as C,v as S,x as w,y as j,z as P,A as I,B as O,C as L,D as N,E as R,G as B,H as T,I as $,J as M,K as z}from"./index-616cf5a9.js";import{_ as F}from"./page-meta.5f39d1f3.js";import{_ as A}from"./u-search.eb6fb9e6.js";import{_ as U}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as Z}from"./u-image.36bdf32c.js";import{_ as J}from"./news-card.dc4c4147.js";import{_ as q}from"./router-navigate.cf3e6ea4.js";import{_ as Y}from"./u-icon.9ed44c42.js";import{_ as D}from"./tabbar.vue_vue_type_script_setup_true_lang.fd4b6a2f.js";import"./icon_visit.713e13e8.js";import"./u-badge.ac7ac75d.js";const E=U(t({__name:"search",props:{pageMeta:{type:Object,default:()=>[]},content:{type:Object,default:()=>({})},styles:{type:Object,default:()=>({})},isLargeScreen:{type:Boolean},percent:{type:Number}},setup(t){const d=t;return e((()=>d.pageMeta[0].content)),(e,d)=>{const p=a(n("u-search"),A),m=u;return t.isLargeScreen?c("",!0):(r(),o(m,{key:0,url:"/pages/search/search",class:"px-[24rpx] mt-[24rpx] mb-[30rpx]",style:i({opacity:1-t.percent}),"hover-class":"none"},{default:l((()=>[s(p,{placeholder:"请输入关键词搜索",height:72,disabled:!0,"show-action":!1,bgColor:"#ffffff"})])),_:1},8,["style"]))}}}),[["__scopeId","data-v-1932de42"]]);const G=U({name:"u-swiper",emits:["click","change"],props:{list:{type:Array,default:()=>[]},title:{type:Boolean,default:!1},indicator:{type:Object,default:()=>({})},borderRadius:{type:[Number,String],default:8},interval:{type:[String,Number],default:3e3},mode:{type:String,default:"round"},height:{type:[Number,String],default:250},indicatorPos:{type:String,default:"bottomCenter"},effect3d:{type:Boolean,default:!1},effect3dPreviousMargin:{type:[Number,String],default:50},autoplay:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},circular:{type:Boolean,default:!0},imgMode:{type:String,default:"aspectFill"},name:{type:String,default:"image"},bgColor:{type:String,default:"#f3f4f6"},current:{type:[Number,String],default:0},titleStyle:{type:Object,default:()=>({})}},watch:{list(t,e){t.length!==e.length&&(this.uCurrent=0)},current(t){this.uCurrent=t}},data(){return{uCurrent:this.current}},computed:{justifyContent(){return"topLeft"==this.indicatorPos||"bottomLeft"==this.indicatorPos?"flex-start":"topCenter"==this.indicatorPos||"bottomCenter"==this.indicatorPos?"center":"topRight"==this.indicatorPos||"bottomRight"==this.indicatorPos?"flex-end":void 0},titlePaddingBottom(){let t=0;return"none"==this.mode?"12rpx":(t=["bottomLeft","bottomCenter","bottomRight"].indexOf(this.indicatorPos)>=0&&"number"==this.mode?"60rpx":["bottomLeft","bottomCenter","bottomRight"].indexOf(this.indicatorPos)>=0&&"number"!=this.mode?"40rpx":"12rpx",t)},elCurrent(){return Number(this.current)}},methods:{listClick(t){this.$emit("click",t)},change(t){let e=t.detail.current;this.uCurrent=e,this.$emit("change",e)},animationfinish(t){}}},[["render",function(t,e,a,n,u,k){const C=b,S=v,w=_,j=x;return r(),o(S,{class:"u-swiper-wrap",style:i({borderRadius:`${a.borderRadius}rpx`})},{default:l((()=>[s(j,{current:k.elCurrent,onChange:k.change,onAnimationfinish:k.animationfinish,interval:a.interval,circular:a.circular,duration:a.duration,autoplay:a.autoplay,"previous-margin":a.effect3d?a.effect3dPreviousMargin+"rpx":"0","next-margin":a.effect3d?a.effect3dPreviousMargin+"rpx":"0",style:i({height:a.height+"rpx",backgroundColor:a.bgColor})},{default:l((()=>[(r(!0),d(p,null,m(a.list,((t,e)=>(r(),o(w,{class:"u-swiper-item",key:e},{default:l((()=>[s(S,{class:g(["u-list-image-wrap",[u.uCurrent!=e?"u-list-scale":""]]),onClick:f((t=>k.listClick(e)),["stop","prevent"]),style:i({borderRadius:`${a.borderRadius}rpx`,transform:a.effect3d&&u.uCurrent!=e?"scaleY(0.9)":"scaleY(1)",margin:a.effect3d&&u.uCurrent!=e?"0 20rpx":0})},{default:l((()=>[s(C,{class:"u-swiper-image",src:t[a.name]||t,mode:a.imgMode},null,8,["src","mode"]),a.title&&t.title?(r(),o(S,{key:0,class:"u-swiper-title
|