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.
1 lines
8.1 KiB
1 lines
8.1 KiB
import{z as s,A as e,o as a,c as l,w as t,a as i,f as o,t as d,b as n,d as c,F as g,k as A,n as m,e as y,g as u,i as h,l as r}from"./index-4ddb689d.js";import{r as p}from"./index.85d62ccb.js";import{_ as f}from"./_plugin-vue_export-helper.1b428a4d.js";const w=f({name:"Recommended",data:()=>({isLoading:!0,goodsList:[],setting:{enabled:1,style:{show:[]}}}),async created(){const s=this;s.isLoading=!0,await s.getSetting(),s.setting.enabled&&s.$checkModule("market-recommended")&&await s.getRecommended(),s.isLoading=!1},methods:{async getRecommended(){const s=this;await p().then((e=>s.goodsList=e.data.goodsList))},async getSetting(){const a=this;await s.item(e.RECOMMENDED.value).then((s=>a.setting=s))},onTargetGoods(s){this.$navTo("pages/goods/detail",{goodsId:s})}}},[["render",function(s,e,p,f,w,b){const I=u,F=h,G=r;return!w.isLoading&&w.setting.enabled&&s.$checkModule("market-recommended")&&w.goodsList.length?(a(),l(F,{key:0,style:m(s.appThemeStyle),class:"recommended"},{default:t((()=>[i(F,{class:"header"},{default:t((()=>[i(F,{class:"left"},{default:t((()=>[i(I,{class:"image",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAYAAAA6oTAqAAAAAXNSR0IArs4c6QAABoNJREFUaAXtWH1sFEUUnzd7d6UtkEBbIFKtpJRalIBiDBLUNAoEBCmKVaJo2oIlKR8BoiDBWMEvCCRAhdDyJR9G0wQb1CAUaTWKSkBjFJS0KSVSgVDKh4Kld7fzfG+2C9fjDu56B/GPne52Z2Znfu/93sfM7AnhFMcCjgUcCzgWcCzgWMCxgGOB/4sFIF6KtK3Y9gyimo5CJEsQOz13Ji6H/HwzHvivtRwtUEotECD6kMI1AO6Zy1KymoKxXcEd0bax/JC77dKRNQrNafZcheJh74nWAdQusvs680REeLXl6EqlzFl6PlmKrjwhvNnliIOLAXyBuDF5Btd+1KPtin8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PooanzUJScZwy3nKi4NIQH/2ChjQSrvyfGPajLLI1bdG0nxY+nNjGWlcwiFKKx89LE9oQsSEQ4z+yhZmZ86mPtuG0Ypqd3eIabh1a7IwL4ymzOwqEhJr4MVpTSGG3bCrFtH108HGD0062mhJzIP/mBBdfHNbGLh44X1Zb94QLIKXDHlLyubGxi4tp7GS8mA8hxKb21qp2vcPliw5aXDOgsGZq+KhxC0hs/G75m4XjcufUzg9pjhqOCHo0l5gYpZUEw0omn9/vy3xIMIYFmy80Ain/NDJ1NZW327ywlCtPJPQt0WK+8AQbZTsk+cOvbsqjqLjS2Z1bVM6SrOaFMwJ3M1tr9D+QQUu0Vkrb95DGfviSYSxjHgBrvvmRBZtfl9TaPXnqOIksbcTXr10CIA8Z4Axeu6wu677sIqHHlpGrEDrapoG+5XaQzi9tRd0nlw7MFp94pRLipEzRmRE/fUZqX4xe6Ziz1/D6Ry3lzyRypaxrWPVLd+Qk455pMgteSSjLlLFOjPOlt2ZuaKiumkI+mE/5UeSzhFC4admpJdjSncJhz2uxFHFj6ad6pSQKCaFPAFEOh+8sIrUTbJ/0OBc4ezgU4NV5IEuSWLs1OFp5yLFjGVcTGTodPAAH0VYd713tHvFOqbAV6kJnon5w3tdikXBaObqxTKaCYFjDYQ6PiXyryj2ryn6WxNFVYbqOy4/9/YRYb1iIkM+WWAoCjb+HtGEOOHlpp5j0p8dOxaiPsIHGqoz9ZgWABa4uerMEAVmIX3+JxOTzwqf6ruzM4o4cxwLOBZwLOBYwLGAY4HbaIH/AFWphTyuhclNAAAAAElFTkSuQmCC"})])),_:1}),i(F,{class:"title"},{default:t((()=>[o(d(w.setting.style.title),1)])),_:1}),i(I,{class:"image",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADMAAAAzCAYAAAA6oTAqAAAAAXNSR0IArs4c6QAABgxJREFUaAXtmGtsVUUQgGf2lD6wBMEI2GBLVX5IISY8Sy9iILxSoEEaMRoBRSSYQEn4ZVBjE2KIiYiESHxATCAkKl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sW33d2nw/rjX4yXu3ps7fWpevsqWx4HdoM1CFAXDKIvAJG2hrtNVbaUoaRQTgWI7khq5QPwD1Sj30kZ3ljArm8dRjaei6sN8f29/aN88ovDro7a6YyaQf+A7E6I8RgHC3PJSZ6U8qZeEOcnwpV5k2ORJlAOJtPVxmt8wz8i2Ln+BlqHcMnfeMW3eaT8nI+dzaRhjTJGz5/TikrbT4u2/RXvC1S7xeMq/B8pS43QK84RwQ3GjZZoiOWO1AChLhvYpF6moFSunHTR1seAGM/DKQuw9Ahx7G4zPcAHRAYgfq5Um/QCNu0eLQLwoXTTOVETcFno3Ksx/LzMdGFU9T16RkwGJn9TJW90ibcTUiWRMeFcnZa7pdIMeDXgyyrpLAQr8qYgXwGFEYMO1VNS4wxH2igjCiMC8azCSQvuTqVqRbMmoxXbmsYMa42TLP5gnqIN4ZsWWLucovCsQwDnTOWmltciBcGCmjAI+MaVl1NU20yhzmHhjv5wh0umGwOThtiAzLQ4kKsd8f1p7xhMGLUiW+pwHSYo4YoJzYqsd+g8BJYav7SaXi6PyAy9obCyARHaimfgY5zDt0nG4CzZXfljkBJnc34myO06PHp6HsgOmK9/LnhMDL/l9/TPe0RjhDQ+Og2zTM7y477ZbfTgNf5R97c5UVY3YvNvt19us74avPpWDAZ/1BD1Ew2/huJBJ9HYHOYun/T4A4ye31UJNV8UyLjWnLkNN3R3KIPagNznLzh2Z2SwZyziEsLrTGrQ9jgjkmlvCmRcQ2a/xC2qKHWQo7Ix050uMOJEENJlPi3mU7Phj6fPTcVRqCWFWB7ZshaphW+72wAXSByYWPAHSsYWOT68rCqW/fsrLFX8h3nGb4VpJPC/esK1faE/1e7daYGMwceCDwQeCDwQOCB/5cH/gVYZIBBAaIwagAAAABJRU5ErkJggg=="})])),_:1}),i(F,{class:A(["goods-list",[`display__${w.setting.style.display}`,`column__${w.setting.style.column}`]])},{default:t((()=>[(a(!0),n(g,null,c(w.goodsList,((s,e)=>(a(),l(F,{class:"goods-item",key:e,onClick:e=>b.onTargetGoods(s.goods_id)},{default:t((()=>[1===w.setting.style.column?(a(),l(F,{key:0,class:"dis-flex"},{default:t((()=>[i(F,{class:"goods-item-left"},{default:t((()=>[i(I,{class:"image",src:s.goods_image},null,8,["src"])])),_:2},1024),i(F,{class:"goods-item-right"},{default:t((()=>[w.setting.style.show.includes("goodsName")?(a(),l(F,{key:0,class:"goods-name"},{default:t((()=>[i(G,{class:"twoline-hide"},{default:t((()=>[o(d(s.goods_name),1)])),_:2},1024)])),_:2},1024)):y("",!0),i(F,{class:"goods-item-desc"},{default:t((()=>[w.setting.style.show.includes("sellingPoint")?(a(),l(F,{key:0,class:"desc-selling-point dis-flex"},{default:t((()=>[i(G,{class:"oneline-hide"},{default:t((()=>[o(d(s.selling_point),1)])),_:2},1024)])),_:2},1024)):y("",!0),w.setting.style.show.includes("goodsSales")?(a(),l(F,{key:1,class:"desc-goods-sales dis-flex"},{default:t((()=>[i(G,null,{default:t((()=>[o("已售"+d(s.goods_sales)+"件",1)])),_:2},1024)])),_:2},1024)):y("",!0),i(F,{class:"desc-footer"},{default:t((()=>[w.setting.style.show.includes("goodsPrice")?(a(),l(G,{key:0,class:"price-x"},{default:t((()=>[o("¥"+d(s.goods_price_min),1)])),_:2},1024)):y("",!0),w.setting.style.show.includes("linePrice")&&s.line_price_min>0?(a(),l(G,{key:1,class:"price-y col-9"},{default:t((()=>[o("¥"+d(s.line_price_min),1)])),_:2},1024)):y("",!0)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)):(a(),n(g,{key:1},[i(F,{class:"goods-image"},{default:t((()=>[i(I,{class:"image",mode:"aspectFill",src:s.goods_image},null,8,["src"])])),_:2},1024),i(F,{class:"detail"},{default:t((()=>[w.setting.style.show.includes("goodsName")?(a(),l(F,{key:0,class:"goods-name"},{default:t((()=>[i(G,{class:"twoline-hide"},{default:t((()=>[o(d(s.goods_name),1)])),_:2},1024)])),_:2},1024)):y("",!0),i(F,{class:"detail-price oneline-hide"},{default:t((()=>[w.setting.style.show.includes("goodsPrice")?(a(),l(G,{key:0,class:"goods-price"},{default:t((()=>[o("¥"+d(s.goods_price_min),1)])),_:2},1024)):y("",!0),w.setting.style.show.includes("linePrice")&&s.line_price_min>0?(a(),l(G,{key:1,class:"line-price col-9 f-24"},{default:t((()=>[o("¥"+d(s.line_price_min),1)])),_:2},1024)):y("",!0)])),_:2},1024)])),_:2},1024)],64))])),_:2},1032,["onClick"])))),128))])),_:1},8,["class"])])),_:1},8,["style"])):y("",!0)}],["__scopeId","data-v-82ba8ba8"]]);export{w as R};
|
|
|