1 |
- import{C as b}from"./index.bcab3155.js";import{d as c,a as e,k as z,l as g,u as r,j as d,I as p,ai as u,x as h,aj as m,v as j,G as v,H as M}from"./vendor.555770a3.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as I,T as f}from"./index.554903f4.js";import{_ as S}from"./icon-address.40440061.js";import{_ as B}from"./index.01b1afe0.js";import{_ as Q,i as x}from"./icon-shop-cart.37434050.js";/* empty css */import{r as E,e as W,p as C}from"./index.2ac3bcfb.js";import{C as D}from"./index.5981f895.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */var k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAytJREFUSEvllltIVFEUhv9/7ZlRpFQslZAoKaKLFZmIgVGp9dCFCMpAKCpSJKILFkYIWlqRQUFlUEQGgUQQglIgqfUQaJeHSEQIu4hEiBKGWD40s+PMzBnPmYszRvjSwDDnnFl7f/v/91prH2KGP5xhHv5zoG47lQbXrEQ4fw4xv35sKvt19/VExE2kQ8ePMvvYcKTYEEt1a1kCPInHISyFkkyIAKQHIq8gcoWF55utk+nXF4rhURVwSg5AAWnE9wOeOxgdv8FNNRPWeBtQPyrPAJxPIFztBQnh+zW/xr1qhNNZhjQIhtEIsgTKWJQ1PjDuLRxqO1eeGDKhAaC+XeZEArpBZkeGBeDNiFN1cKMTlKTwCwvEdiFn4Xqy2G1AJ4F3DxwB0GBXY1XmV+FVQ0BJq2ExyBaIJIeqtChWcoh5ZxvtwIaSLpB5oerC2epfCPkUDtdF0GNAU7wLsdkfUPmcG6oL7MBru8dBSZjaHsuE5uRK2uBwnAPRAnBuWKBSIyyqTbUDL++cABkXmiRBSWMkh2GrL3vN63a4XFXQHgOa5v1PGdnqj1P8wa31yXZg7bYeEFkRLAnKWP9k1uxUfAFxVEH4MtRa9Ya7rubagVVbqiGoiQ60wMz9mlQ6BnK2zSWf0kruvVlvB1YWJYHuXohkxLyP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HDsLGBjChcw64JunBABjRWbkAJ82dDQ5UhJUlixoGB2aKeI0mMQwOrCPel3KNrm/uGinLP7eNY5wlbgG5bWyjLFMNBzXWegGLkKzTDgfy0tb3gC4VzC8QVkBBKtTvc/UHv9wbexcnAljN7tMAAAAASUVORK5CYII=",F=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:L}),N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA9tJREFUWEfNl29oU1cYxp/nphQro+J0MmQKzg8iDJRW8cMQ3Bw02xwELNjhoNowwgJ2tBCyggl30siaDXXFYikt2ioi7YdpGWu31a3Ywajin8EGggNxTBFEP1TBlSZ5x2n+NH/uzblJavF8COTec573d899n/e+h3jJBivlkfHxV+l2P6lUJ72+cqCLF38GcJ4ez+nFgKoISC5dWotY7B4AF0Ta2Nj4baVQlQEND0eRSARSEAkA77Op6adKoMoGkgsXNiIe/xPAsnkAEfX7D+bmNvHgwf/KhSoLSESIoSG1E+9ZBP6Uzc39SwvU3x8E+ZVN0DF6vR8sGZD09TVA5HsAVTZB/6XPt25JgKSnZyvISYissA1IPqHfv+qFA8mJE5tgGArm9aLByLtsbX3zhQLNw8TjvwBYaxmITLsMIC+zvT2T7GKaVait3c/29kEnkFqXSTS6FcCPANZk2TupnQ2SjmYY3QwEPs8OLtHoXxC5C+BjBoNPi4EVBZKuLrUzUxB5LQNgp5asQ4BhfMaOjt4coKNHRyDSCHIajx69w+PHn9vJ2AKJaa4BeQ3keidbnZlDfsRQSLkwM+TIEfVJaU1d6GM47CsdKBQaANlSEoyanEh8yM7OH3KAwmFVKL2pawkYxnaa5g0rbcsdklCoHvH4VfUCSgYiOxiJZIqmDA+7cOvWHQAbsnbxNCMRy4e1BgoGz0Lkk5JhkgsegnSzq+sP9UcCgS9BhnO0yGeoqVlJ04zlxygAmrfpzMxjALWOgQrdlgB5ByI1AApzMDm/jseO3dQDtbVtQzx+rcBVaRepG/kAuv/pqLnzWtjdXdDUFe6Q378f5LlUO5GUUkJ2Ix80PU933TACPHnyG/0O+XyHAHQveDZVX3RguvebD0hG2Nt7WA/k9foB9Oj0F+F+JwcGQnqgAwc8EPluEQLqJPwcHDylB2pqWoeqqntQXeFij+ykdrl2cGhI1brcimAVU/btuw6grmwevevuY/Pm9TRNdTBwALR3bzOAM5ZfcytKq69+vgmyk9owOjgyYtkCW1dqgPB4fgeww7HbdDZfAPwbs7NvcWxs1vLZbMvLnj1bAPwG4JWir845iKrOc3C5Gjg6+qudZvF+yO1uADkKkeqy82lhocqXZo6PnyumpXWS7N7tBnkWwOoKoJ4B8HFi4rxOQwukBGTXrjdAqp5GHYF0mvn3VS62cHLytpOFjoDSQrJz59sQ+SJ1Yk0eobPHgtvmQF4B8DWnplQ/7niUBJQBq69fjurqdyFSD1IdCpcDeA6RB3C5biIWm+D09IxjiqyJZQGVE8jpmpcO6H9ltlY0RKXuMwAAAABJRU5ErkJggg==",_=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:N}),R="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAwdJREFUSMftll2IFlUYx3//Z95tzUBDKBKKgkCKJIIEb4KiLzVKV8FV6JPsxkJJiEwKfckVBUlohWgJwoswMsuPPrxYLAwW6Sa6SLrvRgzCciX3PefMnC5md955d16dsbySDhyYc2bO//c8Z87zPAeu96amH8YYxcSupRirkA2RCNBRMh1j6Zs/Sor/GRjPtG/gbHgUYwjZStBCTCDLV5pNq9hZjOOYjnJT5zvd13aNgXF863wuhadIbBVKViDmIaYhyrup+zx7bLqA7ASmYyT6Vkve+qus36qYMDl1DjRImoHSWYLTnvWDSrnHYh6ydZjWIXWAOVcGOj/QFVcJYH0AteOKfhXo0wywy3tRM5aV52I90Pms8KoiWjosdf8135WsgYc+VsQKiOoAExi3gBYhg6QKtD7ADBfA+1IP4Hx1rtzT8L6G9z+Ey9bkcx6ci/VAF7IcMCPmIYTzhPAVPoQCMGOA8+DDHj079nqMiNDZUhjl0oYe+h4x8H6HXju4kjRbjwuu530I27Xh423x0NqEj148QCdsKIwKTTz0PvZsn/Pgwstx37IF2vTpF2TpGlyYwodIGt7Qxk92xrEHB/i9dRDvX+iu8fkBrAdOb2m5O/8Alwa+j+0nb9WWz78h8DRpeFWbD70XR1cMcvHOw7gw3DW0WNsgLHzIraqexPuRnYo7nnhMWw+fBE7GfWtv5GLnCJYuy7OS9a5rFBbOx26GsdngexA/xPbyx/l78g8uTB5HeqT7TSn1XUUc+kp89ULvJmRnGJgzhQ8LugDrl4VCky0dB56v5s6e4J9L0Nz6XGrj9UDcLoINgwZrc+lMPeyfhTokcaRRAY4vLd4EjJZKTun/WLOkniSbtffU/sYVPz5377vAO0hqViUK4yKWjGj09Parv2KsX7Qa+ABxW+5Z6YAU0J65cyTaqA9/OvKvL1Fx6K6baSW7Ea8gtS7jWYppDFpv68DPf16bW9vqOxajZC+wfFZwf01sbdNnv/5yTa+JBfiZ2x9GGsE0hdHWl79N8H8rtX8A+w9hVDjPd1oAAAAASUVORK5CYII=",T=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:R}),V="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAA4dJREFUSEvFl19oHFUYxc+5u5vagoKkjSBaQdK4O2mFkHZnInlR8E+KaJtMghZpEvtQ2oJQEWx9sfiqTyqF+qdtBAX3HwQf9KHgi0kmm9Zia2abdltQShBMfaiQNtnM/WS2TU3ibmZWt3UeZmDnfOd3vzvn3p0hbh/xjNWviP0i2EJg7eLvdbrOCuQcFT92u50vfU/6JyNrHodwsE6QABv5xLXH97LcKXDy3kBvUxReo5G1xiFI3kuwQBwmMtbsXXimQX3M0shYEqRaeV8gmsB1PyEivJ9ApFaPGsDiCmUIUKdKa2cmi9uLcz6s+cPmNQ0PbzA09PMEBgm2hBlEIFgE06R30LUn0gBWn50jUEar2Q/yfQCNqw1gVbAAoyU9t6PYd/b3MF0salpT7Ru1in5D8MlqdVXBApzTsUjn1Msjf9YCvbMhpTteJPQwSVWpvhq4BHhtrj0xWSs0kTOfpcZhgE8LeBqQtkrhqwgWYKhgOwOhoUeg4q3WDlIOE9wqkGsQHirYzudGxvoaRO9Kr4pgKq9rsnviu0WxkdnaBlFJtzd/bJnBsfZYvDG2SxFvQ5DwlxnAE9586dDFXWdmfG08Y/YoMBMKPL9urqm4/e9Abcpuezyq1SWSR92fnYOPGB2xB5S3B1BvAXjslqn8pJXsu9CdH1sK8WtjErkcCnxdc93VvrEbS8VG2voWxAsArorIfSTXl3HljUTeLXjjH6EP3kpAy1ft66MNsX+siopTPR9RzcWdo8tG+UTKeimiMLzEWARI6dLcm1Ovnp2ulodNOSsR03BDdSyi+wu9+S+WiVOIGMq6AmCjQC6CPFDocU4FBTCR7dhDkc9CgQF879rOMyvF8VyyAxrtC9N/fFp849aWGXQkMtYIgafCguEpdk11j91JdhCg0n0jnewFVaqWDcSPzW/CiFXoGf3l30BbU6Yh5A8gHqwRXI7sr+KVdhZeOfNjLfCWnNkZ1cwCaKpWF/jv5C8f13YeDQPePGw+tFDiOwrYDyC6Wk0Y8IhrO53xXLKRGrsBddPTch5KzagFT0ca2KQ1twDyHMEuAGvCDDIEWN4Tkcug+oDAhjCmYTSBYAFu3I13sv/lZa/cjJGx8gC2hZmeummIPI20OQjyeN1MQxhpYMD/hGEibZ4kuTtEzX+XUE64PeOvl7+dfLiRNgdA7hNgc73DVH6mxHktOHrBdoZ84F8u6GG5wB5FfAAAAABJRU5ErkJggg==",O=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:V}),K="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAAXNSR0IArs4c6QAAA7BJREFUSEvtV1loE1EUPW8m2zSpMbVtilVasFBFC2oXUVsXBEVFxeqHgq1VcCkoiiA0BRX8cEPFD8UP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/bJoAWD6t+kraJNJFih3sdJTibNJvDMEQpV8VoJ4W1bicBKodx5re3UMDp2pe5brDKWeRVlKAawKQ/kHMfQJ5KEj3ZfCBT/rv0HWjWexQ2vfvzAAAAAElFTkSuQmCC",P=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:K});const U="_hotGoods_1fnqd_1",Y="_title_1fnqd_7",J="_tips_1fnqd_19",H="_hotGoodsSection_1fnqd_35",q="_hotGoodsItem_1fnqd_41",X="_hotGoodsItemImg_1fnqd_42";var n={hotGoods:U,title:Y,tips:J,hotGoodsSection:H,hotGoodsItem:q,hotGoodsItemImg:X};const l=t=>{const o=`../../images/${t}`;return{"../../images/icon-add-cart.png":I,"../../images/icon-address.png":S,"../../images/icon-after-sales.png":G,"../../images/icon-filter.png":F,"../../images/icon-fire.png":_,"../../images/icon-genuine-goods.png":T,"../../images/icon-sell-out.png":B,"../../images/icon-shop-cart.png":Q,"../../images/icon-wx.png":O,"../../images/icon-zfb.png":P}[o].default};var Z=c({name:"hot-goods",props:{hotProductList:{type:Array,default:[]},onOpenWebView:{type:Function,default:t=>{}}},render(){return e("div",{class:n.hotGoods},[e(z,{style:{padding:"9px 0 6px"}},{default:()=>[e(g,{span:8,class:n.title},{default:()=>[e(r,{name:l("icon-fire.png"),size:18},null),d("\u70ED\u9500\u5546\u54C1")]}),e(g,{span:16,class:n.tips},{default:()=>[e("div",null,[e(r,{name:l("icon-genuine-goods.png"),size:14},null),d("\u6B63\u54C1\u5546\u54C1")]),e("div",null,[e(r,{name:l("icon-after-sales.png"),size:14},null),d("\u5B89\u5FC3\u552E\u540E")])]})]}),e("div",{class:n.hotGoodsSection},[this.hotProductList.map(t=>e("div",{class:n.hotGoodsItem,onClick:()=>{this.onOpenWebView("/goodsDetail?id="+t.id)}},[e(p,{class:n.hotGoodsItemImg,src:t.pic,fit:"cover"},null)]))])])}});const $="_swipeType_kze7a_1",ee="_swipeTypeShow_kze7a_17",te="_typeSection_kze7a_20",oe="_typeItem_kze7a_24",se="_swipeTypeImg_kze7a_28",ie="_typeName_kze7a_34";var a={swipeType:$,swipeTypeShow:ee,typeSection:te,typeItem:oe,swipeTypeImg:se,typeName:ie};function y(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!h(t)}var ne=c({name:"menu-list",props:{productList:{type:Array,default:[]},onOpenWebView:{type:Function,default:t=>{}}},render(){let t;return e(m,{class:[a.swipeType,this.productList.length>1&&a.swipeTypeShow],"indicator-color":"var(--van-primary)",loop:!1,showIndicators:this.productList.length>1},y(t=this.productList.map(o=>{let s;return e(u,{class:a.typeSection},y(s=o.map(i=>e("div",{class:a.typeItem,onClick:()=>{this.onOpenWebView("/goodsList?id="+i.id+"&tag="+encodeURIComponent(i.name))}},[e(p,{class:a.swipeTypeImg,src:i.icon,fit:"cover"},null),e("p",{class:a.typeName},[i.name])])))?s:{default:()=>[s]})}))?t:{default:()=>[t]})}});const ae="_dot_1p0t2_6",Ae="_searchBox_1p0t2_15",re="_swipe_1p0t2_18",ce="_swipeItemImg_1p0t2_24";var A={"icon-shop-cart":"_icon-shop-cart_1p0t2_1",dot:ae,searchBox:Ae,swipe:re,swipeItemImg:ce};function de(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!h(t)}var We=c({name:"shop-mall",data(){return{height:"auto",count:0,advertiseList:[],productList:[],hotProductList:[],productCategoryList:[]}},async mounted(){try{const t=await E.get("/api-mall-portal/home/content");console.log(t);const o=t.data||{};this.count=o.count,this.advertiseList=o.advertiseList;const s=o.productCategoryList||[],i=[];for(;s.length>0;){const w=s.splice(0,5);i.push(w)}this.productList=i,this.hotProductList=o.hotProductList||[],this.productCategoryList=o.productAttributeCategoryList||[]}catch{}},methods:{onSearch(){},openWebView(t){let o=location.origin+location.pathname+"#";if(!!t){if(t.indexOf("http")<0&&(t=o+t),console.log("\u8DF3\u8F6Curl:",t),!W().isApp){location.href=t;return}C({api:"openWebView",content:{url:t,orientation:1,isHideTitle:!1}})}}},render(){let t;return e("div",null,[e("div",{ref:"headers"},[e(b,{border:!1,background:"linear-gradient(#59e5d5, 30%, #f6f8f9)",onClickRight:()=>this.openWebView("/cart"),onHeaderBack:()=>{this.$nextTick(()=>{const{height:o}=j(this.$refs.headers);this.height=o})}},{right:()=>e("div",{class:A["icon-shop-cart"]},[this.count>0&&e("span",{class:A.dot},[this.count]),e(r,{name:x,size:24},null)])})]),e("div",{onClick:()=>{this.openWebView("/goodsList?input=focus")}},[e(D,{disabled:!0,class:A.searchBox,background:"transparent"},null)]),e(m,{class:A.swipe,autoplay:3e3,showIndicators:!1,lazyRender:!0},de(t=this.advertiseList.map(o=>e(u,{onClick:()=>this.openWebView(o.url)},{default:()=>[e(p,{class:A.swipeItemImg,src:o.pic,fit:"cover"},null)]})))?t:{default:()=>[t]}),e(ne,{productList:this.productList,onOpenWebView:this.openWebView},null),this.hotProductList.length===3&&e(Z,{hotProductList:this.hotProductList,onOpenWebView:this.openWebView},null),e(v,{shrink:!0,lineWidth:25,background:"#f6f8f9",color:"var(--van-primary)",class:A.tabs,sticky:!0,offsetTop:this.height,lazyRender:!0},{default:()=>[this.productCategoryList.length>0&&e(M,{title:"\u5168\u90E8",name:0},{default:()=>[e(f,{isTab:!0,productAttributeCategoryId:0,onOpenWebView:this.openWebView},null)]}),this.productCategoryList.map(o=>e(M,{title:o.name,name:o.id},{default:()=>[e(f,{isTab:!0,productAttributeCategoryId:o.id,onOpenWebView:this.openWebView},null)]}))]})])}});export{We as default};
|