You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong/public/assets/index.18ac7530.js

2 lines
39 KiB

11 months ago
import{$ as e,o as t,c as a,w as l,a as s,j as i,n as o,f as n,t as r,k as d,i as c,M as p,b as u,F as m,d as y,g,N as h,O as f,e as _,P as S,x as k,S as b,h as x,y as v,r as C,Q as w,R as L,B as I}from"./index-ae8bbb19.js";import{_ as $}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as T}from"./u-icon.b463ad8a.js";import{r as j}from"./uni-app.es.ee1d5b08.js";import{C as B}from"./index.88bc1a11.js";import{_ as A}from"./mp-html.c15e78a1.js";import{r as z}from"./myCoupon.f3c77da5.js";import{A as O}from"./index.0c0be40a.js";import{C as N}from"./index.002ef29d.js";import{A as P,G as M}from"./GoodsStatus.1f0790af.js";import{_ as G}from"./u-tag.5476fd14.js";import{h as D}from"./color.813a9497.js";import{A as R}from"./ActiveStatus.281bae5f.js";const U="page/detail";function W(t){return e.get(U,{pageId:t})}const E=$({props:{itemIndex:String,itemStyle:Object,params:Object},methods:{onTargetSearch(){this.$navTo("pages/search/index")}}},[["render",function(e,p,u,m,y,g){const h=d,f=c;return t(),a(f,{class:"diy-search"},{default:l((()=>[s(f,{class:i(["inner",u.itemStyle.searchStyle]),onClick:g.onTargetSearch},{default:l((()=>[s(f,{class:"search-input",style:o({textAlign:u.itemStyle.textAlign})},{default:l((()=>[s(h,{class:"search-icon iconfont icon-search"}),s(h,null,{default:l((()=>[n(r(u.params.placeholder),1)])),_:1})])),_:1},8,["style"])])),_:1},8,["class","onClick"])])),_:1})}],["__scopeId","data-v-0cb1efc8"]]),F={data:()=>({}),methods:{onLink(e){return!!e&&("PAGE"===e.type&&this.$navTo(e.param.path,e.param.query),"CUSTOM"===e.type&&this.$navTo(e.param.path,p(e.param.queryStr)),"URL"===e.type&&window.open(e.param.url),!0)}}};const H=$({name:"Images",props:{itemIndex:String,itemStyle:Object,params:Object,dataList:Array},mixins:[F],methods:{}},[["render",function(e,i,n,r,d,p){const h=g,f=c;return t(),a(f,{class:"diy-imageSingle",style:o({paddingBottom:2*n.itemStyle.paddingTop+"rpx",background:n.itemStyle.background})},{default:l((()=>[(t(!0),u(m,null,y(n.dataList,((i,r)=>(t(),a(f,{class:"item-image",key:r,style:o({padding:`${2*n.itemStyle.paddingTop}rpx ${2*n.itemStyle.paddingLeft}rpx 0`})},{default:l((()=>[s(f,{class:"nav-to",onClick:t=>e.onLink(i.link)},{default:l((()=>[s(h,{class:"image",src:i.imgUrl,mode:"widthFix"},null,8,["src"])])),_:2},1032,["onClick"])])),_:2},1032,["style"])))),128))])),_:1},8,["style"])}],["__scopeId","data-v-6836e2d3"]]);const Z=$({name:"Banner",props:{itemIndex:String,itemStyle:Object,params:Object,dataList:Array},mixins:[F],data:()=>({windowWidth:750,indicatorDots:!1,autoplay:!0,duration:800,imgHeights:[],imgCurrent:0}),created(){const e=this;uni.getSystemInfo({success({windowWidth:t}){e.windowWidth=t>750?750:t}})},methods:{_imagesHeight({detail:e}){const{width:t,height:a}=e,l=t/a,s=this.windowWidth/l;this.imgHeights.push(s)},_bindChange(e){this.imgCurrent=e.detail.current}}},[["render",function(e,n,r,d,p,_){const S=g,k=h,b=f,x=c;return t(),a(x,{class:"diy-banner",style:o({height:`${p.imgHeights[p.imgCurrent]}px`})},{default:l((()=>[s(b,{autoplay:p.autoplay,class:"swiper-box",duration:p.duration,circular:!0,interval:1e3*r.itemStyle.interval,onChange:_._bindChange},{default:l((()=>[(t(!0),u(m,null,y(r.dataList,((i,o)=>(t(),a(k,{key:o},{default:l((()=>[s(S,{mode:"widthFix",class:"slide-image",src:i.imgUrl,onClick:t=>e.onLink(i.link),onLoad:_._imagesHeight},null,8,["src","onClick","onLoad"])])),_:2},1024)))),128))])),_:1},8,["autoplay","duration","interval","onChange"]),s(x,{class:i(["indicator-dots",r.itemStyle.btnShape])},{default:l((()=>[(t(!0),u(m,null,y(r.dataList,((e,l)=>(t(),a(x,{class:i(["dots-item",{active:p.imgCurrent==l}]),style:o({backgroundColor:r.itemStyle.btnColor}),key:l},null,8,["class","style"])))),128))])),_:1},8,["class"])])),_:1},8,["style"])}],["__scopeId","data-v-55fd6fc7"]]);const V=$({name:"Window",props:{itemIndex:String,itemStyle:Object,params:Object,dataList:Array},mixins:[F],methods:{}},[["render",function(e,n,r,d,p,h){const f=g,S=c;return t(),a(S,{class:"diy-window",style:o({background:r.itemStyle.background,padding:`${r.itemStyle.paddingTop}px ${r.itemStyle.paddin