1 line
2.2 KiB
JavaScript
1 line
2.2 KiB
JavaScript
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[205],{6296:function(s,e,a){var n=a(7842),c=a(118),o=a(758),i=a.n(o),r=a(6540),l=a(9703),t=a(9201),d=a(5414),p=a(5947),h=a(653),u=a(5234),m=a(4848);function x(){var s=(0,l.wR)(),e=s.resolvedTheme,a=(0,t.c)();(0,d.l)(e),(0,r.useEffect)(function(){(0,p.i)()},[]);var n=function(s){(0,p.i)(),i().navigateTo({url:"/pages/shop/detail/index?id=".concat(s),routeType:"sharedElementRoute"})};return(0,m.jsxs)(c.Ss,{className:"shop-page theme-".concat(e),children:[(0,m.jsxs)(c.BM,{type:"custom",scrollY:!0,className:"shop-scroll",children:[(0,m.jsxs)(c.Ss,{className:"shop-header",style:{paddingTop:"".concat(a.headerPaddingTop,"px")},children:[(0,m.jsx)(c.EY,{className:"shop-header-title",children:"\u667a\u7ed8\u7cbe\u9009"}),(0,m.jsx)(c.EY,{className:"shop-header-sub",children:"\u6fc0\u5149\u5fae\u96d5\u5b9a\u5236\u597d\u7269"})]}),(0,m.jsx)(c.gf,{type:"aligned",crossAxisCount:2,mainAxisGap:10,crossAxisGap:10,padding:[0,12,12,12],className:"shop-grid",children:u.zv.map(function(s){var e,a,o,i;return(0,m.jsxs)(c.Ss,{className:"shop-card",onTap:function(){return n(s.id)},children:[(0,m.jsx)(c.Ss,{className:"shop-card-img-wrap",children:(0,m.jsx)(c.i8,{mapkey:"product-".concat(s.id),duration:300,className:"shop-card-share",children:(0,m.jsx)(c._V,{className:"shop-card-img",src:(null===(e=s.images)||void 0===e?void 0:e[0])||s.iconImg||"",mode:"aspectFill"})})}),(0,m.jsxs)(c.Ss,{className:"shop-card-info",style:{backgroundColor:"rgba(".concat((null===(a=s.tone)||void 0===a?void 0:a[0])||28,", ").concat((null===(o=s.tone)||void 0===o?void 0:o[1])||22,", ").concat((null===(i=s.tone)||void 0===i?void 0:i[2])||18,", 0.92)")},children:[(0,m.jsx)(c.EY,{className:"shop-card-name",children:s.name}),(0,m.jsxs)(c.EY,{className:"shop-card-price",children:["\xa5",s.price]})]})]},s.id)})}),(0,m.jsx)(c.Ss,{style:{height:"160px"}})]}),(0,m.jsx)(h.A,{})]})}var g={renderer:"skyline",componentFramework:"glass-easel",disableScroll:!0,navigationStyle:"custom",navigationBarTextStyle:"black"};Page((0,n.createPageConfig)(x,"pages/shop/index",{root:{cn:[]}},g||{}))}},function(s){var e=function(e){return s(s.s=e)};s.O(0,[907,96,76],function(){return e(6296)});s.O()}]); |