1 |
- var n=Object.defineProperty;var i=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var a=(s,o,t)=>o in s?n(s,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[o]=t,r=(s,o)=>{for(var t in o||(o={}))c.call(o,t)&&a(s,t,o[t]);if(i)for(var t of i(o))u.call(o,t)&&a(s,t,o[t]);return s};import{m as g,r as A,C as h}from"./index.f45ba589.js";import{d as H,b as e,I as p,j as m,q as y,t as f,P as I}from"./vendor.2bcdc9cf.js";/* empty css */import{A as N}from"./index.afa3b929.js";/* empty css */var C="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABv5JREFUWMO1mWtoHFUUx39ndlPdbjZWE1ub+EDSVmpq41uQanwQSOurRKEtCAZR2lTwhX5QNJakiKL4QdBWQYyoNAot+KiKASW2FkpbNWBEaqNNTarWqu1uamxN5vhh9nFn5s7s2mog7Myde88993/+59xzzxVO4E/fu2Q6RyevIuG0INKEMA+kDiGDACI54CCwG5EhVAbQqS1y064/j3dOOS5F317YhpPoQLgZNIWIIU3IK5v/NdsAZALhXRx6pW3HR/+rwtrX3I7QhdBcHF1QjEgFo58dGQTtlsU7Nv2nCmvfgkZU1gGtJQVNZSMUN5EvPgfavNd+qOqUJduGT1hhfbNpOSIvgdSUlLMhZypvW4z4Z5MQ2llwV8rinX1x+jixyr7R1IOyAVdrUAVXQRUU47fwbP7j9XWN764xHst4V2twZYN+eEXPcSGsrze9gOpqvxktfIxqDyJso0YUtRxelMU77qkYYe2d38OUu9qHkImkazwTg7ZrsYYbsIYd7dW62Y50CGF9df5yVDf4kbNFAlu7+KWK2J0vhLxFLkCCFUFOix/ZOY1MJb4oOVi58GRxNMosMC4chr5LFnEvliW7hu2U+NtZh0uN1YmszwFHNCngRsgggma+8QWn1RpcWWflsK6f247S6uMpBLgYVDzIPyzcNTmPJdJoGe5rq75/WbsN4S6f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cGiSq9PrK5t+Aq0uezJNur0DOWP9HF1uKhc3GsblDu/vdB/pnPc7viTrSU8qUKqFq7rgSsfBKcqYrzxXHMOXPsULLwzfHj1ZWuGA07RXVAzWbTUoz9t0u76ftDWknXEfmwqfhK4+lFoutVr+/N3+PJVP2rBXfK6p6H+0vyJ4wcY+TS8i4qPT/1y97eb7HUJmexEyVacz6rC9LrS+FRtmXxYYXqtv79Gla4UVLNUTXZG1tbk8QPDICsjzWnbEbc9D7mf4cA3MPhGuXwWtj0LE3/A6HbY/UG47uGLwayUjj3DZauXumZ2D8JjZWtklKmyV1pTs1YwZa2s+u7xysut3fVeudVaxI6JClQQKcotPCEvSueeysutANK1/x6EtaGoEFcPi8rKQhEmZjysjVK2siuDNfXLEde7MqiklFqucB1EvtDmSBaVlXLfcN+JX8r0zGzETawDba2Yg8RcfYWoI/0kJjvl3h9P/FLGr/jsdly6QJsr53OUgwoIgzh0ywMj/+21lyWKtCHaAXIzkIqmgLVKPwG8S9LplQf3/r8XiyHFH5qVJuMsAryrW5iHUIcjmbxLl65ucYYQBkgc2yoP/3LkeOf8B3/2NoYhPL/pAAAAAElFTkSuQmCC";const b="_goods_126oz_1",w="_goodsSection_126oz_9",G="_sellOut_126oz_14",k="_sellOutImg_126oz_25",q="_goodsImg_126oz_29",S="_goodsInfo_126oz_33",z="_goodsName_126oz_37",x="_goodsSale_126oz_43",v="_pre_126oz_48",B="_goodsPrice_126oz_51",L="_addCart_126oz_57",U="_addCartDisabled_126oz_62";var d={goods:b,goodsSection:w,sellOut:G,sellOutImg:k,goodsImg:q,goodsInfo:S,goodsName:z,goodsSale:x,pre:v,goodsPrice:B,addCart:L,addCartDisabled:U},P=H({name:"goods",props:{showAdd:{type:Boolean,default:!0},item:{type:Object,default:{}},onItemClick:{type:Function,default:s=>{}},onBuyClick:{type:Function,default:s=>{}}},render(){const s=this.item;return e("div",{class:d.goods,onClick:()=>this.onItemClick(s)},[e("div",{class:d.goodsSection},[e(p,{src:s.pic,fit:"cover",class:d.goodsImg},null)]),e("div",{class:d.goodsInfo},[e("div",{class:[d.goodsName,"van-ellipsis"]},[s.name]),e("div",{class:d.goodsBuy},[e("p",{class:d.goodsPrice},[e("span",{class:d.pre},[m("\uFFE5")]),g(s.price)]),this.showAdd&&e(y,{class:[d.addCart,s.stock<=0&&d.addCartDisabled],name:C,size:22,onClick:o=>{o.stopPropagation(),s.stock>0&&this.onBuyClick(s)}},null)])])])}});const W="_tabList_1we34_1",j="_goodsList_1we34_6";var l={tabList:W,goodsList:j},J=H({name:"tab-list",props:{showAdd:{type:Boolean,default:!0},typeId:{type:Number,default:0},productAttributeCategoryId:{type:Number,default:0},brandId:{type:Number,default:0},sort:{type:Number,defalut:0},keyword:{type:String,defalut:""},isTab:{type:Boolean,default:!1},onOpenWebView:{type:Function,default:s=>{}}},data(){return{list:[],loading:!1,finished:!1,params:{productCategoryId:void 0,productAttributeCategoryId:void 0,brandId:null,sort:null,keyword:"",pageNum:1,pageSize:20},addGoodsShow:!1,selectGoodsItem:{}}},mounted(){this.getList()},methods:{onSearch(){this.finished=!1,this.list=[],this.params.pageNum=1,this.getList()},async getList(){this.loading=!0;try{let s=this.params;s.productCategoryId=this.typeId?this.typeId:void 0,s.productAttributeCategoryId=this.productAttributeCategoryId?this.productAttributeCategoryId:void 0,s.brandId=this.brandId?this.brandId:void 0,s.sort=this.sort?this.sort:void 0,s.keyword=this.keyword?this.keyword:void 0;const t=(await A.post("/api-mall-portal/product/search",{data:r({},s)})).data||{};if(this.list.length>0&&t.pageNum===1)return;this.list=this.list.concat(t.list||[]),this.finished=t.pageNum>=t.totalPage,this.params.pageNum=t.pageNum+1}catch{this.finished=!0}this.loading=!1},onDetailClick(s){if(this.isTab){let o=this.$router.resolve({path:"/goodsDetail",query:{id:s.id}}).fullPath;this.onOpenWebView(o);return}this.$router.push({path:"/goodsDetail",query:{id:s.id}})},onBuyClick(s){this.selectGoodsItem=s,this.addGoodsShow=!0}},render(){return e("div",{class:l.tabList},[e(f,{loading:this.loading,"onUpdate:loading":s=>this.loading=s,finished:this.finished,finishedText:"",immediateCheck:!1,class:[l.goodsList,"mb12"],onLoad:this.getList},{default:()=>[this.list.length&&this.list.map(s=>e(P,{item:s,onItemClick:this.onDetailClick,onBuyClick:this.onBuyClick,showAdd:this.showAdd},null))||null,!this.loading&&!this.list.length&&e(h,{btnStatus:!1,classImgSize:"SMALL",tips:"\u6682\u65E0\u5546\u54C1"},null)||null]}),e(I,{show:this.addGoodsShow,closeable:!0,position:"bottom",round:!0,onClose:()=>{this.addGoodsShow=!1}},{default:()=>[e(N,{show:this.addGoodsShow,item:this.selectGoodsItem},null)]})])}}),T="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAgCAMAAAAynjhNAAAAAXNSR0IArs4c6QAAAddQTFRFAAAAAP//AP+AAL+AAL+/AMyZANWqIL+fIN+fIN+/HMaqGsyzF9GiF9G5FMSxIsyqIM+vHtK0HMaqHNWqG8muINWqHMaqHNCqHNCzG8itGsqnGc6tIc6tHsutHM+sG9CuH82uHcuuHM2sHNOsG86oG86uH9CsHs2qHc6sHc+tHMuqHNCvH8qrHMqqG8ytH9CtH82uHs6tHsuqHc2sH86vH8ytHs6tHc6rHs6tHc2uH86tHs2tHc6sHcyrH82sHsyrHs6tHs6sHs6uHs2tHc2sH86tH8+uHs2tHs6uHsysHs6sHs2rHc6tH82tHs6tHs6uHs+tHs2sH82sHs2tHc6tHc2sH82rHs6tHs2sHc6tHc2sH8+tHsyrHs2sH86uHs2tHs6tHc2sHc2rHc2tH82tHs2rHs2sHs2sHs6sHc6sHs2sHs6sHs2sHs2tHs6tHc6sH86sHs2sHs2tHs6sHs6tHc2sHs2sHs2sHsysHs2sHs6sHs2sHcysHs2sHs6sHs2tHs2sHs6sHs2tHs2sHsyrHc2rHc2tHs2tHs2rHs6tHs2sHs2sHs2sHs2tH82tHs6sHs2sHs6sHs2sHs2sHc2sHc2tHs2sHs2rHs2sHs6sHs2sHs6tHs2sDrxc/AAA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